CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes
BPHDecayToResResBuilderBase Class Referenceabstract

#include <BPHDecayToResResBuilderBase.h>

Inheritance diagram for BPHDecayToResResBuilderBase:
BPHDecaySpecificBuilderBase BPHDecayConstrainedBuilderBase BPHDecayGenericBuilderBase BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type > BPHDecayToResResBuilder< BPHRecoCandidate, BPHPlusMinusCandidate, BPHPlusMinusCandidate > BPHBdToJPsiKxBuilder BPHBsToJPsiPhiBuilder

Classes

class  DZSelect
 

Public Member Functions

 BPHDecayToResResBuilderBase (const BPHEventSetupWrapper &es, const std::string &res1Name, double res1Mass, double res1Width, const std::string &res2Name)
 
 BPHDecayToResResBuilderBase (const BPHDecayToResResBuilderBase &x)=delete
 
double getRes1MassMax () const
 
double getRes1MassMin () const
 get current cuts More...
 
double getRes2MassMax () const
 
double getRes2MassMin () const
 
BPHDecayToResResBuilderBaseoperator= (const BPHDecayToResResBuilderBase &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)
 
 ~BPHDecayToResResBuilderBase () override
 
- Public Member Functions inherited from BPHDecaySpecificBuilderBase
virtual ~BPHDecaySpecificBuilderBase ()=default
 
- Public Member Functions inherited from BPHDecayConstrainedBuilderBase
 BPHDecayConstrainedBuilderBase (const BPHEventSetupWrapper &es, const std::string &resName, double resMass, double resWidth)
 
 BPHDecayConstrainedBuilderBase (const BPHDecayConstrainedBuilderBase &x)=delete
 
bool getConstr () const
 
BPHMassFitSelectgetMassFitSelect () const
 
double getResMassMax () const
 
double getResMassMin () const
 get current cuts More...
 
BPHDecayConstrainedBuilderBaseoperator= (const BPHDecayConstrainedBuilderBase &x)=delete
 
void setConstr (bool flag)
 
void setMassFitSelect (BPHMassFitSelect *mfs)
 
void setResMassMax (double m)
 
void setResMassMin (double m)
 set cuts More...
 
void setResMassRange (double mMin, double mMax)
 
 ~BPHDecayConstrainedBuilderBase () override
 
- Public Member Functions inherited from BPHDecayGenericBuilderBase
 BPHDecayGenericBuilderBase ()
 
 BPHDecayGenericBuilderBase (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs=new BPHMassFitSelect(-2.0e+06, -1.0e+06))
 
 BPHDecayGenericBuilderBase (const BPHDecayGenericBuilderBase &x)=delete
 
double getMassFitMax () const
 
double getMassFitMin () const
 
double getMassMax () const
 
double getMassMin () const
 get current cuts More...
 
double getMinPDiff ()
 
double getProbMin () const
 
