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);
30  bool useThisFilter();
31  private:
33  Tracks checkJetCount(const Tracks& cands,const edm::Event& iEvent)const;
35  Tracks checkIsolation(const Tracks& cands,const edm::Event& iEvent)const;
37  Tracks findMuons(const Tracks& tracks,const edm::Event& iEvent)const;
38 
41 
42  //settings from conigfile
46  //global Muon Filter
49  //isolation Cut
51  double theMaxJetPt;
55  //jet count Filter
57  double theMinJetPt;
59 
60  //helpers
61  // double deltaR(const reco::Track* t1,const reco::Track* t2) const;
62  // double deltaR(const reco::Track* t,const reco::Particle& p) const;
64  void printTracks(const Tracks& col) const;
66  Tracks matchTracks(const Tracks& src, const Tracks& comp) const;
67 
68 };
69 
70 #endif
71 
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:243
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
Tracks select(const Tracks &tracks, const edm::Event &iEvent)
select tracks
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] ...
tuple src
Definition: align_tpl.py:87