CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Onia2MuMuPAT.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_Onia2MuMu_Onia2MuMuPAT_h
2 #define HeavyFlavorAnalysis_Onia2MuMu_Onia2MuMuPAT_h
3 
4 
5 // system include files
6 #include <memory>
7 
8 // FW include files
15 
16 // DataFormat includes
19 
22 
24 
25 template<typename T>
27  bool operator()( const T & t1, const T & t2 ) const {
28  return t1.userFloat("vProb") > t2.userFloat("vProb");
29  }
30 };
31 
32 
33 //
34 // class decleration
35 //
36 
37 class Onia2MuMuPAT : public edm::EDProducer {
38  public:
39  explicit Onia2MuMuPAT(const edm::ParameterSet&);
40  ~Onia2MuMuPAT();
41 
42  private:
43  virtual void beginJob() ;
44  virtual void produce(edm::Event&, const edm::EventSetup&);
45  virtual void endJob() ;
46  bool isAbHadron(int pdgID);
47  bool isAMixedbHadron(int pdgID, int momPdgID);
48  std::pair<int, float> findJpsiMCInfo(reco::GenParticleRef genJpsi);
49 
50  // ----------member data ---------------------------
51  private:
52 
63 
65 
66 };
67 
68 //
69 // constants, enums and typedefs
70 //
71 
72 
73 //
74 // static data member definitions
75 //
76 
77 //
78 // constructors and destructor
79 //
80 
81 #endif
bool operator()(const T &t1, const T &t2) const
Definition: Onia2MuMuPAT.h:27
bool addCommonVertex_
Definition: Onia2MuMuPAT.h:59
StringCutObjectSelector< pat::Muon > higherPuritySelection_
Definition: Onia2MuMuPAT.h:56
bool isAbHadron(int pdgID)
Onia2MuMuPAT(const edm::ParameterSet &)
Definition: Onia2MuMuPAT.cc:28
std::pair< int, float > findJpsiMCInfo(reco::GenParticleRef genJpsi)
InvariantMassFromVertex massCalculator
Definition: Onia2MuMuPAT.h:64
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: Onia2MuMuPAT.cc:59
virtual void beginJob()
StringCutObjectSelector< reco::Candidate, true > dimuonSelection_
Definition: Onia2MuMuPAT.h:58
bool addMuonlessPrimaryVertex_
Definition: Onia2MuMuPAT.h:59
bool isAMixedbHadron(int pdgID, int momPdgID)
bool resolveAmbiguity_
Definition: Onia2MuMuPAT.h:60
StringCutObjectSelector< pat::Muon > lowerPuritySelection_
Definition: Onia2MuMuPAT.h:57
bool addMCTruth_
Definition: Onia2MuMuPAT.h:61
edm::EDGetTokenT< reco::BeamSpot > thebeamspot_
Definition: Onia2MuMuPAT.h:54
edm::EDGetTokenT< reco::VertexCollection > thePVs_
Definition: Onia2MuMuPAT.h:55
GreaterByVProb< pat::CompositeCandidate > vPComparator_
Definition: Onia2MuMuPAT.h:62
long double T
virtual void endJob()
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
Definition: Onia2MuMuPAT.h:53