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
double getResMassMin() const
get current cuts
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
void setResMassMin(double m)
set cuts
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)
std::vector< BPHRecoConstCandPtr > recList
BPHDecayToResResBuilder & operator=(const BPHDecayToResResBuilder &x)=delete
void setRes2MassMin(double m)
set cuts
void setRes1MassMin(double m)
set cuts
double getMassMax() const
Definition: BPHMassCuts.h:59
void setRes1MassRange(double mMin, double mMax)
void setResMassRange(double mMin, double mMax)
const std::vector< BPHPlusMinusConstCandPtr > * sCollection
double getRes1MassMin() const
get current cuts
std::vector< BPHRecoConstCandPtr > build()
build candidates
void setRes2MassRange(double mMin, double mMax)