CMS 3D CMS Logo

BPHBuToPsi2SKBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBuToPsi2SKBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBuToPsi2SKBuilder_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
26 
28 
37 
39 
40 //---------------
41 // C++ Headers --
42 //---------------
43 #include <string>
44 #include <vector>
45 #include <iostream>
46 
47 // ---------------------
48 // -- Class Interface --
49 // ---------------------
50 
51 class BPHBuToPsi2SKBuilder : public BPHDecayToResTrkBuilder<BPHRecoCandidate, BPHRecoCandidate> {
52 public:
56  const std::vector<BPHRecoConstCandPtr>& psi2SCollection,
57  const BPHRecoBuilder::BPHGenericCollection* kaonCollection)
58  : BPHDecayGenericBuilderBase(es, nullptr),
61  psi2SCollection, "Kaon", BPHParticleMasses::kaonMass, BPHParticleMasses::kaonMSigma, kaonCollection) {
62  setResMassRange(3.30, 4.00);
63  setTrkPtMin(0.7);
64  setTrkEtaMax(10.0);
65  setMassRange(3.50, 8.00);
66  setProbMin(0.02);
67  }
68 
69  // deleted copy constructor and assignment operator
72 
75  ~BPHBuToPsi2SKBuilder() override = default;
76 
79  const std::map<const BPHRecoCandidate*, const BPHRecoCandidate*>& daughMap() const { return dMap; }
81 
83  void setKPtMin(double pt) { setTrkPtMin(pt); }
84  void setKEtaMax(double eta) { setTrkEtaMax(eta); }
85  void setPsi2SMassMin(double m) { setResMassMin(m); }
86  void setPsi2SMassMax(double m) { setResMassMax(m); }
87 
89  double getKPtMin() const { return getTrkPtMin(); }
90  double getKEtaMax() const { return getTrkEtaMax(); }
91  double getPsi2SMassMin() const { return getResMassMin(); }
92  double getPsi2SMassMax() const { return getResMassMax(); }
93 
95  void setup(void* parameters) override {}
96 
97 private:
98  std::map<const BPHRecoCandidate*, const BPHRecoCandidate*> dMap;
99 };
100 
101 #endif
BPHBuToPsi2SKBuilder & operator=(const BPHBuToPsi2SKBuilder &x)=delete
~BPHBuToPsi2SKBuilder() override=default
void setup(void *parameters) override
setup parameters for BPHRecoBuilder
double getPsi2SMassMax() const
double getResMassMin() const
get current cuts
void setResMassRange(double mMin, double mMax)
void setPsi2SMassMax(double m)
void setKEtaMax(double eta)
BPHBuToPsi2SKBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHRecoConstCandPtr > &psi2SCollection, const BPHRecoBuilder::BPHGenericCollection *kaonCollection)
common object to interface with edm collections
double getPsi2SMassMin() const
std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > dMap
double getTrkPtMin() const
get current cuts
const std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > & daughMap() const
get original daughters map
void setKPtMin(double pt)
set cuts
void setMassRange(double mMin, double mMax)
void setPsi2SMassMin(double m)
double getKPtMin() const
get current cuts