CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type > Class Template Reference

#include <BPHDecayToResResBuilder.h>

Inheritance diagram for BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >:
BPHDecayToResResBuilderBase BPHDecayConstrainedBuilder< ProdType, Res1Type > BPHDecaySpecificBuilder< ProdType > BPHDecaySpecificBuilderBase BPHDecayConstrainedBuilderBase BPHDecayConstrainedBuilderBase BPHDecayGenericBuilder< ProdType > BPHDecaySpecificBuilderBase BPHDecayGenericBuilder< ProdType > BPHDecayGenericBuilderBase BPHDecayGenericBuilderBase BPHDecayGenericBuilderBase BPHDecayGenericBuilderBase

Public Types

typedef Res1Type::const_pointer res1_ptr
 
typedef Res2Type::const_pointer res2_ptr
 
- Public Types inherited from BPHDecayConstrainedBuilder< ProdType, Res1Type >
typedef Res1Type ::const_pointer res_ptr
 
- Public Types inherited from BPHDecayGenericBuilder< ProdType >
typedef ProdType::const_pointer prod_ptr
 

Public Member Functions

 BPHDecayToResResBuilder (const BPHEventSetupWrapper &es, const std::string &res1Name, double res1Mass, double res1Width, const std::vector< res1_ptr > &res1Collection, const std::string &res2Name, const std::vector< res2_ptr > &res2Collection)
 
 BPHDecayToResResBuilder (const BPHDecayToResResBuilder &x)=delete
 
BPHDecayToResResBuilderoperator= (const BPHDecayToResResBuilder &x)=delete
 
 ~BPHDecayToResResBuilder () override=default
 
- Public Member Functions inherited from BPHDecayToResResBuilderBase
 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 ()
 
- Public Member Functions inherited from BPHDecayConstrainedBuilder< ProdType, Res1Type >
 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 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
 
- Public Member Functions inherited from BPHDecaySpecificBuilder< ProdType >
 BPHDecaySpecificBuilder ()
 
 BPHDecaySpecificBuilder (const BPHDecaySpecificBuilder &x)=delete
 
BPHDecaySpecificBuilderoperator= (const BPHDecaySpecificBuilder &x)=delete
 
 ~BPHDecaySpecificBuilder () override=default
 

Protected Member Functions

void addRes2Collection (BPHRecoBuilder &brb) override
 
 BPHDecayToResResBuilder (const std::vector< res1_ptr > &res1Collection, const std::string &res2Name, const std::vector< res2_ptr > &res2Collection)
 
- Protected Member Functions inherited from BPHDecayToResResBuilderBase
virtual void addRes1Collection (BPHRecoBuilder &brb)
 
 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
 BPHDecayConstrainedBuilderBase (const std::string &resName, double resMass, double resWidth, bool createFitSelObject=true)
 
 BPHDecayConstrainedBuilderBase ()
 
virtual BPHMassFitSelectmassFitSelector (double mMin, double mMax)
 
- Protected Member Functions inherited from BPHDecayConstrainedBuilder< ProdType, Res1Type >
void addResCollection (BPHRecoBuilder &brb) override
 
 BPHDecayConstrainedBuilder (const std::vector< res_ptr > &resCollection)
 
- Protected Member Functions inherited from BPHDecayGenericBuilder< ProdType >
 BPHDecayGenericBuilder ()
 
- Protected Member Functions inherited from BPHDecaySpecificBuilder< ProdType >
template<>
void fillRecList ()
 
void fillRecList () override
 build candidates More...
 

Protected Attributes

const std::vector< res2_ptr > * sCollection
 
- Protected Attributes inherited from BPHDecayToResResBuilderBase
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
 
- Protected Attributes inherited from BPHDecayConstrainedBuilder< ProdType, Res1Type >
const std::vector< res_ptr > * rCollection
 
- Protected Attributes inherited from BPHDecayGenericBuilder< ProdType >
std::vector< prod_ptrrecList
 

Private Attributes

std::vector< res2_ptrsCollectSel
 

Detailed Description

template<class ProdType, class Res1Type, class Res2Type>
class BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >

Description: Base class to build a particle decaying to two particles, decaying themselves in cascade, for generic particle types

