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;
26 if( std::abs(theTrackInfo.
a0beam) > TRKCUT_A0BEAM ) {
return false;}
36 double tiltXZ = beamSpotHandle.
beamTilt(0);
37 double tiltYZ = beamSpotHandle.
beamTilt(1);
38 shift_x = xVTX - tiltXZ*zVTX;
39 shift_y = yVTX - tiltYZ*zVTX;
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
const Amg::Vector3D & beamPos() const noexcept
Eigen::Matrix< double, 3, 1 > Vector3D
void getBeamSpotShift(float &shift_x, float &shift_y, const InDet::BeamSpotData &beamSpotHandle)
bool isGoodTrackUTT(const Trk::Track *track, trackInfo &theTrackInfo, const float shift_x, const float shift_y, float trkcut_ptgev)
@ numberOfSCTHits
number of SCT holes
@ numberOfPixelHits
number of pixel layers on track with absence of hits
@ numberOfNextToInnermostPixelLayerHits
these are the pixel hits, including the b-layer
@ numberOfInnermostPixelLayerHits
these are the hits in the 1st pixel layer