00001 #ifndef CalibrationIsolatedParticlesTrackSelection_h 00002 #define CalibrationIsolatedParticlesTrackSelection_h 00003 00004 // system include files 00005 #include <cmath> 00006 00007 #include "DataFormats/Math/interface/Point3D.h" 00008 #include "DataFormats/TrackReco/interface/Track.h" 00009 00010 namespace spr{ 00011 00012 struct trackSelectionParameters { 00013 trackSelectionParameters() { 00014 minPt = 0; 00015 minQuality = reco::TrackBase::highPurity; 00016 maxDxyPV = maxDzPV = 999999.; 00017 maxChi2 = maxDpOverP = 99999999., 00018 minOuterHit= minLayerCrossed = 0; 00019 maxInMiss = maxOutMiss =-1; 00020 } 00021 double minPt; 00022 reco::TrackBase::TrackQuality minQuality; 00023 double maxDxyPV, maxDzPV, maxChi2, maxDpOverP; 00024 int minOuterHit, minLayerCrossed; 00025 int maxInMiss, maxOutMiss; 00026 }; 00027 00028 bool goodTrack (const reco::Track* pTrack, math::XYZPoint leadPV, trackSelectionParameters parameters, bool debug=false); 00029 00030 } 00031 #endif