CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
BPHDecayConstrainedBuilderBase Class Referenceabstract

#include <BPHDecayConstrainedBuilderBase.h>

Inheritance diagram for BPHDecayConstrainedBuilderBase:
BPHDecayGenericBuilderBase BPHDecayConstrainedBuilder< ProdType, ResType > BPHDecayConstrainedBuilder< BPHRecoCandidate, BPHPlusMinusCandidate > BPHDecayConstrainedBuilder< BPHRecoCandidate, BPHRecoCandidate > BPHDecayConstrainedBuilder< ProdType, Res1Type > BPHDecayToResFlyingBuilderBase BPHDecayToResResBuilderBase BPHDecayToResTrkBuilderBase BPHDecayToResTrkTrkSameMassBuilderBase

Public Member Functions

 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 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

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 a resonance, decaying itself to an opposite charged particles pair, applying a mass constraint

Author
Paolo Ronchese INFN Padova

Definition at line 37 of file BPHDecayConstrainedBuilderBase.h.

Constructor & Destructor Documentation

◆ BPHDecayConstrainedBuilderBase() [1/4]

BPHDecayConstrainedBuilderBase::BPHDecayConstrainedBuilderBase ( const BPHEventSetupWrapper es,
const std::string &  resName,
double  resMass,
double  resWidth 
)

Constructor

◆ BPHDecayConstrainedBuilderBase() [2/4]

BPHDecayConstrainedBuilderBase::BPHDecayConstrainedBuilderBase ( const BPHDecayConstrainedBuilderBase x)
delete

◆ ~BPHDecayConstrainedBuilderBase()

BPHDecayConstrainedBuilderBase::~BPHDecayConstrainedBuilderBase ( )
override

Destructor

Definition at line 61 of file BPHDecayConstrainedBuilderBase.cc.

References resoSel.

◆ BPHDecayConstrainedBuilderBase() [3/4]

BPHDecayConstrainedBuilderBase::BPHDecayConstrainedBuilderBase ( const std::string &  resName,
double  resMass,
double  resWidth,
bool  createFitSelObject = true 
)
protected

◆ BPHDecayConstrainedBuilderBase() [4/4]

BPHDecayConstrainedBuilderBase::BPHDecayConstrainedBuilderBase ( )
protected

Definition at line 56 of file BPHDecayConstrainedBuilderBase.cc.

56 {}

Member Function Documentation

◆ addResCollection()

virtual void BPHDecayConstrainedBuilderBase::addResCollection ( BPHRecoBuilder brb)
protectedpure virtual

◆ getConstr()

bool BPHDecayConstrainedBuilderBase::getConstr ( ) const
inline

Definition at line 66 of file BPHDecayConstrainedBuilderBase.h.

References massConstr.

◆ getMassFitSelect()

BPHMassFitSelect* BPHDecayConstrainedBuilderBase::getMassFitSelect ( ) const
inline

Definition at line 67 of file BPHDecayConstrainedBuilderBase.h.

References BPHDecayGenericBuilderBase::mFitSel.

67 { return mFitSel; }

◆ getResMassMax()

double BPHDecayConstrainedBuilderBase::getResMassMax ( ) const
inline

◆ getResMassMin()

double BPHDecayConstrainedBuilderBase::getResMassMin ( ) const
inline

◆ massFitSelector()

BPHMassFitSelect * BPHDecayConstrainedBuilderBase::massFitSelector ( double  mMin,
double  mMax 
)
protectedvirtual

◆ operator=()

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

◆ setConstr()

void BPHDecayConstrainedBuilderBase::setConstr ( bool  flag)

Definition at line 86 of file BPHDecayConstrainedBuilderBase.cc.

References RemoveAddSevLevel::flag, BPHMassCuts::getMassMax(), BPHMassCuts::getMassMin(), massConstr, massFitSelector(), BPHDecayGenericBuilderBase::mFitSel, mfSelForce, and BPHDecayGenericBuilderBase::outdated.

Referenced by BPHBcToJPsiPiBuilder::BPHBcToJPsiPiBuilder(), BPHBdToJPsiKsBuilder::BPHBdToJPsiKsBuilder(), BPHBdToJPsiKxBuilder::BPHBdToJPsiKxBuilder(), BPHBsToJPsiPhiBuilder::BPHBsToJPsiPhiBuilder(), BPHBuToJPsiKBuilder::BPHBuToJPsiKBuilder(), BPHLbToJPsiL0Builder::BPHLbToJPsiL0Builder(), and BPHWriteSpecificDecay::fill().

86  {
87  if ((flag == massConstr) && !mfSelForce)
88  return;
89  outdated = true;
90  massConstr = flag;
92  delete mFitSel;
93  mFitSel = mfs;
94  mfSelForce = false;
95  return;
96 }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
virtual BPHMassFitSelect * massFitSelector(double mMin, double mMax)
double getMassMax() const
Definition: BPHMassCuts.h:59

◆ setMassFitSelect()

void BPHDecayConstrainedBuilderBase::setMassFitSelect ( BPHMassFitSelect mfs)

Definition at line 98 of file BPHDecayConstrainedBuilderBase.cc.

References BPHDecayGenericBuilderBase::mFitSel, mfSelForce, and BPHDecayGenericBuilderBase::outdated.

Referenced by BPHWriteSpecificDecay::fill().

98  {
99  if (mFitSel == mfs)
100  return;
101  outdated = true;
102  mfSelForce = true;
103  mFitSel = mfs;
104  return;
105 }

◆ setResMassMax()

void BPHDecayConstrainedBuilderBase::setResMassMax ( double  m)

◆ setResMassMin()

void BPHDecayConstrainedBuilderBase::setResMassMin ( double  m)

◆ setResMassRange()

void BPHDecayConstrainedBuilderBase::setResMassRange ( double  mMin,
double  mMax 
)

Member Data Documentation

◆ massConstr

bool BPHDecayConstrainedBuilderBase::massConstr
protected

◆ mfSelForce

bool BPHDecayConstrainedBuilderBase::mfSelForce
protected

Definition at line 83 of file BPHDecayConstrainedBuilderBase.h.

Referenced by setConstr(), and setMassFitSelect().

◆ resoSel

BPHMassSelect* BPHDecayConstrainedBuilderBase::resoSel
protected

◆ rMass

double BPHDecayConstrainedBuilderBase::rMass
protected

◆ rName

std::string BPHDecayConstrainedBuilderBase::rName
protected

◆ rWidth

double BPHDecayConstrainedBuilderBase::rWidth
protected