CMS 3D CMS Logo

CalibrationTrackSelector.h
Go to the documentation of this file.
1 #ifndef Calibration_TkAlCaRecoProducers_CalibrationTrackSelector_h
2 #define Calibration_TkAlCaRecoProducers_CalibrationTrackSelector_h
3 
9 #include <vector>
10 
11 namespace edm {
12  class Event;
13  class ParameterSet;
14 } // namespace edm
15 
16 class TrackingRecHit;
17 
19 public:
20  typedef std::vector<const reco::Track *> Tracks;
21 
24 
27 
29  Tracks select(const Tracks &tracks, const edm::Event &evt) const;
30 
31 private:
33  Tracks basicCuts(const Tracks &tracks, const edm::Event &evt) const;
35  bool detailedHitsCheck(const reco::Track *track, const edm::Event &evt) const;
36  bool isHit2D(const TrackingRecHit &hit) const;
37  bool isOkCharge(const TrackingRecHit *therechit) const;
38  bool isIsolated(const TrackingRecHit *therechit, const edm::Event &evt) const;
39 
42 
44  struct ComparePt {
45  bool operator()(const reco::Track *t1, const reco::Track *t2) const { return t1->pt() > t2->pt(); }
46  };
48 
50  const int seedOnlyFromAbove_;
53  const bool multiplicityOnInput_;
59  const unsigned int nHitMin2D_;
63 };
64 
65 #endif
const edm::InputTag matchedrecHitsTag_
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
const edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
bool detailedHitsCheck(const reco::Track *track, const edm::Event &evt) const
checking hit requirements beyond simple number of valid hits
Tracks theNHighestPtTracks(const Tracks &tracks) const
filter the n highest pt tracks
bool isHit2D(const TrackingRecHit &hit) const
bool isOkCharge(const TrackingRecHit *therechit) const
const edm::InputTag rphirecHitsTag_
bool operator()(const reco::Track *t1, const reco::Track *t2) const
bool isIsolated(const TrackingRecHit *therechit, const edm::Event &evt) const
const edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
compare two tracks in pt (used by theNHighestPtTracks)
auto const & tracks
cannot be loose
std::vector< const reco::Track * > Tracks
HLT enums.
Tracks basicCuts(const Tracks &tracks, const edm::Event &evt) const
apply basic cuts on pt,eta,phi,nhit
CalibrationTrackSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor