CMS 3D CMS Logo

Onia2MuMuPAT.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_Onia2MuMu_Onia2MuMuPAT_h
2 #define HeavyFlavorAnalysis_Onia2MuMu_Onia2MuMuPAT_h
3 
4 // system include files
5 #include <memory>
6 
7 // FW include files
14 
15 // DataFormat includes
18 
21 
23 
24 template <typename T>
26  bool operator()(const T& t1, const T& t2) const { return t1.userFloat("vProb") > t2.userFloat("vProb"); }
27 };
28 
29 //
30 // class decleration
31 //
32 
33 class Onia2MuMuPAT : public edm::EDProducer {
34 public:
35  explicit Onia2MuMuPAT(const edm::ParameterSet&);
36  ~Onia2MuMuPAT() override;
37 
38 private:
39  void beginJob() override;
40  void produce(edm::Event&, const edm::EventSetup&) override;
41  void endJob() override;
42  bool isAbHadron(int pdgID);
43  bool isAMixedbHadron(int pdgID, int momPdgID);
44  std::pair<int, float> findJpsiMCInfo(reco::GenParticleRef genJpsi);
45 
46  // ----------member data ---------------------------
47 private:
60 
62 };
63 
64 //
65 // constants, enums and typedefs
66 //
67 
68 //
69 // static data member definitions
70 //
71 
72 //
73 // constructors and destructor
74 //
75 
76 #endif
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
CompositeCandidate.h
Onia2MuMuPAT::thebeamspot_
edm::EDGetTokenT< reco::BeamSpot > thebeamspot_
Definition: Onia2MuMuPAT.h:49
EDProducer.h
StringCutObjectSelector.h
Onia2MuMuPAT::~Onia2MuMuPAT
~Onia2MuMuPAT() override
Definition: Onia2MuMuPAT.cc:47
edm::EDGetTokenT
Definition: EDGetToken.h:33
Muon.h
Onia2MuMuPAT::endJob
void endJob() override
Definition: Onia2MuMuPAT.cc:499
PtComparator.h
Onia2MuMuPAT::findJpsiMCInfo
std::pair< int, float > findJpsiMCInfo(reco::GenParticleRef genJpsi)
Definition: Onia2MuMuPAT.cc:439
edm::Ref< GenParticleCollection >
Onia2MuMuPAT::vPComparator_
GreaterByVProb< pat::CompositeCandidate > vPComparator_
Definition: Onia2MuMuPAT.h:59
Onia2MuMuPAT::isAbHadron
bool isAbHadron(int pdgID)
Definition: Onia2MuMuPAT.cc:426
MakerMacros.h
Onia2MuMuPAT::isAMixedbHadron
bool isAMixedbHadron(int pdgID, int momPdgID)
Definition: Onia2MuMuPAT.cc:432
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
GreaterByVProb::operator()
bool operator()(const T &t1, const T &t2) const
Definition: Onia2MuMuPAT.h:26
InvariantMassFromVertex.h
Onia2MuMuPAT::revtxbs_
edm::EDGetTokenT< reco::BeamSpot > revtxbs_
Definition: Onia2MuMuPAT.h:52
Onia2MuMuPAT::beginJob
void beginJob() override
Definition: Onia2MuMuPAT.cc:496
Onia2MuMuPAT::Onia2MuMuPAT
Onia2MuMuPAT(const edm::ParameterSet &)
Definition: Onia2MuMuPAT.cc:29
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
Onia2MuMuPAT::muons_
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
Definition: Onia2MuMuPAT.h:48
Onia2MuMuPAT::revtxtrks_
edm::EDGetTokenT< reco::TrackCollection > revtxtrks_
Definition: Onia2MuMuPAT.h:51
Onia2MuMuPAT::higherPuritySelection_
StringCutObjectSelector< pat::Muon > higherPuritySelection_
Definition: Onia2MuMuPAT.h:53
Onia2MuMuPAT::lowerPuritySelection_
StringCutObjectSelector< pat::Muon > lowerPuritySelection_
Definition: Onia2MuMuPAT.h:54
Onia2MuMuPAT::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Onia2MuMuPAT.cc:57
edm::EventSetup
Definition: EventSetup.h:57
Onia2MuMuPAT
Definition: Onia2MuMuPAT.h:33
InvariantMassFromVertex
Definition: InvariantMassFromVertex.h:20
VertexFwd.h
Onia2MuMuPAT::resolveAmbiguity_
bool resolveAmbiguity_
Definition: Onia2MuMuPAT.h:57
Frameworkfwd.h
T
long double T
Definition: Basic3DVectorLD.h:48
StringCutObjectSelector< pat::Muon >
Onia2MuMuPAT::dimuonSelection_
StringCutObjectSelector< reco::Candidate, true > dimuonSelection_
Definition: Onia2MuMuPAT.h:55
edm::EDProducer
Definition: EDProducer.h:36
Onia2MuMuPAT::addMuonlessPrimaryVertex_
bool addMuonlessPrimaryVertex_
Definition: Onia2MuMuPAT.h:56
ParameterSet.h
Onia2MuMuPAT::thePVs_
edm::EDGetTokenT< reco::VertexCollection > thePVs_
Definition: Onia2MuMuPAT.h:50
edm::Event
Definition: Event.h:73
GreaterByVProb
Definition: Onia2MuMuPAT.h:25
Onia2MuMuPAT::massCalculator
InvariantMassFromVertex massCalculator
Definition: Onia2MuMuPAT.h:61
Onia2MuMuPAT::addCommonVertex_
bool addCommonVertex_
Definition: Onia2MuMuPAT.h:56
Onia2MuMuPAT::addMCTruth_
bool addMCTruth_
Definition: Onia2MuMuPAT.h:58