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
bool addCommonVertex_
Definition: Onia2MuMuPAT.h:63
StringCutObjectSelector< pat::Muon > higherPuritySelection_
Definition: Onia2MuMuPAT.h:60
Onia2MuMuPAT(const edm::ParameterSet &)
Definition: Onia2MuMuPAT.cc:26
static void fillDescriptions(edm::ConfigurationDescriptions &)
InvariantMassFromVertex massCalculator
Definition: Onia2MuMuPAT.h:68
std::pair< int, float > findJpsiMCInfo(reco::GenParticleRef genJpsi) const
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Onia2MuMuPAT.cc:51
bool operator()(const T &t1, const T &t2) const
Definition: Onia2MuMuPAT.h:32
edm::EDGetTokenT< reco::BeamSpot > revtxbs_
Definition: Onia2MuMuPAT.h:57
edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > theTTBuilderToken_
Definition: Onia2MuMuPAT.h:59
StringCutObjectSelector< reco::Candidate, true > dimuonSelection_
Definition: Onia2MuMuPAT.h:62
edm::EDGetTokenT< reco::TrackCollection > revtxtrks_
Definition: Onia2MuMuPAT.h:56
bool isAbHadron(int pdgID) const
bool addMuonlessPrimaryVertex_
Definition: Onia2MuMuPAT.h:63
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
Definition: Onia2MuMuPAT.h:58
bool resolveAmbiguity_
Definition: Onia2MuMuPAT.h:64
StringCutObjectSelector< pat::Muon > lowerPuritySelection_
Definition: Onia2MuMuPAT.h:61
bool addMCTruth_
Definition: Onia2MuMuPAT.h:65
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:66
long double T
edm::EDGetTokenT< edm::View< pat::Muon > > muons_
Definition: Onia2MuMuPAT.h:53
bool isAMixedbHadron(int pdgID, int momPdgID) const