CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 edm {class Track;}
15 namespace reco {class Event;}
16 
18 {
19 
20  public:
21 
22  typedef std::vector<const reco::Track*> Tracks;
23 
26 
29 
31  Tracks select(const Tracks& tracks, const edm::Event& iEvent, const edm::EventSetup& eSetup);
33  bool useThisFilter();
34 
35  private:
36 
38  Tracks checkJetCount(const Tracks& cands,const edm::Event& iEvent)const;
40  Tracks checkIsolation(const Tracks& cands,const edm::Event& iEvent)const;
42  Tracks findMuons(const Tracks& tracks,const edm::Event& iEvent)const;
43 
46 
47  //settings from conigfile
51 
52  //global Muon Filter
56 
57  //isolation Cut
59  double theMaxJetPt;
62 
63  //jet count Filter
65  double theMinJetPt;
67 
68  //helpers
69 
71  void printTracks(const Tracks& col) const;
72 
74  Tracks matchTracks(const Tracks& src, const Tracks& comp) const;
75 };
76 
77 #endif
78 
AlignmentGlobalTrackSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor
tuple cfg
Definition: looper.py:259
Tracks findMuons(const Tracks &tracks, const edm::Event &iEvent) const
filter for Tracks that match the Track of a global Muon
std::vector< const reco::Track * > Tracks
edm::EDGetTokenT< reco::CaloJetCollection > theJetCountToken
int iEvent
Definition: GenABIO.cc:230
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &eSetup)
select tracks
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 ...
void printTracks(const Tracks &col) const
print Information on Track-Collection
edm::EDGetTokenT< reco::MuonCollection > theMuonToken
edm::ParameterSet theConf
private data members
Tracks checkIsolation(const Tracks &cands, const edm::Event &iEvent) const
returns only isolated tracks in [cands]
tuple tracks
Definition: testEve_cfg.py:39
int col
Definition: cuy.py:1008
bool useThisFilter()
returns if any of the Filters is used.
edm::EDGetTokenT< reco::CaloJetCollection > theJetIsoToken
Tracks matchTracks(const Tracks &src, const Tracks &comp) const
matches [src] with [comp] returns collection with matching Tracks coming from [src] ...