CMS 3D CMS Logo

BPHDecayToResResBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResResBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResResBuilder_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
24 
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <string>
31 #include <vector>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
38 public:
42  const std::string& res1Name,
43  double res1Mass,
44  double res1Width,
45  const std::vector<BPHPlusMinusConstCandPtr>& res1Collection,
46  const std::string& res2Name,
47  const std::vector<BPHPlusMinusConstCandPtr>& res2Collection);
48 
49  // deleted copy constructor and assignment operator
52 
55  ~BPHDecayToResResBuilder() override;
56 
59  std::vector<BPHRecoConstCandPtr> build();
61 
63  void setRes1MassMin(double m) { setResMassMin(m); }
64  void setRes1MassMax(double m) { setResMassMax(m); }
65  void setRes1MassRange(double mMin, double mMax) { setResMassRange(mMin, mMax); }
66  void setRes2MassMin(double m);
67  void setRes2MassMax(double m);
68  void setRes2MassRange(double mMin, double mMax);
69 
71  double getRes1MassMin() const { return getResMassMin(); }
72  double getRes1MassMax() const { return getResMassMax(); }
73  double getRes2MassMin() const { return res2Sel->getMassMin(); }
74  double getRes2MassMax() const { return res2Sel->getMassMax(); }
75 
76 private:
78 
79  const std::vector<BPHPlusMinusConstCandPtr>* sCollection;
80 
82 
83  std::vector<BPHRecoConstCandPtr> recList;
84 };
85 
86 #endif
BPHDecayToResResBuilder::build
std::vector< BPHRecoConstCandPtr > build()
build candidates
Definition: BPHDecayToResResBuilder.cc:52
BPHDecayToResResBuilder::~BPHDecayToResResBuilder
~BPHDecayToResResBuilder() override
Definition: BPHDecayToResResBuilder.cc:47
BPHMassCuts::getMassMin
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
BPHDecayToResResBuilder::setRes2MassMin
void setRes2MassMin(double m)
set cuts
Definition: BPHDecayToResResBuilder.cc:78
BPHDecayConstrainedBuilder
Definition: BPHDecayConstrainedBuilder.h:37
BPHDecayToResResBuilder::getRes2MassMax
double getRes2MassMax() const
Definition: BPHDecayToResResBuilder.h:74
BPHDecayToResResBuilder::res2Sel
BPHMassSelect * res2Sel
Definition: BPHDecayToResResBuilder.h:81
DDAxes::x
BPHDecayConstrainedBuilder::setResMassRange
void setResMassRange(double mMin, double mMax)
Definition: BPHDecayConstrainedBuilder.cc:66
BPHDecayToResResBuilder::operator=
BPHDecayToResResBuilder & operator=(const BPHDecayToResResBuilder &x)=delete
BPHDecayToResResBuilder::sName
std::string sName
Definition: BPHDecayToResResBuilder.h:77
BPHDecayToResResBuilder::getRes2MassMin
double getRes2MassMin() const
Definition: BPHDecayToResResBuilder.h:73
BPHDecayToResResBuilder::BPHDecayToResResBuilder
BPHDecayToResResBuilder(const edm::EventSetup &es, const std::string &res1Name, double res1Mass, double res1Width, const std::vector< BPHPlusMinusConstCandPtr > &res1Collection, const std::string &res2Name, const std::vector< BPHPlusMinusConstCandPtr > &res2Collection)
Definition: BPHDecayToResResBuilder.cc:32
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
BPHDecayConstrainedBuilder::getResMassMax
double getResMassMax() const
Definition: BPHDecayConstrainedBuilder.h:65
BPHMassSelect
Definition: BPHMassSelect.h:31
BPHDecayToResResBuilder::getRes1MassMax
double getRes1MassMax() const
Definition: BPHDecayToResResBuilder.h:72
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BPHDecayToResResBuilder
Definition: BPHDecayToResResBuilder.h:37
BPHDecayConstrainedBuilder::setResMassMax
void setResMassMax(double m)
Definition: BPHDecayConstrainedBuilder.cc:60
Event.h
BPHDecayConstrainedBuilder::setResMassMin
void setResMassMin(double m)
set cuts
Definition: BPHDecayConstrainedBuilder.cc:54
BPHDecayToResResBuilder::setRes2MassMax
void setRes2MassMax(double m)
Definition: BPHDecayToResResBuilder.cc:84
BPHDecayToResResBuilder::sCollection
const std::vector< BPHPlusMinusConstCandPtr > * sCollection
Definition: BPHDecayToResResBuilder.h:79
BPHMassCuts::getMassMax
double getMassMax() const
Definition: BPHMassCuts.h:59
BPHDecayToResResBuilder::setRes1MassMin
void setRes1MassMin(double m)
set cuts
Definition: BPHDecayToResResBuilder.h:63
edm::EventSetup
Definition: EventSetup.h:58
BPHRecoBuilder.h
BPHDecayConstrainedBuilder::getResMassMin
double getResMassMin() const
get current cuts
Definition: BPHDecayConstrainedBuilder.h:64
BPHDecayToResResBuilder::setRes1MassMax
void setRes1MassMax(double m)
Definition: BPHDecayToResResBuilder.h:64
BPHPlusMinusCandidate.h
BPHRecoCandidate.h
BPHDecayToResResBuilder::getRes1MassMin
double getRes1MassMin() const
get current cuts
Definition: BPHDecayToResResBuilder.h:71
BPHDecayToResResBuilder::setRes1MassRange
void setRes1MassRange(double mMin, double mMax)
Definition: BPHDecayToResResBuilder.h:65
BPHDecayConstrainedBuilder.h
BPHDecayToResResBuilder::setRes2MassRange
void setRes2MassRange(double mMin, double mMax)
Definition: BPHDecayToResResBuilder.cc:90
BPHDecayToResResBuilder::recList
std::vector< BPHRecoConstCandPtr > recList
Definition: BPHDecayToResResBuilder.h:83