147 |
// |
// |
148 |
}; //ELENA |
}; //ELENA |
149 |
|
|
150 |
|
/** |
151 |
|
* Retrieves the itrk-th tof track stored in the array |
152 |
|
* @param itrk Array index (min 0, max ToFLevel2::ntrk()) |
153 |
|
* |
154 |
|
*/ |
155 |
ToFTrkVar *ToFLevel2::GetToFTrkVar(Int_t itrk){ |
ToFTrkVar *ToFLevel2::GetToFTrkVar(Int_t itrk){ |
156 |
// |
// |
157 |
if(itrk >= ntrk()){ |
if(itrk >= ntrk()){ |
168 |
|
|
169 |
/** |
/** |
170 |
* Retrieves the tof track matching the seqno-th tracker stored track. |
* Retrieves the tof track matching the seqno-th tracker stored track. |
171 |
|
* @param seqno Track sequential number |
172 |
|
* (seqno = -1 for standalone tof track, seqno=0-TrkLevel2::ntrk() for tof tracks associated to a tracker track) |
173 |
* |
* |
174 |
*/ |
*/ |
175 |
ToFTrkVar *ToFLevel2::GetToFStoredTrack(int seqno){ |
ToFTrkVar *ToFLevel2::GetToFStoredTrack(int seqno){ |
1249 |
|
|
1250 |
// cout<<" in CalcBeta "<<resmax<<" "<<chi2cut<<" "<<qualitycut<<endl; |
// cout<<" in CalcBeta "<<resmax<<" "<<chi2cut<<" "<<qualitycut<<endl; |
1251 |
|
|
1252 |
ToFTrkVar *trk = GetToFTrkVar(notrack); |
// ToFTrkVar *trk = GetToFTrkVar(notrack); //wrong! |
1253 |
|
ToFTrkVar *trk = GetToFStoredTrack(notrack);//Elena Apr 2015 |
1254 |
if(!trk) return 0; //ELENA |
if(!trk) return 0; //ELENA |
1255 |
|
|
1256 |
return trk->CalcBeta(resmax,qualitycut,chi2cut); |
return trk->CalcBeta(resmax,qualitycut,chi2cut); |