CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignmentMuonSelector.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentMuonSelector_h
2 #define Alignment_CommonAlignmentAlgorithm_AlignmentMuonSelector_h
3 
20 #include <vector>
21 
22 namespace edm { class Event; }
23 
25 {
26 
27  public:
28 
29  typedef std::vector<const reco::Muon*> Muons;
30 
33 
36 
38  Muons select(const Muons& muons, const edm::Event& evt) const;
39 
40  private:
41 
43  Muons basicCuts(const Muons& muons) const;
44 
46  Muons theNHighestPtMuons(const Muons& muons) const;
47 
50 
52  struct ComparePt {
53  bool operator()( const reco::Muon* t1, const reco::Muon* t2 ) const {
54  return t1->pt()> t2->pt();
55  }
56  };
58 
67 
68 };
69 
70 #endif
71 
Muons theNHighestPtMuons(const Muons &muons) const
filter the n highest pt muons
std::vector< const reco::Muon * > Muons
tuple cfg
Definition: looper.py:259
compare two muons in pt (used by theNHighestPtMuons)
virtual double pt() const
transverse momentum
AlignmentMuonSelector(const edm::ParameterSet &cfg)
constructor
bool operator()(const reco::Muon *t1, const reco::Muon *t2) const
Muons theBestMassPairCombinationMuons(const Muons &muons) const
filter only those muons giving best mass pair combination
bool applyBasicCuts
private data members
tuple muons
Definition: patZpeak.py:38
Muons basicCuts(const Muons &muons) const
apply basic cuts on pt,eta,phi,nhit
Muons select(const Muons &muons, const edm::Event &evt) const
select muons