| 35 |
#define toftrk toftrk_ |
#define toftrk toftrk_ |
| 36 |
extern "C" int toftrk(); |
extern "C" int toftrk(); |
| 37 |
#define rdtofcal rdtofcal_ |
#define rdtofcal rdtofcal_ |
| 38 |
extern "C" int rdtofcal(char [], int *); |
//extern "C" int rdtofcal(char [], int *); |
| 39 |
|
extern "C" int rdtofcal(const char *, int *); |
| 40 |
|
|
| 41 |
// |
// |
| 42 |
// class which contains track related variables |
// class which contains track related variables |
| 91 |
|
|
| 92 |
public: |
public: |
| 93 |
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 |
| 94 |
Float_t adc; ///<raw ADC value for this PMT |
Float_t adc; ///<raw ADC value for this PMT |
| 95 |
Float_t tdc; ///<raw TDC value for this PMT |
Float_t tdc; ///<raw TDC value for this PMT |
| 96 |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
| 97 |
// |
// |
| 101 |
ToFPMT* GetToFPMT(){return this;}; |
ToFPMT* GetToFPMT(){return this;}; |
| 102 |
void Clear(Option_t *t=""); |
void Clear(Option_t *t=""); |
| 103 |
|
|
|
|
|
|
|
|
| 104 |
ClassDef(ToFPMT,2); |
ClassDef(ToFPMT,2); |
| 105 |
}; |
}; |
| 106 |
|
|
| 116 |
ToFGeom eGeom; // ToF geometry |
ToFGeom eGeom; // ToF geometry |
| 117 |
// |
// |
| 118 |
Float_t adc_he; |
Float_t adc_he; |
| 119 |
TArrayF eDEDXpmt; // 0-47 pmt dEdx |
TArrayF *eDEDXpmt; // 0-47 pmt dEdx |
| 120 |
// parameters: |
// parameters: |
| 121 |
TArrayF PMTsat; // 0-47 saturation parameters |
TArrayF PMTsat; // 0-47 saturation parameters |
| 122 |
Float_t adc[48]; |
Float_t adc[48]; |
| 150 |
~ToFdEdx(){ Delete(); }; // class distructor |
~ToFdEdx(){ Delete(); }; // class distructor |
| 151 |
// |
// |
| 152 |
void Clear(Option_t *option=""); |
void Clear(Option_t *option=""); |
| 153 |
void Delete(Option_t *option="") { Clear(); } |
void Delete(Option_t *option="") { delete eDEDXpmt; Clear(); } |
| 154 |
|
|
| 155 |
void Init(pamela::tof::TofEvent *tofl0 ); // init parameters |
void Init(pamela::tof::TofEvent *tofl0 ); // init parameters |
| 156 |
void Init(Int_t i, Int_t j, Float_t adce); |
void Init(Int_t i, Int_t j, Float_t adce); |
| 164 |
|
|
| 165 |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc); |
| 166 |
|
|
| 167 |
void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof); // |
void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, Int_t exitat=-1); // |
| 168 |
void Print(Option_t *option=""); |
void Print(Option_t *option=""); |
| 169 |
|
|
| 170 |
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 (Float_t)eDEDXpmt[ipmt]; } // 0-47 dEdx for each PMT for tracked events |
| 171 |
|
Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt->At(ipmt); } // 0-47 dEdx for each PMT for tracked events |
| 172 |
// |
// |
| 173 |
ToFdEdx* GetToFdEdx(){return this;}; |
ToFdEdx* GetToFdEdx(){return this;}; |
| 174 |
ClassDef(ToFdEdx,2); |
ClassDef(ToFdEdx,3); |
| 175 |
}; |
}; |
| 176 |
|
|
| 177 |
|
|