CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Cgem/ReadCosmicRayData/bak_ReadCosmicRayData-00-00-09/ReadCosmicRayData/TestMapping.h
Go to the documentation of this file.
1#ifndef TESTMAPPINGALG
2#define TESTMAPPINGALG
3
4#include "CgemGeomSvc.h"
5#include "RealizationSvc/RealizationSvc.h"
6#include "RealizationSvc/IRealizationSvc.h"
7#include <vector>
8#include <string>
9#include "TFile.h"
10#include "TTree.h"
11#include "TString.h"
12#include "Identifier/Identifier.h"
13#include "TGraph.h"
14
15class IDataProviderSvc;
16
17// CHECK hardcoded
18#define nstrip_L1_x 856
19#define nstrip_L1_v 1173
20#define nstrip_L2_x 630
21#define nstrip_L2_v 1077
22#define nstrip_L3_x 832
23#define nstrip_L3_v 1395
24
25
26class TestMapping : public Algorithm{
27 public:
28 // Constructor
29 TestMapping(const std::string& name, ISvcLocator* pSvcLocator);
31 // Executable
32 StatusCode initialize();
33 StatusCode execute ();
34 StatusCode finalize ();
35
36 bool PositionCgemBoss();
37 bool PositionGRAAL();
38
39
40 private:
41
42 ICgemGeomSvc* m_geomSvc;
43 string CosmicRayDataSetID;
44
45 double pitch_GRAAL;
46 double anode_radius_GRAAL[3];
47 double gap_GRAAL[3];
48
49 TFile *output;
50
51 double stripid_L1_x[nstrip_L1_x];
52 double stripid_L1_v[nstrip_L1_v];
53 double s_L1_S1[nstrip_L1_x];
54 double phi_L1_S1[nstrip_L1_x];
55 double v_L1_S1[nstrip_L1_v];
56
57 double stripid_L2_x[nstrip_L2_x];
58 double stripid_L2_v[nstrip_L2_v];
59 double s_L2_S1[nstrip_L2_x];
60 double phi_L2_S1[nstrip_L2_x];
61 double v_L2_S1[nstrip_L2_v];
62 double s_L2_S2[nstrip_L2_x];
63 double phi_L2_S2[nstrip_L2_x];
64 double v_L2_S2[nstrip_L2_v];
65
66 double stripid_L3_x[nstrip_L3_x];
67 double stripid_L3_v[nstrip_L3_v];
68 double s_L3_S1[nstrip_L3_x];
69 double phi_L3_S1[nstrip_L3_x];
70 double v_L3_S1[nstrip_L3_v];
71 double s_L3_S2[nstrip_L3_x];
72 double phi_L3_S2[nstrip_L3_x];
73 double v_L3_S2[nstrip_L3_v];
74
75
76 TGraph *gs_L1_S1;
77 TGraph *gphi_L1_S1;
78 TGraph *gv_L1_S1;
79
80 TGraph *gs_L2_S1;
81 TGraph *gphi_L2_S1;
82 TGraph *gv_L2_S1;
83 TGraph *gs_L2_S2;
84 TGraph *gphi_L2_S2;
85 TGraph *gv_L2_S2;
86
87 TGraph *gs_L3_S1;
88 TGraph *gphi_L3_S1;
89 TGraph *gv_L3_S1;
90 TGraph *gs_L3_S2;
91 TGraph *gphi_L3_S2;
92 TGraph *gv_L3_S2;
93
94
95
96 double stripid_L1_x_GRAAL[nstrip_L1_x];
97 double stripid_L1_v_GRAAL[nstrip_L1_v];
98 double x_L1_GRAAL[nstrip_L1_x];
99 double z_L1_GRAAL[nstrip_L1_x];
100 double phi_L1_GRAAL[nstrip_L1_x];
101 double v_L1_GRAAL[nstrip_L1_v];
102
103 double stripid_L2_x_GRAAL[2*nstrip_L2_x];
104 double stripid_L2_v_GRAAL[2*nstrip_L2_v];
105 double x_L2_GRAAL[2*nstrip_L2_x];
106 double z_L2_GRAAL[2*nstrip_L2_x];
107 double phi_L2_GRAAL[2*nstrip_L2_x];
108 double v_L2_GRAAL[2*nstrip_L2_v];
109
110 double stripid_L3_x_GRAAL[2*nstrip_L3_x];
111 double stripid_L3_v_GRAAL[2*nstrip_L3_v];
112 double x_L3_GRAAL[2*nstrip_L3_x];
113 double z_L3_GRAAL[2*nstrip_L3_x];
114 double phi_L3_GRAAL[2*nstrip_L3_x];
115 double v_L3_GRAAL[2*nstrip_L3_v];
116
117 TGraph *gx_L1_GRAAL;
118 TGraph *gz_L1_GRAAL;
119 TGraph *gphi_L1_GRAAL;
120 TGraph *gv_L1_GRAAL;
121
122 TGraph *gx_L2_GRAAL;
123 TGraph *gz_L2_GRAAL;
124 TGraph *gphi_L2_GRAAL;
125 TGraph *gv_L2_GRAAL;
126
127 TGraph *gx_L3_GRAAL;
128 TGraph *gz_L3_GRAAL;
129 TGraph *gphi_L3_GRAAL;
130 TGraph *gv_L3_GRAAL;
131
132
133 double phi_L1_GRAAL_corr[nstrip_L1_x];
134 double phi_L2_GRAAL_corr[2*nstrip_L2_x];
135 double phi_L3_GRAAL_corr[2*nstrip_L3_x];
136 double phi_L1_diff[nstrip_L1_x];
137 double phi_L2_diff[2*nstrip_L2_x];
138 double phi_L3_diff[2*nstrip_L3_x];
139
140 TGraph *gphi_L1_GRAAL_corr;
141 TGraph *gphi_L2_GRAAL_corr;
142 TGraph *gphi_L3_GRAAL_corr;
143
144
145
146
147};
148#endif
149