1 |
mocchiut |
1.1 |
#ifndef ToFLevel2_h |
2 |
|
|
#define ToFLevel2_h |
3 |
|
|
// |
4 |
|
|
#include <TObject.h> |
5 |
|
|
#include <TClonesArray.h> |
6 |
|
|
// |
7 |
|
|
// class which contains track related variables |
8 |
|
|
// |
9 |
|
|
#define ZTOF11 53.74 |
10 |
|
|
#define ZTOF12 53.04 |
11 |
|
|
#define ZTOF21 23.94 |
12 |
|
|
#define ZTOF22 23.44 |
13 |
|
|
#define ZTOF31 -23.49 |
14 |
|
|
#define ZTOF32 -24.34 |
15 |
|
|
|
16 |
|
|
class ToFTrkVar : public TObject { |
17 |
|
|
|
18 |
|
|
private: |
19 |
|
|
|
20 |
|
|
public: |
21 |
|
|
Int_t trkseqno; // tracker entry coming from tracker, 100 if image track is used, -100 if the track is not consistent with MyDetector2 one |
22 |
|
|
<<<<<<< ToFLevel2.h |
23 |
|
|
// |
24 |
|
|
Float_t beta_a[5]; |
25 |
|
|
Float_t adc_c[12][4]; |
26 |
|
|
|
27 |
|
|
// |
28 |
|
|
ToFTrkVar(); |
29 |
|
|
ToFTrkVar(const ToFTrkVar&); |
30 |
|
|
ToFTrkVar *GetToFTrkVar(){return this;}; // <<< ELENA |
31 |
|
|
// |
32 |
|
|
ClassDef(ToFTrkVar,1); |
33 |
|
|
// |
34 |
|
|
======= |
35 |
|
|
// |
36 |
|
|
Float_t beta_a[13]; |
37 |
|
|
Float_t adc_c[12][4]; |
38 |
|
|
|
39 |
|
|
// |
40 |
|
|
ToFTrkVar(); |
41 |
|
|
ToFTrkVar(const ToFTrkVar&); |
42 |
|
|
|
43 |
|
|
ToFTrkVar* GetToFTrkVar(){return this;}; |
44 |
|
|
|
45 |
|
|
ClassDef(ToFTrkVar,1); |
46 |
|
|
// |
47 |
|
|
>>>>>>> 1.2 |
48 |
|
|
}; |
49 |
|
|
|
50 |
|
|
class ToFLevel2 : public TObject { |
51 |
|
|
private: |
52 |
|
|
|
53 |
|
|
public: |
54 |
|
|
Float_t xtofpos[3]; |
55 |
|
|
Float_t ytofpos[3]; |
56 |
|
|
Int_t tof_i_flag[6]; |
57 |
|
|
Int_t tof_j_flag[6]; |
58 |
|
|
Float_t betatof_a[13]; |
59 |
|
|
Float_t adctof_c[12][4]; |
60 |
|
|
Float_t tdc_c[12][4]; |
61 |
|
|
TClonesArray *ToFTrk; // track related variable class |
62 |
|
|
<<<<<<< ToFLevel2.h |
63 |
|
|
// |
64 |
|
|
// |
65 |
|
|
// methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables |
66 |
|
|
// |
67 |
|
|
Int_t ntrk(){return ToFTrk->GetEntries();}; |
68 |
|
|
// |
69 |
|
|
ToFTrkVar *GetToFTrkVar(Int_t notrack); |
70 |
|
|
// |
71 |
|
|
ToFLevel2 *GetToFLevel2(){return this;}; |
72 |
|
|
// |
73 |
|
|
// constructor |
74 |
|
|
// |
75 |
|
|
ToFLevel2(); |
76 |
|
|
// |
77 |
|
|
ClassDef(ToFLevel2,1); |
78 |
|
|
======= |
79 |
|
|
// |
80 |
|
|
// |
81 |
|
|
// methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables |
82 |
|
|
// |
83 |
|
|
Int_t ntrk(){return ToFTrk->GetEntries();}; |
84 |
|
|
|
85 |
|
|
|
86 |
|
|
// |
87 |
|
|
ToFTrkVar *GetToFTrkVar(Int_t notrack); |
88 |
|
|
// |
89 |
|
|
// constructor |
90 |
|
|
// |
91 |
|
|
ToFLevel2(); |
92 |
|
|
// |
93 |
|
|
// |
94 |
|
|
ToFLevel2* GetToFLevel2(){return this;}; |
95 |
|
|
Float_t GetZTOF(Int_t plane_id){ |
96 |
|
|
switch(plane_id){ |
97 |
|
|
case 11: return ZTOF11; |
98 |
|
|
case 12: return ZTOF12; |
99 |
|
|
case 21: return ZTOF21; |
100 |
|
|
case 22: return ZTOF22; |
101 |
|
|
case 31: return ZTOF31; |
102 |
|
|
case 32: return ZTOF32; |
103 |
|
|
default: return 0.; |
104 |
|
|
}; |
105 |
|
|
}; |
106 |
|
|
|
107 |
|
|
// |
108 |
|
|
// Paddles position |
109 |
|
|
// |
110 |
|
|
/* |
111 |
|
|
S11 8 paddles 33.0 x 5.1 cm |
112 |
|
|
S12 6 paddles 40.8 x 5.5 cm |
113 |
|
|
S21 2 paddles 18.0 x 7.5 cm |
114 |
|
|
S22 2 paddles 15.0 x 9.0 cm |
115 |
|
|
S31 3 paddles 15.0 x 6.0 cm |
116 |
|
|
S32 3 paddles 18.0 x 5.0 cm |
117 |
|
|
*/ |
118 |
|
|
|
119 |
|
|
Int_t GetToFPlaneID(Int_t ip); |
120 |
|
|
Int_t GetToFPlaneIndex(Int_t plane_id); |
121 |
|
|
Bool_t HitPaddle(Int_t ,Int_t); |
122 |
|
|
Int_t GetNHitPaddles(Int_t plane); |
123 |
|
|
|
124 |
|
|
// |
125 |
|
|
ClassDef(ToFLevel2,1); |
126 |
|
|
>>>>>>> 1.2 |
127 |
|
|
}; |
128 |
|
|
|
129 |
|
|
#endif |