CMS 3D CMS Logo

AlignmentGlobalTrackSelector.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentGlobalTrackSelector_h
2 #define Alignment_CommonAlignmentAlgorithm_AlignmentGlobalTrackSelector_h
3 
6 
7 //Framework
11 //STL
12 #include <vector>
13 
14 namespace reco {
15  class Track;
16 }
17 namespace edm {
18  class Event;
19  class EventSetup;
20 } // namespace edm
21 
23 public:
24  typedef std::vector<const reco::Track*> Tracks;
25 
28 
31 
33  Tracks select(const Tracks& tracks, const edm::Event& iEvent, const edm::EventSetup& eSetup);
35  bool useThisFilter();
36 
37 private:
39  Tracks checkJetCount(const Tracks& cands, const edm::Event& iEvent) const;
41  Tracks checkIsolation(const Tracks& cands, const edm::Event& iEvent) const;
43  Tracks findMuons(const Tracks& tracks, const edm::Event& iEvent) const;
44 
47 
48  //settings from conigfile
52 
53  //global Muon Filter
57 
58  //isolation Cut
60  double theMaxJetPt;
63 
64  //jet count Filter
66  double theMinJetPt;
68 
69  //helpers
70 
72  void printTracks(const Tracks& col) const;
73 
75  Tracks matchTracks(const Tracks& src, const Tracks& comp) const;
76 };
77 
78 #endif
AlignmentGlobalTrackSelector::theIsoFilterSwitch
bool theIsoFilterSwitch
Definition: AlignmentGlobalTrackSelector.h:50
CaloJetCollection.h
AlignmentGlobalTrackSelector::theMuonToken
edm::EDGetTokenT< reco::MuonCollection > theMuonToken
Definition: AlignmentGlobalTrackSelector.h:54
AlignmentGlobalTrackSelector::theConf
edm::ParameterSet theConf
private data members
Definition: AlignmentGlobalTrackSelector.h:46
AlignmentGlobalTrackSelector::matchTracks
Tracks matchTracks(const Tracks &src, const Tracks &comp) const
matches [src] with [comp] returns collection with matching Tracks coming from [src]
Definition: AlignmentGlobalTrackSelector.cc:184
edm::EDGetTokenT< reco::MuonCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
AlignmentGlobalTrackSelector
Definition: AlignmentGlobalTrackSelector.h:22
cuy.col
col
Definition: cuy.py:1010
AlignmentGlobalTrackSelector::checkIsolation
Tracks checkIsolation(const Tracks &cands, const edm::Event &iEvent) const
returns only isolated tracks in [cands]
Definition: AlignmentGlobalTrackSelector.cc:125
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
AlignmentGlobalTrackSelector::theMinGlobalMuonCount
int theMinGlobalMuonCount
Definition: AlignmentGlobalTrackSelector.h:56
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
AlignmentGlobalTrackSelector::printTracks
void printTracks(const Tracks &col) const
print Information on Track-Collection
Definition: AlignmentGlobalTrackSelector.cc:204
MuonFwd.h
AlignmentGlobalTrackSelector::checkJetCount
Tracks checkJetCount(const Tracks &cands, const edm::Event &iEvent) const
returns [tracks] if there are less than theMaxCount Jets with theMinJetPt and an empty set if not
Definition: AlignmentGlobalTrackSelector.cc:155
AlignmentGlobalTrackSelector::theJetIsoToken
edm::EDGetTokenT< reco::CaloJetCollection > theJetIsoToken
Definition: AlignmentGlobalTrackSelector.h:59
Event
EDGetToken.h
AlignmentGlobalTrackSelector::useThisFilter
bool useThisFilter()
returns if any of the Filters is used.
Definition: AlignmentGlobalTrackSelector.cc:68
AlignmentGlobalTrackSelector::theMinJetDeltaR
double theMinJetDeltaR
Definition: AlignmentGlobalTrackSelector.h:61
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15146
AlignmentGlobalTrackSelector::AlignmentGlobalTrackSelector
AlignmentGlobalTrackSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor
Definition: AlignmentGlobalTrackSelector.cc:28
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentGlobalTrackSelector::theMaxJetCount
int theMaxJetCount
Definition: AlignmentGlobalTrackSelector.h:67
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
AlignmentGlobalTrackSelector::theGMFilterSwitch
bool theGMFilterSwitch
Definition: AlignmentGlobalTrackSelector.h:49
AlignmentGlobalTrackSelector::theMaxTrackDeltaR
double theMaxTrackDeltaR
Definition: AlignmentGlobalTrackSelector.h:55
AlignmentGlobalTrackSelector::theMinJetPt
double theMinJetPt
Definition: AlignmentGlobalTrackSelector.h:66
iEvent
int iEvent
Definition: GenABIO.cc:224
AlignmentGlobalTrackSelector::theMaxJetPt
double theMaxJetPt
Definition: AlignmentGlobalTrackSelector.h:60
edm::EventSetup
Definition: EventSetup.h:58
looper.cfg
cfg
Definition: looper.py:297
AlignmentGlobalTrackSelector::Tracks
std::vector< const reco::Track * > Tracks
Definition: AlignmentGlobalTrackSelector.h:24
AlignmentGlobalTrackSelector::findMuons
Tracks findMuons(const Tracks &tracks, const edm::Event &iEvent) const
filter for Tracks that match the Track of a global Muon
Definition: AlignmentGlobalTrackSelector.cc:92
AlignmentGlobalTrackSelector::theJetCountToken
edm::EDGetTokenT< reco::CaloJetCollection > theJetCountToken
Definition: AlignmentGlobalTrackSelector.h:65
ConsumesCollector.h
EventSetup
AlignmentGlobalTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &eSetup)
select tracks
Definition: AlignmentGlobalTrackSelector.cc:73
ParameterSet.h
AlignmentGlobalTrackSelector::theMinIsolatedCount
int theMinIsolatedCount
Definition: AlignmentGlobalTrackSelector.h:62
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
AlignmentGlobalTrackSelector::theJetCountFilterSwitch
bool theJetCountFilterSwitch
Definition: AlignmentGlobalTrackSelector.h:51
AlignmentGlobalTrackSelector::~AlignmentGlobalTrackSelector
~AlignmentGlobalTrackSelector()
destructor
Definition: AlignmentGlobalTrackSelector.cc:65