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(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor
std::vector< const reco::Track * > Tracks
Tracks findMuons(const Tracks &tracks, const edm::Event &iEvent) const
filter for Tracks that match the Track of a global Muon
edm::EDGetTokenT< reco::CaloJetCollection > theJetCountToken
int iEvent
Definition: GenABIO.cc:224
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &eSetup)
select tracks
edm::EDGetTokenT< reco::MuonCollection > theMuonToken
edm::ParameterSet theConf
private data members
Tracks matchTracks(const Tracks &src, const Tracks &comp) const
matches [src] with [comp] returns collection with matching Tracks coming from [src] ...
Tracks checkIsolation(const Tracks &cands, const edm::Event &iEvent) const
returns only isolated tracks in [cands]
fixed size matrix
HLT enums.
col
Definition: cuy.py:1009
void printTracks(const Tracks &col) const
print Information on Track-Collection
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 ...
bool useThisFilter()
returns if any of the Filters is used.
edm::EDGetTokenT< reco::CaloJetCollection > theJetIsoToken