CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
BPHDecayToResResBuilder Class Reference

#include <BPHDecayToResResBuilder.h>

Inheritance diagram for BPHDecayToResResBuilder:
BPHDecayConstrainedBuilder BPHDecayGenericBuilder BPHBdToJPsiKxBuilder BPHBsToJPsiPhiBuilder

Public Member Functions

 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)
 
 BPHDecayToResResBuilder (const BPHDecayToResResBuilder &x)=delete
 
std::vector< BPHRecoConstCandPtrbuild ()
 build candidates More...
 
double getRes1MassMax () const
 
double getRes1MassMin () const
 get current cuts More...
 
double getRes2MassMax () const
 
double getRes2MassMin () const
 
BPHDecayToResResBuilderoperator= (const BPHDecayToResResBuilder &x)=delete
 
void setRes1MassMax (double m)
 
void setRes1MassMin (double m)
 set cuts More...
 
void setRes1MassRange (double mMin, double mMax)
 
void setRes2MassMax (double m)
 
void setRes2MassMin (double m)
 set cuts More...
 
void setRes2MassRange (double mMin, double mMax)
 
 ~BPHDecayToResResBuilder () override
 
- Public Member Functions inherited from BPHDecayConstrainedBuilder
 BPHDecayConstrainedBuilder (const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection)
 
 BPHDecayConstrainedBuilder (const BPHDecayConstrainedBuilder &x)=delete
 
bool getConstr () const
 
double getResMassMax () const
 
double getResMassMin () const
 get current cuts More...
 
BPHDecayConstrainedBuilderoperator= (const BPHDecayConstrainedBuilder &x)=delete
 
void setConstr (bool flag)
 
void setResMassMax (double m)
 
void setResMassMin (double m)
 set cuts More...
 
void setResMassRange (double mMin, double mMax)
 
 ~BPHDecayConstrainedBuilder () override
 
- Public Member Functions inherited from BPHDecayGenericBuilder
 BPHDecayGenericBuilder (const edm::EventSetup &es, BPHMassFitSelect *mfs=nullptr)
 
 BPHDecayGenericBuilder (const BPHDecayGenericBuilder &x)=delete
 
double getMassFitMax () const
 
double getMassFitMin () const
 
double getMassMax () const
 
double getMassMin () const
 get current cuts More...
 
double getMinPDiff ()
 
double getProbMin () const
 
BPHDecayGenericBuilderoperator= (const BPHDecayGenericBuilder &x)=delete
 
void setMassFitMax (double m)
 
void setMassFitMin (double m)
 
void setMassFitRange (double mMin, double mMax)
 
void setMassMax (double m)
 
void setMassMin (double m)
 set cuts More...
 
void setMassRange (double mMin, double mMax)
 
void setMinPDiff (double mpd)
 track min p difference More...
 
void setProbMin (double p)
 
virtual ~BPHDecayGenericBuilder ()
 

Private Attributes

std::vector< BPHRecoConstCandPtrrecList
 
BPHMassSelectres2Sel
 
const std::vector
< BPHPlusMinusConstCandPtr > * 
sCollection
 
std::string sName
 

Additional Inherited Members

- Protected Attributes inherited from BPHDecayConstrainedBuilder
bool massConstr
 
const std::vector
< BPHPlusMinusConstCandPtr > * 
rCollection
 
BPHMassSelectresoSel
 
double rMass
 
std::string rName
 
double rWidth
 
- Protected Attributes inherited from BPHDecayGenericBuilder
BPHChi2Selectchi2Sel
 
const edm::EventSetupevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool updated
 

Detailed Description

Description: Class to build a particle decaying to two resonances, decaying themselves to an opposite charged particles pair

Author
Paolo Ronchese INFN Padova

Definition at line 37 of file BPHDecayToResResBuilder.h.

Constructor & Destructor Documentation

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 
)

Constructor

Definition at line 32 of file BPHDecayToResResBuilder.cc.

39  : BPHDecayConstrainedBuilder(es, res1Name, res1Mass, res1Width, res1Collection),
40  sName(res2Name),
41  sCollection(&res2Collection),
42  res2Sel(new BPHMassSelect(-2.0e+06, -1.0e+06)) {}
const std::vector< BPHPlusMinusConstCandPtr > * sCollection
BPHDecayConstrainedBuilder(const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection)
BPHDecayToResResBuilder::BPHDecayToResResBuilder ( const BPHDecayToResResBuilder x)
delete
BPHDecayToResResBuilder::~BPHDecayToResResBuilder ( )
override

Destructor

Definition at line 47 of file BPHDecayToResResBuilder.cc.

References res2Sel.

47 { delete res2Sel; }

Member Function Documentation

vector< BPHRecoConstCandPtr > BPHDecayToResResBuilder::build ( )

build candidates

Operations

Definition at line 52 of file BPHDecayToResResBuilder.cc.

