15 |
**/ |
**/ |
16 |
CaloTrkVar::CaloTrkVar() { |
CaloTrkVar::CaloTrkVar() { |
17 |
this->Clear(); |
this->Clear(); |
18 |
}; |
} |
19 |
|
|
20 |
/** |
/** |
21 |
* Clear variables |
* Clear variables |
22 |
**/ |
**/ |
23 |
void CaloTrkVar::Clear() { |
void CaloTrkVar::Clear(Option_t *t) { |
24 |
|
//void CaloTrkVar::Clear() { |
25 |
trkseqno = 0; |
trkseqno = 0; |
26 |
noint = 0; |
noint = 0; |
27 |
ncore = 0; |
ncore = 0; |
92 |
// |
// |
93 |
this->Clear(); |
this->Clear(); |
94 |
// |
// |
95 |
}; |
} |
96 |
/** |
/** |
97 |
* Create the TClonesArray |
* Create the TClonesArray |
98 |
**/ |
**/ |
103 |
/** |
/** |
104 |
* Clear the CaloLevel2 object |
* Clear the CaloLevel2 object |
105 |
**/ |
**/ |
106 |
void CaloLevel2::Clear() { |
void CaloLevel2::Clear(Option_t *t ) { |
107 |
// |
// |
108 |
// CaloTrk->Clear(); //ELENA |
// CaloTrk->Clear(); //ELENA |
109 |
if(CaloTrk)CaloTrk->Delete(); //ELENA |
if(CaloTrk)CaloTrk->Delete(); //ELENA |
110 |
// |
// |
111 |
nstrip = 0; |
nstrip = 0; |
133 |
good = 0; |
good = 0; |
134 |
selftrigger = 0; |
selftrigger = 0; |
135 |
// |
// |
136 |
}; |
} |
137 |
|
|
138 |
/** |
/** |
139 |
* Delete the CaloLevel2 object |
* Delete the CaloLevel2 object |
140 |
**/ |
**/ |
141 |
void CaloLevel2::Delete() { //ELENA |
void CaloLevel2::Delete(Option_t *t) { //ELENA |
142 |
if(CaloTrk){ //ELENA |
if(CaloTrk){ //ELENA |
143 |
CaloTrk->Delete(); //ELENA |
CaloTrk->Delete(); //ELENA |
144 |
delete CaloTrk; //ELENA |
delete CaloTrk; //ELENA |
232 |
printf(" Cannot find selftrigger block\n"); |
printf(" Cannot find selftrigger block\n"); |
233 |
}; |
}; |
234 |
return(-100.); |
return(-100.); |
235 |
}; |
} |
236 |
|
|
237 |
/** |
/** |
238 |
* Returns the impact position on the top of the calorimeter as determined by the calorimeter itself. |
* Returns the impact position on the top of the calorimeter as determined by the calorimeter itself. |
254 |
printf(" Cannot find selftrigger block\n"); |
printf(" Cannot find selftrigger block\n"); |
255 |
}; |
}; |
256 |
return(-100.); |
return(-100.); |
257 |
}; |
} |
258 |
/** |
/** |
259 |
* Should return the energy in GeV if the particle would be an electron |
* Should return the energy in GeV if the particle would be an electron |
260 |
* using a parametrization taken from Monte Carlo simulation |
* using a parametrization taken from Monte Carlo simulation |
265 |
sigma = 0.; |
sigma = 0.; |
266 |
if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy)); |
if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy)); |
267 |
return; |
return; |
268 |
}; |
} |
269 |
|
|
270 |
/** |
/** |
271 |
* Returns pointer to the set of track-related variables "itrk" |
* Returns pointer to the set of track-related variables "itrk" |
308 |
}; |
}; |
309 |
return c; |
return c; |
310 |
|
|
311 |
}; |
} |