5 static constexpr int TRKCUT_N_HITS_INNER = 1;
6 static constexpr int TRKCUT_N_HITS_PIX = 2;
7 static constexpr float TRKCUT_A0BEAM = 2.5;
8 static constexpr int TRKCUT_N_HITS = 4;
10 if ( track->perigeeParameters()==
nullptr )
return false;
11 if ( track->trackSummary()==
nullptr )
return false;
17 if( theTrackInfo.
n_hits_inner < TRKCUT_N_HITS_INNER )
return false;
18 if( theTrackInfo.
n_hits_pix < TRKCUT_N_HITS_PIX )
return false;
20 theTrackInfo.
eta = track->perigeeParameters()->eta();
21 theTrackInfo.
ptGeV = track->perigeeParameters()->pT()/Gaudi::Units::GeV;
22 if( theTrackInfo.
ptGeV < trkcut_ptgev )
return false;
23 float a0 = track->perigeeParameters()->parameters()[
Trk::d0];
24 theTrackInfo.
phi0 = track->perigeeParameters()->parameters()[
Trk::phi0];
25 theTrackInfo.
a0beam =
a0 + shift_x*sin(theTrackInfo.
phi0)-shift_y*cos(theTrackInfo.
phi0);
26 if( std::abs(theTrackInfo.
a0beam) > TRKCUT_A0BEAM ) {
return false;}