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 }
12 
13 class TrackingRecHit;
14 
16 {
17 
18  public:
19 
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:
32 
34  Tracks basicCuts(const Tracks& tracks, const edm::Event& evt) const;
36  bool detailedHitsCheck(const reco::Track* track, const edm::Event& evt) const;
37  bool isHit2D(const TrackingRecHit &hit) const;
38  bool isOkCharge(const TrackingRecHit* therechit) const;
39  bool isIsolated(const TrackingRecHit* therechit, const edm::Event& evt) const;
40 
42  Tracks theNHighestPtTracks(const Tracks& tracks) const;
43 
45  struct ComparePt {
46  bool operator()( const reco::Track* t1, const reco::Track* t2 ) const {
47  return t1->pt()> t2->pt();
48  }
49  };
51 
52  const bool applyBasicCuts_, applyNHighestPt_, applyMultiplicityFilter_;
53  const int seedOnlyFromAbove_;
54  const bool applyIsolation_, chargeCheck_ ;
55  const int nHighestPt_, minMultiplicity_, maxMultiplicity_;
56  const bool multiplicityOnInput_;
57  const double ptMin_,ptMax_,etaMin_,etaMax_,phiMin_,phiMax_,nHitMin_,nHitMax_,chi2nMax_;
58  const double minHitChargeStrip_, minHitIsolation_;
61  const unsigned int nHitMin2D_;
62  const int minHitsinTIB_, minHitsinTOB_, minHitsinTID_, minHitsinTEC_, minHitsinBPIX_, minHitsinFPIX_;
63 
64 };
65 
66 #endif
67 
const edm::InputTag matchedrecHitsTag_
std::vector< const reco::Track * > Tracks
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
double pt() const
track transverse momentum
Definition: TrackBase.h:616
const edm::InputTag rphirecHitsTag_
const double ptMin_
if true, cut min/maxMultiplicity on input instead of on final result
compare two tracks in pt (used by theNHighestPtTracks)
bool operator()(const reco::Track *t1, const reco::Track *t2) const
HLT enums.