CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BPHDecayGenericBuilder.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * \author Paolo Ronchese INFN Padova
5  *
6  */
7 
8 //-----------------------
9 // This Class' Header --
10 //-----------------------
12 
13 //-------------------------------
14 // Collaborating Class Headers --
15 //-------------------------------
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 using namespace std;
21 
22 //-------------------
23 // Initializations --
24 //-------------------
25 
26 //----------------
27 // Constructors --
28 //----------------
30  : evSetup(&es),
31  massSel(new BPHMassSelect(-2.0e+06, -1.0e+06)),
32  chi2Sel(new BPHChi2Select(-1.0)),
33  mFitSel(mfs),
34  minPDiff(1.0e-4),
35  updated(false) {
36  if (mFitSel == nullptr)
37  mFitSel = new BPHMassFitSelect(-2.0e+06, -1.0e+06);
38 }
39 
40 //--------------
41 // Destructor --
42 //--------------
44  delete massSel;
45  delete chi2Sel;
46  delete mFitSel;
47 }
48 
49 //--------------
50 // Operations --
51 //--------------
54  updated = false;
55  massSel->setMassMin(m);
56  return;
57 }
58 
60  updated = false;
61  massSel->setMassMax(m);
62  return;
63 }
64 
65 void BPHDecayGenericBuilder::setMassRange(double mMin, double mMax) {
66  updated = false;
67  massSel->setMassMin(mMin);
68  massSel->setMassMax(mMax);
69  return;
70 }
71 
73  updated = false;
74  chi2Sel->setProbMin(p);
75  return;
76 }
77 
79  updated = false;
80  mFitSel->setMassMin(m);
81  return;
82 }
83 
85  updated = false;
86  mFitSel->setMassMax(m);
87  return;
88 }
89 
90 void BPHDecayGenericBuilder::setMassFitRange(double mMin, double mMax) {
91  updated = false;
92  mFitSel->setMassMin(mMin);
93  mFitSel->setMassMax(mMax);
94  return;
95 }
void setMassMax(double m)
Definition: BPHMassCuts.h:52
BPHDecayGenericBuilder(const edm::EventSetup &es, BPHMassFitSelect *mfs=nullptr)
void setMassRange(double mMin, double mMax)
void setProbMin(double p)
set prob min
Definition: BPHChi2Select.h:60
void setMassMin(double m)
set cuts
void setMassMin(double m)
set mass cuts
Definition: BPHMassCuts.h:48
void setMassFitRange(double mMin, double mMax)