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
CalibrationTrackSelector::matchedrecHitsTag_
const edm::InputTag matchedrecHitsTag_
Definition: CalibrationTrackSelector.h:55
CalibrationTrackSelector::applyIsolation_
const bool applyIsolation_
Definition: CalibrationTrackSelector.h:48
CalibrationTrackSelector::phiMax_
const double phiMax_
Definition: CalibrationTrackSelector.h:52
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
CalibrationTrackSelector::nHitMin_
const double nHitMin_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::minHitsinFPIX_
const int minHitsinFPIX_
Definition: CalibrationTrackSelector.h:57
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
CalibrationTrackSelector::basicCuts
Tracks basicCuts(const Tracks &tracks, const edm::Event &evt) const
apply basic cuts on pt,eta,phi,nhit
Definition: CalibrationTrackSelector.cc:124
CalibrationTrackSelector::CalibrationTrackSelector
CalibrationTrackSelector(const edm::ParameterSet &cfg)
constructor
Definition: CalibrationTrackSelector.cc:25
edm
HLT enums.
Definition: AlignableModifier.h:19
CalibrationTrackSelector::applyMultiplicityFilter_
const bool applyMultiplicityFilter_
Definition: CalibrationTrackSelector.h:46
CalibrationTrackSelector::seedOnlyFromAbove_
const int seedOnlyFromAbove_
Definition: CalibrationTrackSelector.h:47
CalibrationTrackSelector::etaMax_
const double etaMax_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::rphirecHitsTag_
const edm::InputTag rphirecHitsTag_
Definition: CalibrationTrackSelector.h:54
CalibrationTrackSelector::isIsolated
bool isIsolated(const TrackingRecHit *therechit, const edm::Event &evt) const
Definition: CalibrationTrackSelector.cc:299
CalibrationTrackSelector::etaMin_
const double etaMin_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::detailedHitsCheck
bool detailedHitsCheck(const reco::Track *track, const edm::Event &evt) const
checking hit requirements beyond simple number of valid hits
Definition: CalibrationTrackSelector.cc:151
CalibrationTrackSelector::theNHighestPtTracks
Tracks theNHighestPtTracks(const Tracks &tracks) const
filter the n highest pt tracks
Definition: CalibrationTrackSelector.cc:343
CalibrationTrackSelector::applyNHighestPt_
const bool applyNHighestPt_
Definition: CalibrationTrackSelector.h:46
CalibrationTrackSelector::phiMin_
const double phiMin_
Definition: CalibrationTrackSelector.h:52
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
Track.h
CalibrationTrackSelector::nHitMin2D_
const unsigned int nHitMin2D_
Definition: CalibrationTrackSelector.h:56
CalibrationTrackSelector::isHit2D
bool isHit2D(const TrackingRecHit &hit) const
Definition: CalibrationTrackSelector.cc:218
CalibrationTrackSelector::chi2nMax_
const double chi2nMax_
Definition: CalibrationTrackSelector.h:52
reco::Track
Definition: Track.h:27
Event
CalibrationTrackSelector::minHitsinTEC_
const int minHitsinTEC_
Definition: CalibrationTrackSelector.h:57
CalibrationTrackSelector::chargeCheck_
const bool chargeCheck_
Definition: CalibrationTrackSelector.h:48
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
CalibrationTrackSelector::applyBasicCuts_
const bool applyBasicCuts_
Definition: CalibrationTrackSelector.h:46
CalibrationTrackSelector::nHighestPt_
const int nHighestPt_
Definition: CalibrationTrackSelector.h:49
CalibrationTrackSelector::ComparePt::operator()
bool operator()(const reco::Track *t1, const reco::Track *t2) const
Definition: CalibrationTrackSelector.h:42
CalibrationTrackSelector::Tracks
std::vector< const reco::Track * > Tracks
Definition: CalibrationTrackSelector.h:17
CalibrationTrackSelector::isOkCharge
bool isOkCharge(const TrackingRecHit *therechit) const
Definition: CalibrationTrackSelector.cc:251
CalibrationTrackSelector::maxMultiplicity_
const int maxMultiplicity_
Definition: CalibrationTrackSelector.h:49
CalibrationTrackSelector::minHitsinTID_
const int minHitsinTID_
Definition: CalibrationTrackSelector.h:57
CalibrationTrackSelector::ComparePt
compare two tracks in pt (used by theNHighestPtTracks)
Definition: CalibrationTrackSelector.h:41
InputTag.h
looper.cfg
cfg
Definition: looper.py:297
TrackingRecHit
Definition: TrackingRecHit.h:21
CalibrationTrackSelector::minHitIsolation_
const double minHitIsolation_
Definition: CalibrationTrackSelector.h:53
CalibrationTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
Definition: CalibrationTrackSelector.cc:92
CalibrationTrackSelector::ptMin_
const double ptMin_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::nHitMax_
const double nHitMax_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::minHitsinBPIX_
const int minHitsinBPIX_
Definition: CalibrationTrackSelector.h:57
CalibrationTrackSelector::ptMax_
const double ptMax_
Definition: CalibrationTrackSelector.h:52
CalibrationTrackSelector::minHitsinTOB_
const int minHitsinTOB_
Definition: CalibrationTrackSelector.h:57
CalibrationTrackSelector::minHitChargeStrip_
const double minHitChargeStrip_
Definition: CalibrationTrackSelector.h:53
CalibrationTrackSelector::multiplicityOnInput_
const bool multiplicityOnInput_
Definition: CalibrationTrackSelector.h:50
CalibrationTrackSelector::~CalibrationTrackSelector
~CalibrationTrackSelector()
destructor
Definition: CalibrationTrackSelector.cc:88
CalibrationTrackSelector
Definition: CalibrationTrackSelector.h:15
edm::Event
Definition: Event.h:73
CalibrationTrackSelector::ptComparator
ComparePt ptComparator
Definition: CalibrationTrackSelector.h:44
edm::InputTag
Definition: InputTag.h:15
CalibrationTrackSelector::minMultiplicity_
const int minMultiplicity_
Definition: CalibrationTrackSelector.h:49
hit
Definition: SiStripHitEffFromCalibTree.cc:88
CalibrationTrackSelector::minHitsinTIB_
const int minHitsinTIB_
Definition: CalibrationTrackSelector.h:57