CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 {
23  class Event;
24 }
25 
27 public:
28  typedef std::vector<const reco::Muon*> Muons;
29 
32 
35 
37  Muons select(const Muons& muons, const edm::Event& evt) const;
38 
39 private:
41  Muons basicCuts(const Muons& muons) const;
42 
44  Muons theNHighestPtMuons(const Muons& muons) const;
45 
48 
50  struct ComparePt {
51  bool operator()(const reco::Muon* t1, const reco::Muon* t2) const { return t1->pt() > t2->pt(); }
52  };
54 
63 };
64 
65 #endif
Muons theNHighestPtMuons(const Muons &muons) const
filter the n highest pt muons
std::vector< const reco::Muon * > Muons
tuple cfg
Definition: looper.py:296
double pt() const final
transverse momentum
compare two muons in pt (used by theNHighestPtMuons)
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:39
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