CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_
tuple cfg
Definition: looper.py:296
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
auto const & tracks
cannot be loose
bool isIsolated(const TrackingRecHit *therechit, const edm::Event &evt) const
bool detailedHitsCheck(const reco::Track *track, const edm::Event &evt) const
checking hit requirements beyond simple number of valid hits
double pt() const
track transverse momentum
Definition: TrackBase.h:637
const edm::InputTag rphirecHitsTag_
bool isOkCharge(const TrackingRecHit *therechit) const
compare two tracks in pt (used by theNHighestPtTracks)
bool operator()(const reco::Track *t1, const reco::Track *t2) const
std::vector< const reco::Track * > Tracks
Tracks theNHighestPtTracks(const Tracks &tracks) const
filter the n highest pt tracks
bool isHit2D(const TrackingRecHit &hit) const
CalibrationTrackSelector(const edm::ParameterSet &cfg)
constructor
Tracks basicCuts(const Tracks &tracks, const edm::Event &evt) const
apply basic cuts on pt,eta,phi,nhit