References BPHRecoBuilder::add(), BPHRecoCandidate::build(), BPHDecayGenericBuilder::chi2Sel, BPHDecayGenericBuilder::evSetup, BPHRecoBuilder::filter(), BPHMassCuts::getMassMax(), BPHChi2Select::getProbMin(), BPHDecayGenericBuilder::massSel, BPHDecayGenericBuilder::mFitSel, BPHDecayGenericBuilder::minPDiff, BPHDecayConstrainedBuilder::rCollection, recList, res2Sel, BPHDecayConstrainedBuilder::resoSel, BPHDecayConstrainedBuilder::rName, sCollection, BPHRecoBuilder::setMinPDiffererence(), sName, and BPHDecayGenericBuilder::updated.

Referenced by BPHWriteSpecificDecay::fill().

52  {
53  if (updated)
54  return recList;
55 
56  recList.clear();
57 
58  BPHRecoBuilder brb(*evSetup);
59  brb.setMinPDiffererence(minPDiff);
60  brb.add(rName, *rCollection);
61  brb.add(sName, *sCollection);
62  brb.filter(rName, *resoSel);
63  brb.filter(sName, *res2Sel);
64 
65  if (massSel->getMassMax() >= 0.0)
66  brb.filter(*massSel);
67  if (chi2Sel->getProbMin() >= 0.0)
68  brb.filter(*chi2Sel);
69  if (mFitSel->getMassMax() >= 0.0)
70  brb.filter(*mFitSel);
71 
73  updated = true;
74  return recList;
75 }
std::vector< BPHRecoConstCandPtr > recList
static std::vector< BPHRecoConstCandPtr > build(const BPHRecoBuilder &builder, double mass=-1, double msig=-1)
const std::vector< BPHPlusMinusConstCandPtr > * rCollection
double getProbMin() const
get current prob min
Definition: BPHChi2Select.h:66
double getMassMax() const
Definition: BPHMassCuts.h:59
const std::vector< BPHPlusMinusConstCandPtr > * sCollection
const edm::EventSetup * evSetup
double BPHDecayToResResBuilder::getRes1MassMax ( ) const
inline
double BPHDecayToResResBuilder::getRes1MassMin ( ) const
inline

get current cuts

Definition at line 71 of file BPHDecayToResResBuilder.h.

References BPHDecayConstrainedBuilder::getResMassMin().

Referenced by BPHBdToJPsiKxBuilder::getJPsiMassMin(), and BPHBsToJPsiPhiBuilder::getJPsiMassMin().

71 { return getResMassMin(); }
double getResMassMin() const
get current cuts
double BPHDecayToResResBuilder::getRes2MassMax ( ) const
inline

Definition at line 74 of file BPHDecayToResResBuilder.h.

References BPHMassCuts::getMassMax(), and res2Sel.

Referenced by BPHBdToJPsiKxBuilder::getKxMassMax(), and BPHBsToJPsiPhiBuilder::getPhiMassMax().

74 { return res2Sel->getMassMax(); }
double getMassMax() const
Definition: BPHMassCuts.h:59
double BPHDecayToResResBuilder::getRes2MassMin ( ) const
inline

Definition at line 73 of file BPHDecayToResResBuilder.h.

References BPHMassCuts::getMassMin(), and res2Sel.

Referenced by BPHBdToJPsiKxBuilder::getKxMassMin(), and BPHBsToJPsiPhiBuilder::getPhiMassMin().

73 { return res2Sel->getMassMin(); }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
BPHDecayToResResBuilder& BPHDecayToResResBuilder::operator= ( const BPHDecayToResResBuilder x)
delete
void BPHDecayToResResBuilder::setRes1MassMax ( double  m)
inline
void BPHDecayToResResBuilder::setRes1MassMin ( double  m)
inline
void BPHDecayToResResBuilder::setRes1MassRange ( double  mMin,
double  mMax 
)
inline
void BPHDecayToResResBuilder::setRes2MassMax ( double  m)
void BPHDecayToResResBuilder::setRes2MassMin ( double  m)
void BPHDecayToResResBuilder::setRes2MassRange ( double  mMin,
double  mMax 
)

Definition at line 90 of file BPHDecayToResResBuilder.cc.

References res2Sel, BPHMassCuts::setMassMax(), BPHMassCuts::setMassMin(), and BPHDecayGenericBuilder::updated.

Referenced by BPHBdToJPsiKxBuilder::BPHBdToJPsiKxBuilder(), and BPHBsToJPsiPhiBuilder::BPHBsToJPsiPhiBuilder().

90  {
91  updated = false;
92  res2Sel->setMassMin(mMin);
93  res2Sel->setMassMax(mMax);
94  return;
95 }
void setMassMax(double m)
Definition: BPHMassCuts.h:52
void setMassMin(double m)
set mass cuts
Definition: BPHMassCuts.h:48

Member Data Documentation

std::vector<BPHRecoConstCandPtr> BPHDecayToResResBuilder::recList
private

Definition at line 83 of file BPHDecayToResResBuilder.h.

Referenced by build().

BPHMassSelect* BPHDecayToResResBuilder::res2Sel
private
const std::vector<BPHPlusMinusConstCandPtr>* BPHDecayToResResBuilder::sCollection
private

Definition at line 79 of file BPHDecayToResResBuilder.h.

Referenced by build().

std::string BPHDecayToResResBuilder::sName
private

Definition at line 77 of file BPHDecayToResResBuilder.h.

Referenced by build().