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 | Protected Attributes
BPHDecayConstrainedBuilder Class Reference

#include <BPHDecayConstrainedBuilder.h>

Inheritance diagram for BPHDecayConstrainedBuilder:
BPHDecayGenericBuilder BPHDecayToResFlyingBuilder BPHDecayToResResBuilder BPHDecayToResTrkBuilder BPHBdToJPsiKsBuilder BPHLbToJPsiL0Builder BPHBdToJPsiKxBuilder BPHBsToJPsiPhiBuilder BPHBcToJPsiPiBuilder BPHBuToJPsiKBuilder

Public Member Functions

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

Protected Attributes

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 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 BPHDecayConstrainedBuilder.h.

Constructor & Destructor Documentation

BPHDecayConstrainedBuilder::BPHDecayConstrainedBuilder ( const edm::EventSetup es,
const std::string &  resName,
double  resMass,
double  resWidth,
const std::vector< BPHPlusMinusConstCandPtr > &  resCollection 
)

Constructor

Definition at line 32 of file BPHDecayConstrainedBuilder.cc.

37  : BPHDecayGenericBuilder(es, new BPHMassFitSelect(resName, resMass, resWidth, -2.0e+06, -1.0e+06)),
38  rName(resName),
39  rMass(resMass),
40  rWidth(resWidth),
41  rCollection(&resCollection),
42  resoSel(new BPHMassSelect(-2.0e+06, -1.0e+06)),
43  massConstr(true) {}
BPHDecayGenericBuilder(const edm::EventSetup &es, BPHMassFitSelect *mfs=nullptr)
const std::vector< BPHPlusMinusConstCandPtr > * rCollection
BPHDecayConstrainedBuilder::BPHDecayConstrainedBuilder ( const BPHDecayConstrainedBuilder x)
delete
BPHDecayConstrainedBuilder::~BPHDecayConstrainedBuilder ( )
override

Destructor

Definition at line 48 of file BPHDecayConstrainedBuilder.cc.

References resoSel.

48 { delete resoSel; }

Member Function Documentation

bool BPHDecayConstrainedBuilder::getConstr ( ) const
inline

Definition at line 66 of file BPHDecayConstrainedBuilder.h.

References massConstr.

double BPHDecayConstrainedBuilder::getResMassMax ( ) const
inline
double BPHDecayConstrainedBuilder::getResMassMin ( ) const
inline
BPHDecayConstrainedBuilder& BPHDecayConstrainedBuilder::operator= ( const BPHDecayConstrainedBuilder x)
delete
void BPHDecayConstrainedBuilder::setConstr ( bool  flag)

Definition at line 73 of file BPHDecayConstrainedBuilder.cc.

References BPHMassCuts::getMassMax(), BPHMassCuts::getMassMin(), massConstr, BPHDecayGenericBuilder::mFitSel, rMass, rName, rWidth, and BPHDecayGenericBuilder::updated.

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

73  {
74  updated = false;
75  if (flag == massConstr)
76  return;
77  double mMin = mFitSel->getMassMin();
78  double mMax = mFitSel->getMassMax();
79  delete mFitSel;
80  massConstr = flag;
81  if (massConstr)
82  mFitSel = new BPHMassFitSelect(rName, rMass, rWidth, mMin, mMax);
83  else
84  mFitSel = new BPHMassFitSelect(mMin, mMax);
85  return;
86 }
double getMassMax() const
Definition: BPHMassCuts.h:59
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58
void BPHDecayConstrainedBuilder::setResMassMax ( double  m)
void BPHDecayConstrainedBuilder::setResMassMin ( double  m)
void BPHDecayConstrainedBuilder::setResMassRange ( double  mMin,
double  mMax 
)

Member Data Documentation

bool BPHDecayConstrainedBuilder::massConstr
protected

Definition at line 77 of file BPHDecayConstrainedBuilder.h.

Referenced by getConstr(), and setConstr().

const std::vector<BPHPlusMinusConstCandPtr>* BPHDecayConstrainedBuilder::rCollection
protected
BPHMassSelect* BPHDecayConstrainedBuilder::resoSel
protected
double BPHDecayConstrainedBuilder::rMass
protected

Definition at line 70 of file BPHDecayConstrainedBuilder.h.

Referenced by setConstr().

std::string BPHDecayConstrainedBuilder::rName
protected
double BPHDecayConstrainedBuilder::rWidth
protected

Definition at line 71 of file BPHDecayConstrainedBuilder.h.

Referenced by setConstr().