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
15 
16 // DataFormat includes
19 
22 
24 
29 
30 template <typename T>
32  bool operator()(const T& t1, const T& t2) const { return t1.userFloat("vProb") > t2.userFloat("vProb"); }
33 };
34 
35 //
36 // class decleration
37 //
38 
40 public:
41  explicit Onia2MuMuPAT(const edm::ParameterSet&);
42 
44 
45 private:
46  void produce(edm::Event&, const edm::EventSetup&) override;
47  // ----------member data ---------------------------
48 private:
49  bool isAbHadron(int pdgID) const;
50  bool isAMixedbHadron(int pdgID, int momPdgID) const;
51  std::pair<int, float> findJpsiMCInfo(reco::GenParticleRef genJpsi) const;
52 
67 
69 };
70 
71 //
72 // constants, enums and typedefs
73 //
74 
75 //
76 // static data member definitions
77 //
78 
79 //
80 // constructors and destructor
81 //
82 
83 #endif
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
CompositeCandidate.h
Onia2MuMuPAT::thebeamspot_
edm::EDGetTokenT< reco::BeamSpot > thebeamspot_
Definition: Onia2MuMuPAT.h:54
StringCutObjectSelector.h
edm::EDGetTokenT
Definition: EDGetToken.h:33
Muon.h
EDProducer.h
PtComparator.h
ESGetToken.h
Onia2MuMuPAT::findJpsiMCInfo
std::pair< int, float > findJpsiMCInfo(reco::GenParticleRef genJpsi) const
Definition: Onia2MuMuPAT.cc:430
edm::Ref< GenParticleCollection >
Onia2MuMuPAT::vPComparator_
GreaterByVProb< pat::CompositeCandidate > vPComparator_
Definition: Onia2MuMuPAT.h:66
Onia2MuMuPAT::isAMixedbHadron
bool isAMixedbHadron(int pdgID, int momPdgID) const
Definition: Onia2MuMuPAT.cc:423
MakerMacros.h
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
GreaterByVProb::operator()
bool operator()(const T &t1, const T &t2) const
Definition: Onia2MuMuPAT.h:32
IdealMagneticFieldRecord.h
Onia2MuMuPAT::isAbHadron
bool isAbHadron(int pdgID) const
Definition: Onia2MuMuPAT.cc:417
Onia2MuMuPAT::theTTBuilderToken_
edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > theTTBuilderToken_
Definition: Onia2MuMuPAT.h:59
InvariantMassFromVertex.h
Onia2MuMuPAT::revtxbs_
edm::EDGetTokenT< reco::BeamSpot > revtxbs_
Definition: Onia2MuMuPAT.h:57
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
TransientTrackBuilder.h
Onia2MuMuPAT::Onia2MuMuPAT
Onia2MuMuPAT(const edm::ParameterSet &)
Definition: Onia2MuMuPAT.cc:26
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
Onia2MuMuPAT::muons_
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
Definition: Onia2MuMuPAT.h:53
Onia2MuMuPAT::revtxtrks_
edm::EDGetTokenT< reco::TrackCollection > revtxtrks_
Definition: Onia2MuMuPAT.h:56
Onia2MuMuPAT::higherPuritySelection_
StringCutObjectSelector< pat::Muon > higherPuritySelection_
Definition: Onia2MuMuPAT.h:60
Onia2MuMuPAT::lowerPuritySelection_
StringCutObjectSelector< pat::Muon > lowerPuritySelection_
Definition: Onia2MuMuPAT.h:61
Onia2MuMuPAT::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Onia2MuMuPAT.cc:51
Onia2MuMuPAT::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: Onia2MuMuPAT.cc:486
edm::stream::EDProducer
Definition: EDProducer.h:38
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
TransientTrackRecord.h
Onia2MuMuPAT
Definition: Onia2MuMuPAT.h:39
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
InvariantMassFromVertex
Definition: InvariantMassFromVertex.h:20
VertexFwd.h
Onia2MuMuPAT::resolveAmbiguity_
bool resolveAmbiguity_
Definition: Onia2MuMuPAT.h:64
Frameworkfwd.h
T
long double T
Definition: Basic3DVectorLD.h:48
StringCutObjectSelector< pat::Muon >
Onia2MuMuPAT::dimuonSelection_
StringCutObjectSelector< reco::Candidate, true > dimuonSelection_
Definition: Onia2MuMuPAT.h:62
Onia2MuMuPAT::addMuonlessPrimaryVertex_
bool addMuonlessPrimaryVertex_
Definition: Onia2MuMuPAT.h:63
ParameterSet.h
Onia2MuMuPAT::magneticFieldToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
Definition: Onia2MuMuPAT.h:58
Onia2MuMuPAT::thePVs_
edm::EDGetTokenT< reco::VertexCollection > thePVs_
Definition: Onia2MuMuPAT.h:55
edm::Event
Definition: Event.h:73
GreaterByVProb
Definition: Onia2MuMuPAT.h:31
Onia2MuMuPAT::massCalculator
InvariantMassFromVertex massCalculator
Definition: Onia2MuMuPAT.h:68
Onia2MuMuPAT::addCommonVertex_
bool addCommonVertex_
Definition: Onia2MuMuPAT.h:63
Onia2MuMuPAT::addMCTruth_
bool addMCTruth_
Definition: Onia2MuMuPAT.h:65