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 
2 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentGlobalTrackSelector_h
3 #define Alignment_CommonAlignmentAlgorithm_AlignmentGlobalTrackSelector_h
4 
5 //Framework
8 //STL
9 #include <vector>
10 
11 namespace edm {class Track;}
12 namespace reco {class Event;}
13 
15 {
16 
17  public:
18 
19  typedef std::vector<const reco::Track*> Tracks;
20 
23 
26 
28  Tracks select(const Tracks& tracks, const edm::Event& iEvent, const edm::EventSetup& eSetup);
30  bool useThisFilter();
31 
32  private:
33 
35  Tracks checkJetCount(const Tracks& cands,const edm::Event& iEvent)const;
37  Tracks checkIsolation(const Tracks& cands,const edm::Event& iEvent)const;
39  Tracks findMuons(const Tracks& tracks,const edm::Event& iEvent)const;
40 
43 
44  //settings from conigfile
48 
49  //global Muon Filter
53 
54  //isolation Cut
56  double theMaxJetPt;
59 
60  //jet count Filter
62  double theMinJetPt;
64 
65  //helpers
66 
68  void printTracks(const Tracks& col) const;
69 
71  Tracks matchTracks(const Tracks& src, const Tracks& comp) const;
72 };
73 
74 #endif
75 
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
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::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
AlignmentGlobalTrackSelector(const edm::ParameterSet &cfg)
constructor
int col
Definition: cuy.py:1008
bool useThisFilter()
returns if any of the Filters is used.
Tracks matchTracks(const Tracks &src, const Tracks &comp) const
matches [src] with [comp] returns collection with matching Tracks coming from [src] ...