CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
BPHDecayConstrainedBuilder< ProdType, ResType > Class Template Reference

#include <BPHDecayConstrainedBuilder.h>

Inheritance diagram for BPHDecayConstrainedBuilder< ProdType, ResType >:
BPHDecayConstrainedBuilderBase BPHDecayGenericBuilder< ProdType > BPHDecayGenericBuilderBase BPHDecayGenericBuilderBase BPHDecayToResFlyingBuilder< ProdType, ResType, FlyingType > BPHDecayToResTrkBuilder< ProdType, ResType > BPHDecayToResTrkTrkSameMassBuilder< ProdType, ResType >

Public Types

typedef ResType::const_pointer res_ptr
 
- Public Types inherited from BPHDecayGenericBuilder< ProdType >
typedef ProdType::const_pointer prod_ptr
 

Public Member Functions

 BPHDecayConstrainedBuilder (const BPHEventSetupWrapper &es, const std::string &resName, double resMass, double resWidth, const std::vector< res_ptr > &resCollection)
 
 BPHDecayConstrainedBuilder (const BPHDecayConstrainedBuilder &x)=delete
 
BPHDecayConstrainedBuilderoperator= (const BPHDecayConstrainedBuilder &x)=delete
 
 ~BPHDecayConstrainedBuilder () 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 ()
 
- Public Member Functions inherited from BPHDecayGenericBuilder< ProdType >
 BPHDecayGenericBuilder (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs)
 
 BPHDecayGenericBuilder (const BPHDecayGenericBuilder &x)=delete
 
virtual std::vector< prod_ptrbuild ()
 build candidates More...
 
BPHDecayGenericBuilderoperator= (const BPHDecayGenericBuilder &x)=delete
 
 ~BPHDecayGenericBuilder () override=default
 

Protected Member Functions

void addResCollection (BPHRecoBuilder &brb) override
 
 BPHDecayConstrainedBuilder (const std::vector< res_ptr > &resCollection)
 
- Protected Member Functions inherited from BPHDecayConstrainedBuilderBase
 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 Member Functions inherited from BPHDecayGenericBuilder< ProdType >
 BPHDecayGenericBuilder ()
 

Protected Attributes

const std::vector< res_ptr > * rCollection
 
- 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
 
- Protected Attributes inherited from BPHDecayGenericBuilder< ProdType >
std::vector< prod_ptrrecList
 

Private Attributes

std::vector< res_ptrrCollectSel
 

Detailed Description

template<class ProdType, class ResType>
class BPHDecayConstrainedBuilder< ProdType, ResType >

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 40 of file BPHDecayConstrainedBuilder.h.

Member Typedef Documentation

◆ res_ptr

template<class ProdType, class ResType>
typedef ResType::const_pointer BPHDecayConstrainedBuilder< ProdType, ResType >::res_ptr

Definition at line 44 of file BPHDecayConstrainedBuilder.h.

Constructor & Destructor Documentation

◆ BPHDecayConstrainedBuilder() [1/3]

template<class ProdType, class ResType>
BPHDecayConstrainedBuilder< ProdType, ResType >::BPHDecayConstrainedBuilder ( const BPHEventSetupWrapper es,
const std::string &  resName,
double  resMass,
double  resWidth,
const std::vector< res_ptr > &  resCollection 
)
inline

◆ BPHDecayConstrainedBuilder() [2/3]

template<class ProdType, class ResType>
BPHDecayConstrainedBuilder< ProdType, ResType >::BPHDecayConstrainedBuilder ( const BPHDecayConstrainedBuilder< ProdType, ResType > &  x)
delete

◆ ~BPHDecayConstrainedBuilder()

template<class ProdType, class ResType>
BPHDecayConstrainedBuilder< ProdType, ResType >::~BPHDecayConstrainedBuilder ( )
overridedefault

Destructor

◆ BPHDecayConstrainedBuilder() [3/3]

template<class ProdType, class ResType>
BPHDecayConstrainedBuilder< ProdType, ResType >::BPHDecayConstrainedBuilder ( const std::vector< res_ptr > &  resCollection)
inlineprotected

Definition at line 67 of file BPHDecayConstrainedBuilder.h.

67 : rCollection(&resCollection) {}
const std::vector< res_ptr > * rCollection

Member Function Documentation

◆ addResCollection()

template<class ProdType, class ResType>
void BPHDecayConstrainedBuilder< ProdType, ResType >::addResCollection ( BPHRecoBuilder brb)
inlineoverrideprotectedvirtual

Implements BPHDecayConstrainedBuilderBase.

Definition at line 71 of file BPHDecayConstrainedBuilder.h.

71  {
72  const std::vector<res_ptr>& rc = *this->rCollection;
73  if (resoSel->getMassMax() > 0.0) {
74  rCollectSel.clear();
75  rCollectSel.reserve(rc.size());
76  for (const res_ptr& r : rc) {
77  if (resoSel->accept(*r))
78  rCollectSel.push_back(r);
79  }
80  brb.add(rName, rCollectSel);
81  } else
82  brb.add(rName, *this->rCollection);
83  }
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
double getMassMax() const
Definition: BPHMassCuts.h:59
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
const std::vector< res_ptr > * rCollection

◆ operator=()

template<class ProdType, class ResType>
BPHDecayConstrainedBuilder& BPHDecayConstrainedBuilder< ProdType, ResType >::operator= ( const BPHDecayConstrainedBuilder< ProdType, ResType > &  x)
delete

Member Data Documentation

◆ rCollection

template<class ProdType, class ResType>
const std::vector<res_ptr>* BPHDecayConstrainedBuilder< ProdType, ResType >::rCollection
protected

◆ rCollectSel

template<class ProdType, class ResType>
std::vector<res_ptr> BPHDecayConstrainedBuilder< ProdType, ResType >::rCollectSel
private