34 |
interplane = 0; |
interplane = 0; |
35 |
preq = 0.; |
preq = 0.; |
36 |
postq = 0.; |
postq = 0.; |
37 |
|
stdedx1 = 0.; |
38 |
|
ethr = 0.; |
39 |
dedx1 = 0.; |
dedx1 = 0.; |
40 |
dedx3 = 0.; |
dedx3 = 0.; |
41 |
qpremean = 0.; |
qpremean = 0.; |
153 |
if ( debug ) printf(" if ( !usetrack ) return: usetrack %i ntr %i \n",usetrack,ntr); |
if ( debug ) printf(" if ( !usetrack ) return: usetrack %i ntr %i \n",usetrack,ntr); |
154 |
// |
// |
155 |
// |
// |
156 |
if ( !usetrack ) return; |
// if ( !usetrack ) return; |
157 |
// |
// |
158 |
PamTrack *ptrack = 0; |
PamTrack *ptrack = 0; |
159 |
CaloTrkVar *track = 0; |
CaloTrkVar *track = 0; |
|
if ( ntr >= 0 ){ |
|
|
ptrack = L2->GetTrack(ntr); |
|
|
if ( ptrack ) track = ptrack->GetCaloTrack(); |
|
|
} else { |
|
|
track = L2->GetCaloStoredTrack(ntr); |
|
|
}; |
|
160 |
// |
// |
161 |
if ( !track && ntr >= 0 ){ |
if ( usetrack ){ |
162 |
printf(" ERROR: cannot find any track!\n"); |
if ( ntr >= 0 ){ |
163 |
printf(" ERROR: CaloNuclei variables not completely filled \n"); |
ptrack = L2->GetTrack(ntr); |
164 |
return; |
if ( ptrack ) track = ptrack->GetCaloTrack(); |
165 |
|
} else { |
166 |
|
track = L2->GetCaloStoredTrack(ntr); |
167 |
|
}; |
168 |
|
// |
169 |
|
if ( !track && ntr >= 0 ){ |
170 |
|
printf(" ERROR: cannot find any track!\n"); |
171 |
|
printf(" ERROR: CaloNuclei variables not completely filled \n"); |
172 |
|
return; |
173 |
|
}; |
174 |
|
} else { |
175 |
|
if ( ntr >= 0 ){ |
176 |
|
if ( debug ) printf(" ERROR: you asked not to use a track but you are looking for track number %i !\n",ntr); |
177 |
|
if ( debug ) printf(" ERROR: CaloNuclei variables not completely filled \n"); |
178 |
|
return; |
179 |
|
}; |
180 |
}; |
}; |
181 |
// |
// |
182 |
// Float_t defethr = 6. * 0.90; |
// Float_t defethr = 6. * 0.90; |