CMS 3D CMS Logo

BPHBuToJPsiKBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBuToJPsiKBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBuToJPsiKBuilder_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 
41 class BPHBuToJPsiKBuilder : public BPHDecayToResTrkBuilder<BPHRecoCandidate, BPHPlusMinusCandidate> {
42 public:
46  const std::vector<BPHPlusMinusConstCandPtr>& jpsiCollection,
47  const BPHRecoBuilder::BPHGenericCollection* kaonCollection)
48  : BPHDecayGenericBuilderBase(es, nullptr),
51  jpsiCollection, "Kaon", BPHParticleMasses::kaonMass, BPHParticleMasses::kaonMSigma, kaonCollection) {
52  setResMassRange(2.80, 3.40);
53  setTrkPtMin(0.7);
54  setTrkEtaMax(10.0);
55  setMassRange(3.50, 8.00);
56  setProbMin(0.02);
57  setMassFitRange(5.00, 6.00);
58  setConstr(true);
59  }
60 
61  // deleted copy constructor and assignment operator
62  BPHBuToJPsiKBuilder(const BPHBuToJPsiKBuilder& x) = delete;
64 
67  ~BPHBuToJPsiKBuilder() override = default;
68 
71  void setKPtMin(double pt) { setTrkPtMin(pt); }
73  void setKEtaMax(double eta) { setTrkEtaMax(eta); }
74  void setJPsiMassMin(double m) { setResMassMin(m); }
75  void setJPsiMassMax(double m) { setResMassMax(m); }
76 
78  double getKPtMin() const { return getTrkPtMin(); }
79  double getKEtaMax() const { return getTrkEtaMax(); }
80  double getJPsiMassMin() const { return getResMassMin(); }
81  double getJPsiMassMax() const { return getResMassMax(); }
82 
84  void setup(void* parameters) override {}
85 };
86 
87 #endif
double getKPtMin() const
get current cuts
void setJPsiMassMin(double m)
void setKPtMin(double pt)
set cuts
void setKEtaMax(double eta)
void setMassFitRange(double mMin, double mMax)
double getKEtaMax() const
BPHBuToJPsiKBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &jpsiCollection, const BPHRecoBuilder::BPHGenericCollection *kaonCollection)
double getResMassMin() const
get current cuts
double getJPsiMassMax() const
double getJPsiMassMin() const
void setResMassRange(double mMin, double mMax)
BPHBuToJPsiKBuilder & operator=(const BPHBuToJPsiKBuilder &x)=delete
common object to interface with edm collections
double getTrkPtMin() const
get current cuts
void setMassRange(double mMin, double mMax)
~BPHBuToJPsiKBuilder() override=default
void setup(void *parameters) override
setup parameters for BPHRecoBuilder
void setJPsiMassMax(double m)