BPHDecayGenericBuilderBaseoperator= (const BPHDecayGenericBuilderBase &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 ~BPHDecayGenericBuilderBase ()
 

Protected Member Functions

virtual void addRes1Collection (BPHRecoBuilder &brb)
 
virtual void addRes2Collection (BPHRecoBuilder &brb)=0
 
 BPHDecayToResResBuilderBase (const std::string &res2Name)
 
void fill (BPHRecoBuilder &brb, void *parameters) override
 build candidates More...
 
- Protected Member Functions inherited from BPHDecaySpecificBuilderBase
virtual void setup (void *parameters)=0
 
- Protected Member Functions inherited from BPHDecayConstrainedBuilderBase
virtual void addResCollection (BPHRecoBuilder &brb)=0
 
 BPHDecayConstrainedBuilderBase (const std::string &resName, double resMass, double resWidth, bool createFitSelObject=true)
 
 BPHDecayConstrainedBuilderBase ()
 
virtual BPHMassFitSelectmassFitSelector (double mMin, double mMax)
 
- Protected Member Functions inherited from BPHDecayGenericBuilderBase
virtual void fillRecList ()=0
 

Protected Attributes

DZSelect dzFilter
 
BPHMassSelectres2Sel
 
std::string sName
 
- Protected Attributes inherited from BPHDecayConstrainedBuilderBase
bool massConstr
 
bool mfSelForce
 
BPHMassSelectresoSel
 
double rMass
 
std::string rName
 
double rWidth
 
- Protected Attributes inherited from BPHDecayGenericBuilderBase
BPHChi2Selectchi2Sel
 
const BPHEventSetupWrapperevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool outdated
 

Detailed Description

Description: Class to build a particle decaying to two particles, decaying themselves in cascade

Author
Paolo Ronchese INFN Padova

Definition at line 39 of file BPHDecayToResResBuilderBase.h.

Constructor & Destructor Documentation

◆ BPHDecayToResResBuilderBase() [1/3]

BPHDecayToResResBuilderBase::BPHDecayToResResBuilderBase ( const BPHEventSetupWrapper es,
const std::string &  res1Name,
double  res1Mass,
double  res1Width,
const std::string &  res2Name 
)

Constructor

◆ BPHDecayToResResBuilderBase() [2/3]

BPHDecayToResResBuilderBase::BPHDecayToResResBuilderBase ( const BPHDecayToResResBuilderBase x)
delete

◆ ~BPHDecayToResResBuilderBase()

BPHDecayToResResBuilderBase::~BPHDecayToResResBuilderBase ( )
override

Destructor

Definition at line 48 of file BPHDecayToResResBuilderBase.cc.

References res2Sel.

48 { delete res2Sel; }

◆ BPHDecayToResResBuilderBase() [3/3]

BPHDecayToResResBuilderBase::BPHDecayToResResBuilderBase ( const std::string &  res2Name)
protected

Member Function Documentation

◆ addRes1Collection()

virtual void BPHDecayToResResBuilderBase::addRes1Collection ( BPHRecoBuilder brb)
inlineprotectedvirtual

Definition at line 82 of file BPHDecayToResResBuilderBase.h.

References BPHDecayConstrainedBuilderBase::addResCollection().

Referenced by fill().

82 { addResCollection(brb); }
virtual void addResCollection(BPHRecoBuilder &brb)=0

◆ addRes2Collection()

virtual void BPHDecayToResResBuilderBase::addRes2Collection ( BPHRecoBuilder brb)
protectedpure virtual

◆ fill()

void BPHDecayToResResBuilderBase::fill ( BPHRecoBuilder brb,
void *  parameters 
)
overrideprotectedvirtual

build candidates

Implements BPHDecaySpecificBuilderBase.

Definition at line 75 of file BPHDecayToResResBuilderBase.cc.

References addRes1Collection(), addRes2Collection(), BPHDecayGenericBuilderBase::chi2Sel, BPHRecoBuilder::filter(), BPHMassCuts::getMassMax(), BPHChi2Select::getProbMin(), BPHDecayGenericBuilderBase::massSel, BPHDecayGenericBuilderBase::mFitSel, BPHDecayGenericBuilderBase::minPDiff, BPHRecoBuilder::setMinPDiffererence(), and BPHDecaySpecificBuilderBase::setup().

75  {
77  addRes1Collection(brb);
78  addRes2Collection(brb);
79 
80  if (massSel->getMassMax() >= 0.0)
81  brb.filter(*massSel);
82  if (chi2Sel->getProbMin() >= 0.0)
83  brb.filter(*chi2Sel);
84  if (mFitSel->getMassMax() >= 0.0)
85  brb.filter(*mFitSel);
86 
88 
89  return;
90 }
double getProbMin() const
get current prob min
Definition: BPHChi2Select.h:66
void setMinPDiffererence(double pMin)
virtual void addRes2Collection(BPHRecoBuilder &brb)=0
virtual void addRes1Collection(BPHRecoBuilder &brb)
void filter(const std::string &name, const BPHRecoSelect &sel) const
double getMassMax() const
Definition: BPHMassCuts.h:59
virtual void setup(void *parameters)=0

◆ getRes1MassMax()

double BPHDecayToResResBuilderBase::getRes1MassMax ( ) const
inline

◆ getRes1MassMin()

double BPHDecayToResResBuilderBase::getRes1MassMin ( ) const
inline

◆ getRes2MassMax()

double BPHDecayToResResBuilderBase::getRes2MassMax ( ) const
inline

◆ getRes2MassMin()

double BPHDecayToResResBuilderBase::getRes2MassMin ( ) const
inline

Definition at line 72 of file BPHDecayToResResBuilderBase.h.

References BPHMassCuts::getMassMin(), and res2Sel.

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

72 { return res2Sel->getMassMin(); }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58

◆ operator=()

BPHDecayToResResBuilderBase& BPHDecayToResResBuilderBase::operator= ( const BPHDecayToResResBuilderBase x)
delete

◆ setRes1MassMax()

void BPHDecayToResResBuilderBase::setRes1MassMax ( double  m)
inline

◆ setRes1MassMin()

void BPHDecayToResResBuilderBase::setRes1MassMin ( double  m)
inline

◆ setRes1MassRange()

void BPHDecayToResResBuilderBase::setRes1MassRange ( double  mMin,
double  mMax 
)
inline

◆ setRes2MassMax()

void BPHDecayToResResBuilderBase::setRes2MassMax ( double  m)

◆ setRes2MassMin()

void BPHDecayToResResBuilderBase::setRes2MassMin ( double  m)

◆ setRes2MassRange()

void BPHDecayToResResBuilderBase::setRes2MassRange ( double  mMin,
double  mMax 
)

Member Data Documentation

◆ dzFilter

DZSelect BPHDecayToResResBuilderBase::dzFilter
protected

Definition at line 100 of file BPHDecayToResResBuilderBase.h.

◆ res2Sel

BPHMassSelect* BPHDecayToResResBuilderBase::res2Sel
protected

◆ sName

std::string BPHDecayToResResBuilderBase::sName
protected