CMS 3D CMS Logo

BPHBdToJPsiKxBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBdToJPsiKxBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBdToJPsiKxBuilder_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>& kx0Collection)
49  : BPHDecayGenericBuilderBase(es, nullptr),
51  BPHDecayToResResBuilder(jpsiCollection, "Kx0", kx0Collection) {
52  setRes1MassRange(2.80, 3.40);
53  setRes2MassRange(0.80, 1.00);
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  ~BPHBdToJPsiKxBuilder() override = default;
67 
70  void setJPsiMassMin(double m) { setRes1MassMin(m); }
72  void setJPsiMassMax(double m) { setRes1MassMax(m); }
73  void setKxMassMin(double m) { setRes2MassMin(m); }
74  void setKxMassMax(double m) { setRes2MassMax(m); }
75 
77  double getJPsiMassMin() const { return getRes1MassMin(); }
78  double getJPsiMassMax() const { return getRes1MassMax(); }
79  double getKxMassMin() const { return getRes2MassMin(); }
80  double getKxMassMax() const { return getRes2MassMax(); }
81 
83  void setup(void* parameters) override {}
84 };
85 
86 #endif
void setJPsiMassMax(double m)
void setJPsiMassMin(double m)
set cuts
~BPHBdToJPsiKxBuilder() override=default
void setMassFitRange(double mMin, double mMax)
BPHBdToJPsiKxBuilder & operator=(const BPHBdToJPsiKxBuilder &x)=delete
double getRes1MassMin() const
get current cuts
void setRes2MassRange(double mMin, double mMax)
void setup(void *parameters) override
setup parameters for BPHRecoBuilder
BPHBdToJPsiKxBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &jpsiCollection, const std::vector< BPHPlusMinusConstCandPtr > &kx0Collection)
double getJPsiMassMin() const
get current cuts
void setRes1MassRange(double mMin, double mMax)
void setRes1MassMin(double m)
set cuts
double getJPsiMassMax() const
void setMassRange(double mMin, double mMax)