CMS 3D CMS Logo

BPHKx0ToKPiBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHKx0ToKPiBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHKx0ToKPiBuilder_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
25 
27 
29 
30 //---------------
31 // C++ Headers --
32 //---------------
33 #include <string>
34 #include <vector>
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
41 public:
45  const BPHRecoBuilder::BPHGenericCollection* posCollection,
46  const BPHRecoBuilder::BPHGenericCollection* negCollection)
49  "Kaon",
50  BPHParticleMasses::kaonMass,
51  BPHParticleMasses::kaonMSigma,
52  "Pion",
53  BPHParticleMasses::pionMass,
54  BPHParticleMasses::pionMSigma,
55  posCollection,
56  negCollection,
57  BPHParticleMasses::kx0Mass) {
58  setTrk1PtMin(0.7);
59  setTrk2PtMin(0.7);
60  setTrk1EtaMax(10.0);
61  setTrk2EtaMax(10.0);
62  setMassRange(0.75, 1.05);
63  setProbMin(0.0);
64  }
65 
66  // deleted copy constructor and assignment operator
67  BPHKx0ToKPiBuilder(const BPHKx0ToKPiBuilder& x) = delete;
69 
72  ~BPHKx0ToKPiBuilder() override = default;
73 
76  void setPiPtMin(double pt) { setTrk1PtMin(pt); }
78  void setPiEtaMax(double eta) { setTrk1EtaMax(eta); }
79  void setKPtMin(double pt) { setTrk2PtMin(pt); }
80  void setKEtaMax(double eta) { setTrk2EtaMax(eta); }
81  void setPtMin(double pt) {
84  }
85  void setEtaMax(double eta) {
88  }
89 
91  double getPiPtMin() const { return getTrk1PtMin(); }
92  double getPiEtaMax() const { return getTrk1EtaMax(); }
93  double getKPtMin() const { return getTrk2PtMin(); }
94  double getKEtaMax() const { return getTrk2EtaMax(); }
95 };
96 
97 #endif
void setPtMin(double pt)
double getKEtaMax() const
BPHKx0ToKPiBuilder & operator=(const BPHKx0ToKPiBuilder &x)=delete
void setEtaMax(double eta)
void setPiPtMin(double pt)
set cuts
BPHKx0ToKPiBuilder(const BPHEventSetupWrapper &es, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
double getTrk1PtMin() const
get current cuts
void setPiEtaMax(double eta)
common object to interface with edm collections
~BPHKx0ToKPiBuilder() override=default
double getPiEtaMax() const
double getKPtMin() const
void setKPtMin(double pt)
void setMassRange(double mMin, double mMax)
void setKEtaMax(double eta)
double getPiPtMin() const
get current cuts