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 |
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); |
167 |
void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, Int_t exitat=-1); // |
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 |
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,3); |
ClassDef(ToFdEdx,3); |