CMS 3D CMS Logo

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;
56  return;
57 }
58 
60  updated = false;
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;
75  return;
76 }
77 
79  updated = false;
81  return;
82 }
83 
85  updated = false;
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 }
BPHChi2Select::setProbMin
void setProbMin(double p)
set prob min
Definition: BPHChi2Select.h:60
BPHMassCuts::setMassMax
void setMassMax(double m)
Definition: BPHMassCuts.h:52
funct::false
false
Definition: Factorize.h:29
BPHDecayGenericBuilder::~BPHDecayGenericBuilder
virtual ~BPHDecayGenericBuilder()
Definition: BPHDecayGenericBuilder.cc:43
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
BPHDecayGenericBuilder::setMassMin
void setMassMin(double m)
set cuts
Definition: BPHDecayGenericBuilder.cc:53
BPHDecayGenericBuilder::massSel
BPHMassSelect * massSel
Definition: BPHDecayGenericBuilder.h:75
BPHDecayGenericBuilder::updated
bool updated
Definition: BPHDecayGenericBuilder.h:80
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
BPHMassSelect
Definition: BPHMassSelect.h:31
BPHMassCuts::setMassMin
void setMassMin(double m)
set mass cuts
Definition: BPHMassCuts.h:48
BPHDecayGenericBuilder::setProbMin
void setProbMin(double p)
Definition: BPHDecayGenericBuilder.cc:72
BPHDecayGenericBuilder::chi2Sel
BPHChi2Select * chi2Sel
Definition: BPHDecayGenericBuilder.h:76
BPHDecayGenericBuilder::setMassFitRange
void setMassFitRange(double mMin, double mMax)
Definition: BPHDecayGenericBuilder.cc:90
BPHDecayGenericBuilder::mFitSel
BPHMassFitSelect * mFitSel
Definition: BPHDecayGenericBuilder.h:77
edm::EventSetup
Definition: EventSetup.h:57
BPHChi2Select
Definition: BPHChi2Select.h:31
BPHDecayGenericBuilder::setMassFitMax
void setMassFitMax(double m)
Definition: BPHDecayGenericBuilder.cc:84
std
Definition: JetResolutionObject.h:76
BPHDecayGenericBuilder::BPHDecayGenericBuilder
BPHDecayGenericBuilder(const edm::EventSetup &es, BPHMassFitSelect *mfs=nullptr)
Definition: BPHDecayGenericBuilder.cc:29
BPHDecayGenericBuilder::setMassFitMin
void setMassFitMin(double m)
Definition: BPHDecayGenericBuilder.cc:78
BPHDecayGenericBuilder.h
BPHDecayGenericBuilder::setMassRange
void setMassRange(double mMin, double mMax)
Definition: BPHDecayGenericBuilder.cc:65
BPHDecayGenericBuilder::setMassMax
void setMassMax(double m)
Definition: BPHDecayGenericBuilder.cc:59
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
BPHMassFitSelect
Definition: BPHMassFitSelect.h:34