| 1 |
/** |
/** |
| 2 |
* \file ToFLevel2.h |
* \file ToFLevel2.h |
| 3 |
* \author Gianfranca DeRosa / Wolfgang Menn |
* \author Gianfranca DeRosa / Wolfgang Menn / Rita Carbone with E. M. supervision |
| 4 |
*/ |
*/ |
| 5 |
|
|
| 6 |
#ifndef ToFLevel2_h |
#ifndef ToFLevel2_h |
| 90 |
|
|
| 91 |
public: |
public: |
| 92 |
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 |
| 93 |
Float_t adc; ///<raw ADC value for this PMT |
Float_t adc; ///<raw ADC value for this PMT |
| 94 |
Float_t tdc; ///<raw TDC value for this PMT |
Float_t tdc; ///<raw TDC value for this PMT |
| 95 |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
| 96 |
// |
// |
| 100 |
ToFPMT* GetToFPMT(){return this;}; |
ToFPMT* GetToFPMT(){return this;}; |
| 101 |
void Clear(Option_t *t=""); |
void Clear(Option_t *t=""); |
| 102 |
|
|
|
|
|
|
|
|
| 103 |
ClassDef(ToFPMT,2); |
ClassDef(ToFPMT,2); |
| 104 |
}; |
}; |
| 105 |
|
|
| 112 |
|
|
| 113 |
private: |
private: |
| 114 |
// |
// |
|
|
|
| 115 |
ToFGeom eGeom; // ToF geometry |
ToFGeom eGeom; // ToF geometry |
| 116 |
// |
// |
|
|
|
| 117 |
Float_t adc_he; |
Float_t adc_he; |
|
|
|
| 118 |
TArrayF eDEDXpmt; // 0-47 pmt dEdx |
TArrayF eDEDXpmt; // 0-47 pmt dEdx |
|
TArrayF eZpmt; // 0-47 pmt charge |
|
|
TArrayF eDEDXpad; // 0-23 paddle dEdx |
|
|
TArrayF eZpad; // 0-23 paddle charge |
|
|
TArrayF eDEDXlayer; // 0-5 layer dEdx |
|
|
TArrayF eZlayer; // 0-5 layer charge |
|
|
TArrayF eDEDXplane; // 0-2 plane dEdx |
|
|
TArrayF eZplane; // 0-2 plane charge |
|
|
|
|
|
TArrayF INFOpmt; // 0-47 pmt status |
|
|
TArrayF INFOlayer; //0-5 layer status |
|
|
|
|
| 119 |
// parameters: |
// parameters: |
| 120 |
TArrayF PMTsat; // 0-47 saturation parameters |
TArrayF PMTsat; // 0-47 saturation parameters |
| 121 |
|
Float_t adc[48]; |
| 122 |
TArrayF TDx[48]; // 200 x 48 define an array of 200 elements per each pmt |
// |
|
TArrayF TDy[48]; |
|
| 123 |
|
|
| 124 |
TArrayF parAtt[48]; // 48 x 6 |
TArrayF parAtt[48]; // 48 x 6 |
| 125 |
TArrayF parPos[48]; // 48 x 4 |
TArrayF parPos[48]; // 48 x 4 |
| 151 |
void Clear(Option_t *option=""); |
void Clear(Option_t *option=""); |
| 152 |
void Delete(Option_t *option="") { Clear(); } |
void Delete(Option_t *option="") { Clear(); } |
| 153 |
|
|
| 154 |
// void InitPar(const char *pardir); // init parameters |
void Init(pamela::tof::TofEvent *tofl0 ); // init parameters |
| 155 |
|
void Init(Int_t i, Int_t j, Float_t adce); |
| 156 |
void Define_PMTsat(); |
void Define_PMTsat(); |
|
//void ReadParTD( Int_t ipmt, const char *fname ); |
|
| 157 |
|
|
| 158 |
void ReadParAtt( const char *fname ); |
void ReadParAtt( const char *fname ); |
| 159 |
void ReadParPos( const char *fname ); |
void ReadParPos( const char *fname ); |
| 163 |
|
|
| 164 |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
| 165 |
|
|
| 166 |
void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, pamela::tof::TofEvent *tofl0 ); // |
void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, Int_t exitat=-1); // |
| 167 |
void Print(Option_t *option=""); |
void Print(Option_t *option=""); |
|
void PrintTD(); |
|
|
|
|
| 168 |
|
|
| 169 |
Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt[ipmt]; } // 0-47 dEdx for each PMT for tracked events |
Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt[ipmt]; } // 0-47 dEdx for each PMT for tracked events |
| 170 |
Float_t GetCharge_pmt(Int_t ipmt) {return eZpmt[ipmt];} // 0-47 Z for each PMT for tracked events |
// Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt.At(ipmt); } // 0-47 dEdx for each PMT for tracked events |
|
Float_t GetdEdx_pad(Int_t ipad) {return eDEDXpad[ipad];} // 0-23 dEdx for each paddle for tracked events (no request of consistency between PMT's response when both on!) |
|
|
Float_t GetCharge_pad(Int_t ipad) {return eZpad[ipad];} // 0-23 Z for each paddle for tracked events (no request of consistency) |
|
|
Float_t GetdEdx_layer(Int_t ilay) {return eDEDXlayer[ilay];} // 0-5 dEdx for each layer for tracked events |
|
|
Float_t GetCharge_layer(Int_t ilay) {return eZlayer[ilay];} // 0-5 Z for each layer for tracked events |
|
|
Float_t GetdEdx_plane(Int_t ipl) {return eDEDXplane[ipl];} // 0-2 dEdx for each plane for tracked events |
|
|
Float_t GetCharge_plane(Int_t ipl) {return eZplane[ipl];} // 0-2 Z for each plane for tracked events N.B.: here there is a soft request of consistency between the two layers...to be discussed!! |
|
|
|
|
|
Float_t GetInfo_pmt(Int_t ipmt) {return INFOpmt[ipmt];} // 0-47 pmt status |
|
|
Float_t GetInfo_layer(Int_t ilay) {return INFOlayer[ilay];} // 0-5 layer status |
|
|
|
|
|
|
|
|
|
|
|
// |
|
| 171 |
// |
// |
| 172 |
ToFdEdx* GetToFdEdx(){return this;}; |
ToFdEdx* GetToFdEdx(){return this;}; |
| 173 |
|
ClassDef(ToFdEdx,3); |
|
|
|
|
|
|
|
|
|
|
ClassDef(ToFdEdx,1); |
|
| 174 |
}; |
}; |
| 175 |
|
|
| 176 |
|
|