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 
6 #include <vector>
7 
8 namespace edm {
9  class Event;
10  class ParameterSet;
11 } // namespace edm
12 
13 class TrackingRecHit;
14 
16 public:
17  typedef std::vector<const reco::Track *> Tracks;
18 
21 
24 
26  Tracks select(const Tracks &tracks, const edm::Event &evt) const;
27 
28 private:
30  Tracks basicCuts(const Tracks &tracks, const edm::Event &evt) const;
32  bool detailedHitsCheck(const reco::Track *track, const edm::Event &evt) const;
33  bool isHit2D(const TrackingRecHit &hit) const;
34  bool isOkCharge(const TrackingRecHit *therechit) const;
35  bool isIsolated(const TrackingRecHit *therechit, const edm::Event &evt) const;
36 
39 
41  struct ComparePt {
42  bool operator()(const reco::Track *t1, const reco::Track *t2) const { return t1->pt() > t2->pt(); }
43  };
45 
47  const int seedOnlyFromAbove_;
50  const bool multiplicityOnInput_;
56  const unsigned int nHitMin2D_;
58 };
59 
60 #endif
const edm::InputTag matchedrecHitsTag_
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
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
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)
constructor