| 39 |
public: |
public: |
| 40 |
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 |
| 41 |
Float_t adc; ///<raw ADC value for this PMT |
Float_t adc; ///<raw ADC value for this PMT |
| 42 |
|
Float_t tdc; ///<raw TDC value for this PMT |
| 43 |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
| 44 |
// |
// |
| 45 |
ToFPMT(); |
ToFPMT(); |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
ClassDef(ToFPMT,1); |
ClassDef(ToFPMT,2); |
| 54 |
}; |
}; |
| 55 |
|
|
| 56 |
|
|
| 101 |
// |
// |
| 102 |
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 |
| 103 |
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 |
| 104 |
|
// |
| 105 |
|
Float_t xtr_tof[6]; ///<x-measurement in the ToF layers from tracker |
| 106 |
|
Float_t ytr_tof[6]; ///<x-measurement in the ToF layers from tracker |
| 107 |
// |
// |
| 108 |
ToFTrkVar(); |
ToFTrkVar(); |
| 109 |
ToFTrkVar(const ToFTrkVar&); |
ToFTrkVar(const ToFTrkVar&); |
| 128 |
TClonesArray *PMT; ///<class needed to store PMT hit informations |
TClonesArray *PMT; ///<class needed to store PMT hit informations |
| 129 |
TClonesArray *ToFTrk; ///<track related variable class |
TClonesArray *ToFTrk; ///<track related variable class |
| 130 |
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; |
|
| 131 |
// |
// |
| 132 |
Float_t GetdEdx(Int_t notrack, Int_t plane); |
Int_t unpackError;///< zero if no error presente |
| 133 |
|
Int_t default_calib; ///< one if the default calibration has been used to process the data, zero otherwise |
| 134 |
|
// |
| 135 |
|
Float_t GetdEdx(Int_t notrack, Int_t plane, Int_t adcfl); // gf Apr 07 |
| 136 |
// |
// |
| 137 |
// 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 |
| 138 |
// |
// |
| 146 |
ToFPMT *GetToFPMT(Int_t nohit); |
ToFPMT *GetToFPMT(Int_t nohit); |
| 147 |
Int_t GetPMTid(Int_t gg, Int_t hh); |
Int_t GetPMTid(Int_t gg, Int_t hh); |
| 148 |
TString GetPMTName(Int_t ind); |
TString GetPMTName(Int_t ind); |
| 149 |
|
|
| 150 |
Int_t GetPlaneIndex(Int_t pmt_id); |
Int_t GetPlaneIndex(Int_t pmt_id); |
| 151 |
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]); |
| 152 |
void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); |
void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); |
| 153 |
|
|
| 154 |
|
// gf Apr 07 |
| 155 |
|
void GetdEdxPaddle(Int_t notrack, Int_t paddleid, Int_t adcfl, Float_t &PadEdx, Int_t &SatWarning); // gf Apr 07 |
| 156 |
|
TString GetPMTName(Int_t ind, Int_t &iplane, Int_t &ipaddle,Int_t &ipmt); |
| 157 |
|
Int_t GetPaddleIdOfTrack(Float_t xtr, Float_t ytr, Int_t plane); // gf Apr 07 |
| 158 |
|
void GetPMTPaddle(Int_t pmt_id, Int_t &plane, Int_t &paddle); // gf Apr 07 |
| 159 |
|
void GetPaddlePMT(Int_t paddle, Int_t &pmtleft, Int_t &pmtright); // gf Apr 07 |
| 160 |
|
void GetPaddleGeometry(Int_t plane, Int_t paddle, Float_t &xleft, Float_t &xright, Float_t &yleft, Float_t &yright); // gf Apr 07 |
| 161 |
|
Int_t GetPaddleid(Int_t plane, Int_t paddle); |
| 162 |
|
void GetPaddlePlane(Int_t padid, Int_t &plane, Int_t &paddle); |
| 163 |
|
Int_t GetNPaddle(Int_t plane); |
| 164 |
|
// |
| 165 |
|
|
| 166 |
// |
// |
| 167 |
// constructor |
// constructor |
| 168 |
// |
// |
| 208 |
Int_t GetNHitPaddles(Int_t plane); |
Int_t GetNHitPaddles(Int_t plane); |
| 209 |
void Clear(); |
void Clear(); |
| 210 |
// |
// |
| 211 |
ClassDef(ToFLevel2,2); |
ClassDef(ToFLevel2,3); |
| 212 |
}; |
}; |
| 213 |
|
|
| 214 |
#endif |
#endif |