CMS 3D CMS Logo

BPHDecayToV0DiffMassBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToV0DiffMassBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToV0DiffMassBuilder_h
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
19 
20 //------------------------------------
21 // Collaborating Class Declarations --
22 //------------------------------------
26 
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 #include <string>
33 #include <vector>
34 #include <map>
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
41 public:
45  const std::string& daug1Name,
46  double daug1Mass,
47  double daug1Sigma,
48  const std::string& daug2Name,
49  double daug2Mass,
50  double daug2Sigma,
51  const BPHRecoBuilder::BPHGenericCollection* posCollection,
52  const BPHRecoBuilder::BPHGenericCollection* negCollection,
53  double expectedMass);
55  const std::string& daug1Name,
56  double daug1Mass,
57  double daug1Sigma,
58  const std::string& daug2Name,
59  double daug2Mass,
60  double daug2Sigma,
61  const std::vector<reco::VertexCompositeCandidate>* v0Collection,
62  double expectedMass,
63  const std::string& searchList = "cfp");
65  const std::string& daug1Name,
66  double daug1Mass,
67  double daug1Sigma,
68  const std::string& daug2Name,
69  double daug2Mass,
70  double daug2Sigma,
71  const std::vector<reco::VertexCompositePtrCandidate>* vpCollection,
72  double expectedMass,
73  const std::string& searchList = "cfp");
74 
75  // deleted copy constructor and assignment operator
78 
81  ~BPHDecayToV0DiffMassBuilder() override = default;
82 
86  void setPtMin(double pt) {
90  }
91  void setEtaMax(double eta) {
94  }
95 
96 protected:
97  double p1Mass;
98  double p2Mass;
99  double p1Sigma;
100  double p2Sigma;
101  double expMass;
102 
104  void buildFromBPHGenericCollection() override;
106  const reco::Candidate* c2,
107  const void* v0,
108  v0Type type) override;
109 
110 private:
113 };
114 
115 #endif
void buildFromBPHGenericCollection() override
build candidates and link to V0
BPHPlusMinusCandidatePtr buildCandidate(const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type) override
void fillRecList() override
build candidates
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
~BPHDecayToV0DiffMassBuilder() override=default
BPHDecayToV0DiffMassBuilder & operator=(const BPHDecayToV0DiffMassBuilder &x)=delete
common object to interface with edm collections
void fillRecList() override
build candidates
BPHDecayToV0DiffMassBuilder(const BPHEventSetupWrapper &es, const std::string &daug1Name, double daug1Mass, double daug1Sigma, const std::string &daug2Name, double daug2Mass, double daug2Sigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection, double expectedMass)