CMS 3D CMS Logo

BPHBsToJPsiPhiBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBsToJPsiPhiBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBsToJPsiPhiBuilder_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
26 
28 
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <string>
35 #include <vector>
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42  : public BPHDecayToResResBuilder<BPHRecoCandidate, BPHPlusMinusCandidate, BPHPlusMinusCandidate> {
43 public:
47  const std::vector<BPHPlusMinusConstCandPtr>& jpsiCollection,
48  const std::vector<BPHPlusMinusConstCandPtr>& phiCollection)
49  : BPHDecayGenericBuilderBase(es, nullptr),
51  BPHDecayToResResBuilder(jpsiCollection, "Phi", phiCollection) {
52  setRes1MassRange(2.80, 3.40);
53  setRes2MassRange(1.005, 1.035);
54  setMassRange(3.50, 8.00);
55  setProbMin(0.02);
56  setMassFitRange(5.00, 6.00);
57  setConstr(true);
58  }
59 
60  // deleted copy constructor and assignment operator
63 
66  ~BPHBsToJPsiPhiBuilder() override = default;
67 
70  void setJPsiMassMin(double m) { setRes1MassMin(m); }
72  void setJPsiMassMax(double m) { setRes1MassMax(m); }
73  void setPhiMassMin(double m) { setRes2MassMin(m); }
74  void setPhiMassMax(double m) { setRes2MassMax(m); }
75 
77  double getJPsiMassMin() const { return getRes1MassMin(); }
78  double getJPsiMassMax() const { return getRes1MassMax(); }
79  double getPhiMassMin() const { return getRes2MassMin(); }
80  double getPhiMassMax() const { return getRes2MassMax(); }
81 
83  void setup(void* parameters) override {}
84 };
85 
86 #endif
BPHBsToJPsiPhiBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &jpsiCollection, const std::vector< BPHPlusMinusConstCandPtr > &phiCollection)
BPHBsToJPsiPhiBuilder & operator=(const BPHBsToJPsiPhiBuilder &x)=delete
void setMassFitRange(double mMin, double mMax)
double getRes1MassMin() const
get current cuts
void setRes2MassRange(double mMin, double mMax)
double getJPsiMassMin() const
get current cuts
void setJPsiMassMin(double m)
set cuts
void setRes1MassRange(double mMin, double mMax)
~BPHBsToJPsiPhiBuilder() override=default
void setRes1MassMin(double m)
set cuts
void setMassRange(double mMin, double mMax)
void setup(void *parameters) override
setup parameters for BPHRecoBuilder