CMS 3D CMS Logo

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
BPHDecayToResFlyingBuilder::flySel
BPHMassFitSelect * flySel
Definition: BPHDecayToResFlyingBuilder.h:87
BPHKinFitChi2Select
Definition: BPHKinFitChi2Select.h:31
BPHDecayToResFlyingBuilder::setFlyingMassMax
void setFlyingMassMax(double m)
Definition: BPHDecayToResFlyingBuilder.cc:114
BPHDecayToResFlyingBuilder::fCollection
const std::vector< BPHPlusMinusConstCandPtr > * fCollection
Definition: BPHDecayToResFlyingBuilder.h:85
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
BPHMassCuts::getMassMin
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
BPHDecayConstrainedBuilder
Definition: BPHDecayConstrainedBuilder.h:37
DDAxes::x
BPHDecayToResFlyingBuilder::operator=
BPHDecayToResFlyingBuilder & operator=(const BPHDecayToResFlyingBuilder &x)=delete
BPHKinFitChi2Select.h
BPHDecayToResFlyingBuilder::setFlyingMassMin
void setFlyingMassMin(double m)
set cuts
Definition: BPHDecayToResFlyingBuilder.cc:108
BPHDecayToResFlyingBuilder::fMass
double fMass
Definition: BPHDecayToResFlyingBuilder.h:82
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
BPHDecayToResFlyingBuilder::getKinFitProbMin
double getKinFitProbMin() const
Definition: BPHDecayToResFlyingBuilder.h:78
BPHDecayToResFlyingBuilder::BPHDecayToResFlyingBuilder
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)
Definition: BPHDecayToResFlyingBuilder.cc:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BPHDecayToResFlyingBuilder::setKinFitProbMin
void setKinFitProbMin(double p)
Definition: BPHDecayToResFlyingBuilder.cc:127
BPHDecayToResFlyingBuilder::fName
std::string fName
Definition: BPHDecayToResFlyingBuilder.h:81
BPHKinFitChi2Select::getProbMin
double getProbMin() const
get current prob min
Definition: BPHKinFitChi2Select.h:71
BPHDecayToResFlyingBuilder::getFlyingMassMin
double getFlyingMassMin() const
get current cuts
Definition: BPHDecayToResFlyingBuilder.h:76
BPHDecayToResFlyingBuilder::kfChi2Sel
BPHKinFitChi2Select * kfChi2Sel
Definition: BPHDecayToResFlyingBuilder.h:88
Event.h
BPHDecayToResFlyingBuilder::getFlyingMassMax
double getFlyingMassMax() const
Definition: BPHDecayToResFlyingBuilder.h:77
BPHDecayToResFlyingBuilder::build
std::vector< BPHRecoConstCandPtr > build()
build candidates
Definition: BPHDecayToResFlyingBuilder.cc:60
BPHDecayToResFlyingBuilder
Definition: BPHDecayToResFlyingBuilder.h:39
BPHMassCuts::getMassMax
double getMassMax() const
Definition: BPHMassCuts.h:59
BPHDecayToResFlyingBuilder::dMap
std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > dMap
Definition: BPHDecayToResFlyingBuilder.h:90
edm::EventSetup
Definition: EventSetup.h:58
BPHRecoBuilder.h
BPHPlusMinusCandidate.h
BPHDecayToResFlyingBuilder::daughMap
const std::map< const BPHRecoCandidate *, const BPHRecoCandidate * > & daughMap() const
get original daughters map
Definition: BPHDecayToResFlyingBuilder.h:67
BPHRecoCandidate.h
BPHDecayToResFlyingBuilder::~BPHDecayToResFlyingBuilder
~BPHDecayToResFlyingBuilder() override
Definition: BPHDecayToResFlyingBuilder.cc:52
BPHDecayToResFlyingBuilder::recList
std::vector< BPHRecoConstCandPtr > recList
Definition: BPHDecayToResFlyingBuilder.h:91
BPHDecayToResFlyingBuilder::setFlyingMassRange
void setFlyingMassRange(double mMin, double mMax)
Definition: BPHDecayToResFlyingBuilder.cc:120
BPHDecayToResFlyingBuilder::fMSigma
double fMSigma
Definition: BPHDecayToResFlyingBuilder.h:83
BPHDecayConstrainedBuilder.h
BPHMassFitSelect
Definition: BPHMassFitSelect.h:34