8 |
#include "TrkChi2DeflTimeCut.h" |
#include "TrkChi2DeflTimeCut.h" |
9 |
|
|
10 |
double TrkChi2DeflTimeCut::_GetChi2(PamLevel2 *event) { |
double TrkChi2DeflTimeCut::_GetChi2(PamLevel2 *event) { |
11 |
return event->GetTrack(0)->GetTrkTrack()->chi2; |
// return event->GetTrack(0)->GetTrkTrack()->chi2; |
12 |
|
return (event->GetNTracks(_trkAlg)<=0 ? -1. : event->GetTrack(0,_trkAlg)->GetExtTrack()->chi2); |
13 |
} |
} |
14 |
|
|
15 |
int TrkChi2DeflTimeCut::Check(PamLevel2 *event) { |
int TrkChi2DeflTimeCut::Check(PamLevel2 *event) { |
17 |
double chi2 = _GetChi2(event); |
double chi2 = _GetChi2(event); |
18 |
if (chi2 < 0.) |
if (chi2 < 0.) |
19 |
return 0; |
return 0; |
20 |
Double_t etaMod = fabs(event->GetTrack(0)->GetTrkTrack()->GetDeflection()); |
// Double_t etaMod = fabs(event->GetTrack(0)->GetTrkTrack()->GetDeflection()); |
21 |
Int_t nHitX = event->GetTrack(0)->GetTrkTrack()->GetNX(); |
// Int_t nHitX = event->GetTrack(0)->GetTrkTrack()->GetNX(); |
22 |
|
Double_t etaMod = fabs(event->GetTrack(0,_trkAlg)->GetExtTrack()->GetDeflection()); |
23 |
|
Int_t nHitX = event->GetTrack(0,_trkAlg)->GetExtTrack()->GetNX(); |
24 |
|
|
25 |
// cout << " nHitX " << nHitX << endl; |
// cout << " nHitX " << nHitX << endl; |
26 |
|
|