| 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 |
| 114 |
|
|
| 115 |
private: |
private: |
| 116 |
// |
// |
|
|
|
| 117 |
ToFGeom eGeom; // ToF geometry |
ToFGeom eGeom; // ToF geometry |
| 118 |
// |
// |
|
|
|
| 119 |
Float_t adc_he; |
Float_t adc_he; |
|
|
|
| 120 |
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 |
|
|
|
|
| 121 |
// parameters: |
// parameters: |
| 122 |
TArrayF PMTsat; // 0-47 saturation parameters |
TArrayF PMTsat; // 0-47 saturation parameters |
| 123 |
|
Float_t adc[48]; |
| 124 |
TArrayF TDx[48]; // 200 x 48 define an array of 200 elements per each pmt |
// |
|
TArrayF TDy[48]; |
|
| 125 |
|
|
| 126 |
TArrayF parAtt[48]; // 48 x 6 |
TArrayF parAtt[48]; // 48 x 6 |
| 127 |
TArrayF parPos[48]; // 48 x 4 |
TArrayF parPos[48]; // 48 x 4 |
| 153 |
void Clear(Option_t *option=""); |
void Clear(Option_t *option=""); |
| 154 |
void Delete(Option_t *option="") { Clear(); } |
void Delete(Option_t *option="") { Clear(); } |
| 155 |
|
|
| 156 |
// void InitPar(const char *pardir); // init parameters |
void Init(pamela::tof::TofEvent *tofl0 ); // init parameters |
| 157 |
|
void Init(Int_t i, Int_t j, Float_t adce); |
| 158 |
void Define_PMTsat(); |
void Define_PMTsat(); |
|
//void ReadParTD( Int_t ipmt, const char *fname ); |
|
| 159 |
|
|
| 160 |
void ReadParAtt( const char *fname ); |
void ReadParAtt( const char *fname ); |
| 161 |
void ReadParPos( const char *fname ); |
void ReadParPos( const char *fname ); |
| 165 |
|
|
| 166 |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
| 167 |
|
|
| 168 |
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); // |
| 169 |
void Print(Option_t *option=""); |
void Print(Option_t *option=""); |
|
void PrintTD(); |
|
|
|
|
| 170 |
|
|
| 171 |
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 |
|
Float_t GetCharge_pmt(Int_t ipmt) {return eZpmt[ipmt];} // 0-47 Z 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 |
|
|
|
|
|
|
|
|
|
|
|
// |
|
| 172 |
// |
// |
| 173 |
ToFdEdx* GetToFdEdx(){return this;}; |
ToFdEdx* GetToFdEdx(){return this;}; |
| 174 |
|
ClassDef(ToFdEdx,2); |
|
|
|
|
|
|
|
|
|
|
ClassDef(ToFdEdx,1); |
|
| 175 |
}; |
}; |
| 176 |
|
|
| 177 |
|
|