CMS 3D CMS Logo

BPHBdToJPsiKsBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBdToJPsiKsBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBdToJPsiKsBuilder_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
27 
29 
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <string>
36 #include <vector>
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
43  : public BPHDecayToResFlyingBuilder<BPHRecoCandidate, BPHPlusMinusCandidate, BPHPlusMinusCandidate> {
44 public:
48  const std::vector<BPHPlusMinusConstCandPtr>& jpsiCollection,
49  const std::vector<BPHPlusMinusConstCandPtr>& k0sCollection)
50  : BPHDecayGenericBuilderBase(es, nullptr),
53  BPHDecayToResFlyingBuilder(jpsiCollection, k0sCollection) {
54  setResMassRange(2.80, 3.40);
55  setFlyingMassRange(0.00, 2.00);
56  setMassRange(3.50, 8.00);
57  setKinFitProbMin(0.02);
58  setMassFitRange(5.00, 6.00);
59  setConstr(true);
60  }
61 
62  // deleted copy constructor and assignment operator
65 
68  ~BPHBdToJPsiKsBuilder() override = default;
69 
72  void setJPsiMassMin(double m) { setResMassMin(m); }
74  void setJPsiMassMax(double m) { setResMassMax(m); }
75  void setK0MassMin(double m) { setFlyingMassMin(m); }
76  void setK0MassMax(double m) { setFlyingMassMax(m); }
77 
79  double getJPsiMassMin() const { return getResMassMin(); }
80  double getJPsiMassMax() const { return getResMassMax(); }
81  double getK0MassMin() const { return getFlyingMassMin(); }
82  double getK0MassMax() const { return getFlyingMassMax(); }
83 
85  void setup(void* parameters) override {}
86 };
87 
88 #endif
void setJPsiMassMin(double m)
set cuts
void setMassFitRange(double mMin, double mMax)
double getJPsiMassMax() const
void setJPsiMassMax(double m)
double getResMassMin() const
get current cuts
double getJPsiMassMin() const
get current cuts
void setResMassRange(double mMin, double mMax)
BPHBdToJPsiKsBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &jpsiCollection, const std::vector< BPHPlusMinusConstCandPtr > &k0sCollection)
~BPHBdToJPsiKsBuilder() override=default
BPHBdToJPsiKsBuilder & operator=(const BPHBdToJPsiKsBuilder &x)=delete
void setup(void *parameters) override
setup parameters for BPHRecoBuilder
void setMassRange(double mMin, double mMax)