CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BPHDecayToResFlyingBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResFlyingBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResFlyingBuilder_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
26 
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 #include <string>
33 #include <vector>
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 public:
44  const std::string& resName,
45  double resMass,
46  double resWidth,
47  const std::vector<BPHPlusMinusConstCandPtr>& resCollection,
48  const std::string& flyName,
49  double flyMass,
50  double flyMSigma,
51  const std::vector<BPHPlusMinusConstCandPtr>& flyCollection);
52 
53  // deleted copy constructor and assignment operator
56 
59  ~BPHDecayToResFlyingBuilder() override;
60 
63  std::vector<BPHRecoConstCandPtr> build();
65 
67  const std::map<const BPHRecoCandidate*, const BPHRecoCandidate*>& daughMap() const { return dMap; }
68 
70  void setFlyingMassMin(double m);
71  void setFlyingMassMax(double m);
72  void setFlyingMassRange(double mMin, double mMax);
73  void setKinFitProbMin(double p);
74 
76  double getFlyingMassMin() const { return flySel->getMassMin(); }
77  double getFlyingMassMax() const { return flySel->getMassMax(); }
78  double getKinFitProbMin() const { return kfChi2Sel->getProbMin(); }
79 
80 private:
82  double fMass;
83  double fMSigma;
84 
85  const std::vector<BPHPlusMinusConstCandPtr>* fCollection;
86 
89 
90  std::map<const BPHRecoCandidate*, const BPHRecoCandidate*> dMap;
91  std::vector<BPHRecoConstCandPtr> recList;
92 };
93 
94 #endif
std::vector< BPHRecoConstCandPtr > build()
build candidates
void setFlyingMassMin(double m)
set cuts
BPHDecayToResFlyingBuilder(const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection, const std::string &flyName, double flyMass, double flyMSigma, const std::vector< BPHPlusMinusConstCandPtr > &flyCollection)
double getProbMin() const
get current prob min
std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > dMap
std::vector< BPHRecoConstCandPtr > recList
double getMassMax() const
Definition: BPHMassCuts.h:59
const std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > & daughMap() const
get original daughters map
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
double getFlyingMassMin() const
get current cuts
void setFlyingMassRange(double mMin, double mMax)
BPHDecayToResFlyingBuilder & operator=(const BPHDecayToResFlyingBuilder &x)=delete
const std::vector< BPHPlusMinusConstCandPtr > * fCollection