CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
BPHDecayToResTrkTrkSameMassBuilderBase Class Reference

#include <BPHDecayToResTrkTrkSameMassBuilderBase.h>

Inheritance diagram for BPHDecayToResTrkTrkSameMassBuilderBase:
BPHDecayConstrainedBuilderBase BPHDecayGenericBuilderBase BPHDecayToResTrkTrkSameMassBuilder< ProdType, ResType > BPHDecayToResTrkTrkSameMassBuilder< BPHRecoCandidate, BPHPlusMinusCandidate > BPHDecayToJPsiPiPiBuilder BPHPsi2SToJPsiPiPiBuilder BPHX3872ToJPsiPiPiBuilder

Public Member Functions

 BPHDecayToResTrkTrkSameMassBuilderBase (const BPHEventSetupWrapper &es, const std::string &resName, double resMass, double resWidth, const std::string &posName, const std::string &negName, double trkMass, double trkSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
 
 BPHDecayToResTrkTrkSameMassBuilderBase (const BPHDecayToResTrkTrkSameMassBuilderBase &x)=delete
 
double getTrkEtaMax () const
 
double getTrkPtMin () const
 get current cuts More...
 
BPHDecayToResTrkTrkSameMassBuilderBaseoperator= (const BPHDecayToResTrkTrkSameMassBuilderBase &x)=delete
 
void setTrkEtaMax (double eta)
 
void setTrkPtMin (double pt)
 set cuts More...
 
 ~BPHDecayToResTrkTrkSameMassBuilderBase () override=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

 BPHDecayToResTrkTrkSameMassBuilderBase (const std::string &posName, const std::string &negName, double trkMass, double trkSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
 
void fillTrkTrkList ()
 
- 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

double etaMax
 
const BPHRecoBuilder::BPHGenericCollectionnCollection
 
std::string nName
 
const BPHRecoBuilder::BPHGenericCollectionpCollection
 
std::string pName
 
double ptMin
 
double tMass
 
double tSigma
 
std::vector< BPHPlusMinusConstCandPtrttPairs
 
- 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: Base class to build a particle decaying to a particle, decaying itself in cascade, and two additional opposite charged particles pair having the same mass

Author
Paolo Ronchese INFN Padova

Definition at line 40 of file BPHDecayToResTrkTrkSameMassBuilderBase.h.

Constructor & Destructor Documentation

◆ BPHDecayToResTrkTrkSameMassBuilderBase() [1/3]

BPHDecayToResTrkTrkSameMassBuilderBase::BPHDecayToResTrkTrkSameMassBuilderBase ( const BPHEventSetupWrapper es,
const std::string &  resName,
double  resMass,
double  resWidth,
const std::string &  posName,
const std::string &  negName,
double  trkMass,
double  trkSigma,
const BPHRecoBuilder::BPHGenericCollection posCollection,
const BPHRecoBuilder::BPHGenericCollection negCollection 
)

Constructor

◆ BPHDecayToResTrkTrkSameMassBuilderBase() [2/3]

BPHDecayToResTrkTrkSameMassBuilderBase::BPHDecayToResTrkTrkSameMassBuilderBase ( const BPHDecayToResTrkTrkSameMassBuilderBase x)
delete

◆ ~BPHDecayToResTrkTrkSameMassBuilderBase()

BPHDecayToResTrkTrkSameMassBuilderBase::~BPHDecayToResTrkTrkSameMassBuilderBase ( )
overridedefault

Destructor

◆ BPHDecayToResTrkTrkSameMassBuilderBase() [3/3]

BPHDecayToResTrkTrkSameMassBuilderBase::BPHDecayToResTrkTrkSameMassBuilderBase ( const std::string &  posName,
const std::string &  negName,
double  trkMass,
double  trkSigma,
const BPHRecoBuilder::BPHGenericCollection posCollection,
const BPHRecoBuilder::BPHGenericCollection negCollection 
)
protected

Member Function Documentation

◆ fillTrkTrkList()

void BPHDecayToResTrkTrkSameMassBuilderBase::fillTrkTrkList ( )
protected

Definition at line 76 of file BPHDecayToResTrkTrkSameMassBuilderBase.cc.

References BPHDecayGenericBuilder< ProdType >::build(), etaMax, BPHDecayGenericBuilderBase::evSetup, BPHMassCuts::getMassMax(), BPHDecayGenericBuilderBase::massSel, BPHDecayGenericBuilderBase::minPDiff, nCollection, nName, pCollection, pName, ptMin, BPHDecayConstrainedBuilderBase::rMass, BPHDecayToChargedXXbarBuilder::setDzMax(), BPHDecayToChargedXXbarBuilder::setEtaMax(), BPHDecayGenericBuilderBase::setMassMax(), BPHDecayGenericBuilderBase::setMassMin(), BPHDecayGenericBuilderBase::setMinPDiff(), BPHDecayToChargedXXbarBuilder::setPtMin(), tMass, tSigma, and ttPairs.

Referenced by BPHDecayToResTrkTrkSameMassBuilder< BPHRecoCandidate, BPHPlusMinusCandidate >::fillRecList().

76  {
77  double mTotMax = massSel->getMassMax();
78 
80  ttBuilder.setPtMin(ptMin);
81  ttBuilder.setEtaMax(etaMax);
82  ttBuilder.setDzMax(1.0);
83  ttBuilder.setMassMin(0.0);
84  if (mTotMax >= 0.0)
85  ttBuilder.setMassMax(mTotMax - (0.8 * rMass));
86  else
87  ttBuilder.setMassMax(-1.0);
88  ttBuilder.setMinPDiff(minPDiff);
89 
90  ttPairs = ttBuilder.build();
91 
92  return;
93 }
const BPHEventSetupWrapper * evSetup
const BPHRecoBuilder::BPHGenericCollection * pCollection
const BPHRecoBuilder::BPHGenericCollection * nCollection
double getMassMax() const
Definition: BPHMassCuts.h:59

◆ getTrkEtaMax()

double BPHDecayToResTrkTrkSameMassBuilderBase::getTrkEtaMax ( ) const
inline

◆ getTrkPtMin()

double BPHDecayToResTrkTrkSameMassBuilderBase::getTrkPtMin ( ) const
inline

◆ operator=()

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

◆ setTrkEtaMax()

void BPHDecayToResTrkTrkSameMassBuilderBase::setTrkEtaMax ( double  eta)

◆ setTrkPtMin()

void BPHDecayToResTrkTrkSameMassBuilderBase::setTrkPtMin ( double  pt)

Member Data Documentation

◆ etaMax

double BPHDecayToResTrkTrkSameMassBuilderBase::etaMax
protected

◆ nCollection

const BPHRecoBuilder::BPHGenericCollection* BPHDecayToResTrkTrkSameMassBuilderBase::nCollection
protected

Definition at line 88 of file BPHDecayToResTrkTrkSameMassBuilderBase.h.

Referenced by fillTrkTrkList().

◆ nName

std::string BPHDecayToResTrkTrkSameMassBuilderBase::nName
protected

◆ pCollection

const BPHRecoBuilder::BPHGenericCollection* BPHDecayToResTrkTrkSameMassBuilderBase::pCollection
protected

Definition at line 87 of file BPHDecayToResTrkTrkSameMassBuilderBase.h.

Referenced by fillTrkTrkList().

◆ pName

std::string BPHDecayToResTrkTrkSameMassBuilderBase::pName
protected

◆ ptMin

double BPHDecayToResTrkTrkSameMassBuilderBase::ptMin
protected

◆ tMass

double BPHDecayToResTrkTrkSameMassBuilderBase::tMass
protected

◆ tSigma

double BPHDecayToResTrkTrkSameMassBuilderBase::tSigma
protected

◆ ttPairs

std::vector<BPHPlusMinusConstCandPtr> BPHDecayToResTrkTrkSameMassBuilderBase::ttPairs
protected