Author
Paolo Ronchese INFN Padova

Definition at line 39 of file BPHDecayToResResBuilder.h.

Member Typedef Documentation

◆ res1_ptr

template<class ProdType, class Res1Type, class Res2Type>
typedef Res1Type::const_pointer BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::res1_ptr

Definition at line 44 of file BPHDecayToResResBuilder.h.

◆ res2_ptr

template<class ProdType, class Res1Type, class Res2Type>
typedef Res2Type::const_pointer BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::res2_ptr

Definition at line 45 of file BPHDecayToResResBuilder.h.

Constructor & Destructor Documentation

◆ BPHDecayToResResBuilder() [1/3]

template<class ProdType, class Res1Type, class Res2Type>
BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::BPHDecayToResResBuilder ( const BPHEventSetupWrapper es,
const std::string &  res1Name,
double  res1Mass,
double  res1Width,
const std::vector< res1_ptr > &  res1Collection,
const std::string &  res2Name,
const std::vector< res2_ptr > &  res2Collection 
)
inline

Constructor

Definition at line 49 of file BPHDecayToResResBuilder.h.

56  : BPHDecayGenericBuilderBase(es, nullptr),
57  BPHDecayConstrainedBuilderBase(res1Name, res1Mass, res1Width),
60  sCollection(&res2Collection) {}
const std::vector< res2_ptr > * sCollection
BPHDecayToResResBuilderBase(const BPHEventSetupWrapper &es, const std::string &res1Name, double res1Mass, double res1Width, const std::string &res2Name)

◆ BPHDecayToResResBuilder() [2/3]

template<class ProdType, class Res1Type, class Res2Type>
BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::BPHDecayToResResBuilder ( const BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type > &  x)
delete

◆ ~BPHDecayToResResBuilder()

template<class ProdType, class Res1Type, class Res2Type>
BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::~BPHDecayToResResBuilder ( )
overridedefault

Destructor

◆ BPHDecayToResResBuilder() [3/3]

template<class ProdType, class Res1Type, class Res2Type>
BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::BPHDecayToResResBuilder ( const std::vector< res1_ptr > &  res1Collection,
const std::string &  res2Name,
const std::vector< res2_ptr > &  res2Collection 
)
inlineprotected

Definition at line 71 of file BPHDecayToResResBuilder.h.

74  : BPHDecayToResResBuilderBase(res2Name),
76  sCollection(&res2Collection) {}
const std::vector< res2_ptr > * sCollection
BPHDecayToResResBuilderBase(const BPHEventSetupWrapper &es, const std::string &res1Name, double res1Mass, double res1Width, const std::string &res2Name)

Member Function Documentation

◆ addRes2Collection()

template<class ProdType, class Res1Type, class Res2Type>
void BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::addRes2Collection ( BPHRecoBuilder brb)
inlineoverrideprotectedvirtual

Implements BPHDecayToResResBuilderBase.

Definition at line 80 of file BPHDecayToResResBuilder.h.

80  {
81  const std::vector<res2_ptr>& sc = *this->sCollection;
82  if (res2Sel->getMassMax() > 0.0) {
83  sCollectSel.clear();
84  sCollectSel.reserve(sc.size());
85  for (const res2_ptr& s : sc) {
86  if (res2Sel->accept(*s))
87  sCollectSel.push_back(s);
88  }
89  brb.add(sName, sCollectSel);
90  } else
91  brb.add(sName, *this->sCollection);
92  }
const std::vector< res2_ptr > * sCollection
Res2Type::const_pointer res2_ptr
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
std::vector< res2_ptr > sCollectSel
double getMassMax() const
Definition: BPHMassCuts.h:59
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)

◆ operator=()

template<class ProdType, class Res1Type, class Res2Type>
BPHDecayToResResBuilder& BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::operator= ( const BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type > &  x)
delete

Member Data Documentation

◆ sCollection

template<class ProdType, class Res1Type, class Res2Type>
const std::vector<res2_ptr>* BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::sCollection
protected

◆ sCollectSel

template<class ProdType, class Res1Type, class Res2Type>
std::vector<res2_ptr> BPHDecayToResResBuilder< ProdType, Res1Type, Res2Type >::sCollectSel
private