CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 //------------------------------------
24 
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <string>
31 #include <vector>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
38 public:
42  const BPHRecoBuilder::BPHGenericCollection* posCollection,
43  const BPHRecoBuilder::BPHGenericCollection* negCollection)
45  "Kaon",
46  BPHParticleMasses::pionMass,
47  BPHParticleMasses::pionMass,
48  "Pion",
49  BPHParticleMasses::kaonMass,
50  BPHParticleMasses::kaonMSigma,
51  posCollection,
52  negCollection,
53  BPHParticleMasses::kx0Mass) {
54  setTrk1PtMin(0.7);
55  setTrk2PtMin(0.7);
56  setTrk1EtaMax(10.0);
57  setTrk2EtaMax(10.0);
58  setMassRange(0.75, 1.05);
59  setProbMin(0.0);
60  }
61 
62  // deleted copy constructor and assignment operator
63  BPHKx0ToKPiBuilder(const BPHKx0ToKPiBuilder& x) = delete;
65 
68  ~BPHKx0ToKPiBuilder() override {}
69 
72  void setPiPtMin(double pt) { setTrk1PtMin(pt); }
74  void setPiEtaMax(double eta) { setTrk1EtaMax(eta); }
75  void setKPtMin(double pt) { setTrk2PtMin(pt); }
76  void setKEtaMax(double eta) { setTrk2EtaMax(eta); }
77  void setPtMin(double pt) {
78  setTrk1PtMin(pt);
79  setTrk2PtMin(pt);
80  }
81  void setEtaMax(double eta) {
82  setTrk1EtaMax(eta);
83  setTrk2EtaMax(eta);
84  }
85 
87  double getPiPtMin() const { return getTrk1PtMin(); }
88  double getPiEtaMax() const { return getTrk1EtaMax(); }
89  double getKPtMin() const { return getTrk2PtMin(); }
90  double getKEtaMax() const { return getTrk2EtaMax(); }
91 };
92 
93 #endif
BPHKx0ToKPiBuilder(const edm::EventSetup &es, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
double getPiPtMin() const
get current cuts
double getTrk1PtMin() const
get current cuts
double getPiEtaMax() const
void setPtMin(double pt)
BPHKx0ToKPiBuilder & operator=(const BPHKx0ToKPiBuilder &x)=delete
void setMassRange(double mMin, double mMax)
double getKEtaMax() const
void setEtaMax(double eta)
void setPiPtMin(double pt)
set cuts
double getKPtMin() const
void setPiEtaMax(double eta)
~BPHKx0ToKPiBuilder() override
void setKPtMin(double pt)
void setKEtaMax(double eta)