File indexing completed on 2024-04-06 11:59:10
0001 #ifndef CalibrationIsolatedParticlesTrackSelection_h
0002 #define CalibrationIsolatedParticlesTrackSelection_h
0003
0004
0005 #include <cmath>
0006
0007 #include "DataFormats/Math/interface/Point3D.h"
0008 #include "DataFormats/TrackReco/interface/Track.h"
0009
0010 namespace spr {
0011
0012 struct trackSelectionParameters {
0013 trackSelectionParameters() {
0014 minPt = 0;
0015 minQuality = reco::TrackBase::highPurity;
0016 maxDxyPV = maxDzPV = 999999.;
0017 maxChi2 = maxDpOverP = 99999999., minOuterHit = minLayerCrossed = 0;
0018 maxInMiss = maxOutMiss = -1;
0019 }
0020 double minPt;
0021 reco::TrackBase::TrackQuality minQuality;
0022 double maxDxyPV, maxDzPV, maxChi2, maxDpOverP;
0023 int minOuterHit, minLayerCrossed;
0024 int maxInMiss, maxOutMiss;
0025 };
0026
0027 bool goodTrack(const reco::Track* pTrack,
0028 math::XYZPoint leadPV,
0029 trackSelectionParameters parameters,
0030 bool debug = false);
0031
0032 }
0033 #endif