11 |
#include <TArrayF.h> |
#include <TArrayF.h> |
12 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
13 |
|
|
14 |
|
#include <math.h> // EMILIANO |
15 |
|
|
16 |
#include <ToFStruct.h> |
#include <ToFStruct.h> |
17 |
|
|
18 |
|
|
41 |
public: |
public: |
42 |
Int_t pmt_id; ///<the identification number of the PMT from 0 to 47 |
Int_t pmt_id; ///<the identification number of the PMT from 0 to 47 |
43 |
Float_t adc; ///<raw ADC value for this PMT |
Float_t adc; ///<raw ADC value for this PMT |
44 |
|
Float_t tdc; ///<raw TDC value for this PMT |
45 |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
46 |
// |
// |
47 |
ToFPMT(); |
ToFPMT(); |
48 |
ToFPMT(const ToFPMT&); |
ToFPMT(const ToFPMT&); |
49 |
// |
// |
50 |
ToFPMT* GetToFPMT(){return this;}; |
ToFPMT* GetToFPMT(){return this;}; |
51 |
void Clear(); |
void Clear(Option_t *t=""); |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
ClassDef(ToFPMT,1); |
ClassDef(ToFPMT,2); |
56 |
}; |
}; |
57 |
|
|
58 |
|
|
103 |
// |
// |
104 |
Float_t xtofpos[3]; ///<x-measurement using the TDC values and the calibration from S12, S21, S32 |
Float_t xtofpos[3]; ///<x-measurement using the TDC values and the calibration from S12, S21, S32 |
105 |
Float_t ytofpos[3]; ///<x-measurement using the TDC values and the calibration from S11, S22, S31 |
Float_t ytofpos[3]; ///<x-measurement using the TDC values and the calibration from S11, S22, S31 |
106 |
|
// |
107 |
|
Float_t xtr_tof[6]; ///<x-measurement in the ToF layers from tracker |
108 |
|
Float_t ytr_tof[6]; ///<x-measurement in the ToF layers from tracker |
109 |
// |
// |
110 |
ToFTrkVar(); |
ToFTrkVar(); |
111 |
ToFTrkVar(const ToFTrkVar&); |
ToFTrkVar(const ToFTrkVar&); |
112 |
|
|
113 |
ToFTrkVar* GetToFTrkVar(){return this;}; |
ToFTrkVar* GetToFTrkVar(){return this;}; |
114 |
void Clear(); |
void Clear(Option_t *t=""); |
115 |
|
|
116 |
ClassDef(ToFTrkVar,1); |
ClassDef(ToFTrkVar,1); |
117 |
// |
// |
130 |
TClonesArray *PMT; ///<class needed to store PMT hit informations |
TClonesArray *PMT; ///<class needed to store PMT hit informations |
131 |
TClonesArray *ToFTrk; ///<track related variable class |
TClonesArray *ToFTrk; ///<track related variable class |
132 |
Int_t tof_j_flag[6]; ///<number of hitted paddle(s) for each ToF layer: flag = flag + 2**(paddlenumber-1) |
Int_t tof_j_flag[6]; ///<number of hitted paddle(s) for each ToF layer: flag = flag + 2**(paddlenumber-1) |
|
|
|
|
Int_t unpackError; |
|
133 |
// |
// |
134 |
Float_t GetdEdx(Int_t notrack, Int_t plane); |
Int_t unpackError;///< zero if no error presente |
135 |
|
Int_t default_calib; ///< one if the default calibration has been used to process the data, zero otherwise |
136 |
|
// |
137 |
|
Float_t GetdEdx(Int_t notrack, Int_t plane, Int_t adcfl); // gf Apr 07 |
138 |
// |
// |
139 |
// methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables |
// methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables |
140 |
// |
// |
148 |
ToFPMT *GetToFPMT(Int_t nohit); |
ToFPMT *GetToFPMT(Int_t nohit); |
149 |
Int_t GetPMTid(Int_t gg, Int_t hh); |
Int_t GetPMTid(Int_t gg, Int_t hh); |
150 |
TString GetPMTName(Int_t ind); |
TString GetPMTName(Int_t ind); |
151 |
|
|
152 |
Int_t GetPlaneIndex(Int_t pmt_id); |
Int_t GetPlaneIndex(Int_t pmt_id); |
153 |
void GetMatrix(Int_t notrack, Float_t adc[4][12], Float_t tdc[4][12]); |
void GetMatrix(Int_t notrack, Float_t adc[4][12], Float_t tdc[4][12]); |
154 |
void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); |
void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); |
155 |
|
|
156 |
|
// gf Apr 07 |
157 |
|
void GetdEdxPaddle(Int_t notrack, Int_t paddleid, Int_t adcfl, Float_t &PadEdx, Int_t &SatWarning); // gf Apr 07 |
158 |
|
TString GetPMTName(Int_t ind, Int_t &iplane, Int_t &ipaddle,Int_t &ipmt); |
159 |
|
Int_t GetPaddleIdOfTrack(Float_t xtr, Float_t ytr, Int_t plane); // gf Apr 07 |
160 |
|
void GetPMTPaddle(Int_t pmt_id, Int_t &plane, Int_t &paddle); // gf Apr 07 |
161 |
|
void GetPaddlePMT(Int_t paddle, Int_t &pmtleft, Int_t &pmtright); // gf Apr 07 |
162 |
|
void GetPaddleGeometry(Int_t plane, Int_t paddle, Float_t &xleft, Float_t &xright, Float_t &yleft, Float_t &yright); // gf Apr 07 |
163 |
|
Int_t GetPaddleid(Int_t plane, Int_t paddle); |
164 |
|
void GetPaddlePlane(Int_t padid, Int_t &plane, Int_t &paddle); |
165 |
|
Int_t GetNPaddle(Int_t plane); |
166 |
|
// |
167 |
|
|
168 |
// |
// |
169 |
// constructor |
// constructor |
170 |
// |
// |
171 |
ToFLevel2(); |
ToFLevel2(); |
172 |
~ToFLevel2(){Delete();}; //ELENA |
~ToFLevel2(){Delete();}; //ELENA |
173 |
void Delete(); //ELENA |
void Delete(Option_t *t=""); //ELENA |
174 |
void Set();//ELENA |
void Set();//ELENA |
175 |
// |
// |
176 |
// |
// |
208 |
Int_t GetToFPlaneIndex(Int_t plane_id); |
Int_t GetToFPlaneIndex(Int_t plane_id); |
209 |
Bool_t HitPaddle(Int_t ,Int_t); |
Bool_t HitPaddle(Int_t ,Int_t); |
210 |
Int_t GetNHitPaddles(Int_t plane); |
Int_t GetNHitPaddles(Int_t plane); |
211 |
void Clear(); |
void Clear(Option_t *t=""); |
212 |
// |
// |
213 |
ClassDef(ToFLevel2,2); |
ClassDef(ToFLevel2,3); |
214 |
}; |
}; |
215 |
|
|
216 |
#endif |
#endif |