CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BPHDecayToResTrkBuilder Class Reference

#include <BPHDecayToResTrkBuilder.h>

Inheritance diagram for BPHDecayToResTrkBuilder:
BPHDecayConstrainedBuilder BPHDecayGenericBuilder BPHBcToJPsiPiBuilder BPHBuToJPsiKBuilder

Public Member Functions

 BPHDecayToResTrkBuilder (const BPHDecayToResTrkBuilder &x)=delete
 
 BPHDecayToResTrkBuilder (const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection, const std::string &trkName, double trkMass, double trkSigma, const BPHRecoBuilder::BPHGenericCollection *trkCollection)
 
std::vector< BPHRecoConstCandPtrbuild ()
 build candidates More...
 
double getTrkEtaMax () const
 
double getTrkPtMin () const
 get current cuts More...
 
BPHDecayToResTrkBuilderoperator= (const BPHDecayToResTrkBuilder &x)=delete
 
void setTrkEtaMax (double eta)
 
void setTrkPtMin (double pt)
 set cuts More...
 
 ~BPHDecayToResTrkBuilder () override
 
- Public Member Functions inherited from BPHDecayConstrainedBuilder
 BPHDecayConstrainedBuilder (const BPHDecayConstrainedBuilder &x)=delete
 
 BPHDecayConstrainedBuilder (const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection)
 
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 BPHDecayGenericBuilder &x)=delete
 
 BPHDecayGenericBuilder (const edm::EventSetup &es, BPHMassFitSelect *mfs=nullptr)
 
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 ()
 

Private Attributes

BPHParticleEtaSelectetaSel
 
BPHParticlePtSelectptSel
 
std::vector< BPHRecoConstCandPtrrecList
 
const BPHRecoBuilder::BPHGenericCollectiontCollection
 
BPHParticleNeutralVetotknVeto
 
double tMass
 
std::string tName
 
double tSigma
 

Additional Inherited Members

- Protected Attributes inherited from BPHDecayConstrainedBuilder
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, and an additional track

Author
Paolo Ronchese INFN Padova

Definition at line 42 of file BPHDecayToResTrkBuilder.h.

Constructor & Destructor Documentation

◆ BPHDecayToResTrkBuilder() [1/2]

BPHDecayToResTrkBuilder::BPHDecayToResTrkBuilder ( const edm::EventSetup es,
const std::string &  resName,
double  resMass,
double  resWidth,
const std::vector< BPHPlusMinusConstCandPtr > &  resCollection,
const std::string &  trkName,
double  trkMass,
double  trkSigma,
const BPHRecoBuilder::BPHGenericCollection trkCollection 
)

Constructor

Definition at line 33 of file BPHDecayToResTrkBuilder.cc.

42  : BPHDecayConstrainedBuilder(es, resName, resMass, resWidth, resCollection),
43  tName(trkName),
44  tMass(trkMass),
45  tSigma(trkSigma),
46  tCollection(trkCollection),
48  ptSel(new BPHParticlePtSelect(0.0)),
49  etaSel(new BPHParticleEtaSelect(100.0)) {}

◆ BPHDecayToResTrkBuilder() [2/2]

BPHDecayToResTrkBuilder::BPHDecayToResTrkBuilder ( const BPHDecayToResTrkBuilder x)
delete

◆ ~BPHDecayToResTrkBuilder()

BPHDecayToResTrkBuilder::~BPHDecayToResTrkBuilder ( )
override

Destructor

Definition at line 54 of file BPHDecayToResTrkBuilder.cc.

54  {
55  delete tknVeto;
56  delete ptSel;
57  delete etaSel;
58 }

References etaSel, ptSel, and tknVeto.

Member Function Documentation

◆ build()

vector< BPHRecoConstCandPtr > BPHDecayToResTrkBuilder::build ( )

build candidates

Operations

Definition at line 63 of file BPHDecayToResTrkBuilder.cc.

63  {
64  if (updated)
65  return recList;
66 
67  recList.clear();
68 
69  BPHRecoBuilder brb(*evSetup);
70  brb.setMinPDiffererence(minPDiff);
71  brb.add(rName, *rCollection);
72  brb.add(tName, tCollection, tMass, tSigma);
73  if (resoSel->getMassMax() > 0.0)
74  brb.filter(rName, *resoSel);
75  brb.filter(tName, *tknVeto);
76  if (ptSel->getPtMin() >= 0.0)
77  brb.filter(tName, *ptSel);
78  if (etaSel->getEtaMax() >= 0.0)
79  brb.filter(tName, *etaSel);
80 
81  if (massSel->getMassMax() >= 0.0)
82  brb.filter(*massSel);
83  if (chi2Sel->getProbMin() >= 0.0)
84  brb.filter(*chi2Sel);
85  if (mFitSel->getMassMax() >= 0.0)
86  brb.filter(*mFitSel);
87 
89  updated = true;
90  return recList;
91 }

References BPHRecoBuilder::add(), BPHRecoCandidate::build(), BPHDecayGenericBuilder::chi2Sel, etaSel, BPHDecayGenericBuilder::evSetup, BPHRecoBuilder::filter(), BPHParticleEtaSelect::getEtaMax(), BPHMassCuts::getMassMax(), BPHChi2Select::getProbMin(), BPHParticlePtSelect::getPtMin(), BPHDecayGenericBuilder::massSel, BPHDecayGenericBuilder::mFitSel, BPHDecayGenericBuilder::minPDiff, ptSel, BPHDecayConstrainedBuilder::rCollection, recList, BPHDecayConstrainedBuilder::resoSel, BPHDecayConstrainedBuilder::rName, BPHRecoBuilder::setMinPDiffererence(), tCollection, tknVeto, tMass, tName, tSigma, and BPHDecayGenericBuilder::updated.

Referenced by BPHWriteSpecificDecay::fill().

◆ getTrkEtaMax()

double BPHDecayToResTrkBuilder::getTrkEtaMax ( ) const
inline

◆ getTrkPtMin()

double BPHDecayToResTrkBuilder::getTrkPtMin ( ) const
inline

get current cuts

Definition at line 74 of file BPHDecayToResTrkBuilder.h.

74 { return ptSel->getPtMin(); }

References BPHParticlePtSelect::getPtMin(), and ptSel.

Referenced by BPHBuToJPsiKBuilder::getKPtMin(), and BPHBcToJPsiPiBuilder::getPiPtMin().

◆ operator=()

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

◆ setTrkEtaMax()

void BPHDecayToResTrkBuilder::setTrkEtaMax ( double  eta)

◆ setTrkPtMin()

void BPHDecayToResTrkBuilder::setTrkPtMin ( double  pt)

Member Data Documentation

◆ etaSel

BPHParticleEtaSelect* BPHDecayToResTrkBuilder::etaSel
private

◆ ptSel

BPHParticlePtSelect* BPHDecayToResTrkBuilder::ptSel
private

◆ recList

std::vector<BPHRecoConstCandPtr> BPHDecayToResTrkBuilder::recList
private

Definition at line 88 of file BPHDecayToResTrkBuilder.h.

Referenced by build().

◆ tCollection

const BPHRecoBuilder::BPHGenericCollection* BPHDecayToResTrkBuilder::tCollection
private

Definition at line 82 of file BPHDecayToResTrkBuilder.h.

Referenced by build().

◆ tknVeto

BPHParticleNeutralVeto* BPHDecayToResTrkBuilder::tknVeto
private

Definition at line 84 of file BPHDecayToResTrkBuilder.h.

Referenced by build(), and ~BPHDecayToResTrkBuilder().

◆ tMass

double BPHDecayToResTrkBuilder::tMass
private

Definition at line 79 of file BPHDecayToResTrkBuilder.h.

Referenced by build().

◆ tName

std::string BPHDecayToResTrkBuilder::tName
private

Definition at line 78 of file BPHDecayToResTrkBuilder.h.

Referenced by build().

◆ tSigma

double BPHDecayToResTrkBuilder::tSigma
private

Definition at line 80 of file BPHDecayToResTrkBuilder.h.

Referenced by build().

BPHParticleEtaSelect::setEtaMax
void setEtaMax(double eta)
set eta max
Definition: BPHParticleEtaSelect.h:50
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
BPHChi2Select::getProbMin
double getProbMin() const
get current prob min
Definition: BPHChi2Select.h:66
BPHParticlePtSelect::getPtMin
double getPtMin() const
get current pt min
Definition: BPHParticlePtSelect.h:56
BPHDecayToResTrkBuilder::tMass
double tMass
Definition: BPHDecayToResTrkBuilder.h:79
BPHDecayConstrainedBuilder::BPHDecayConstrainedBuilder
BPHDecayConstrainedBuilder(const edm::EventSetup &es, const std::string &resName, double resMass, double resWidth, const std::vector< BPHPlusMinusConstCandPtr > &resCollection)
Definition: BPHDecayConstrainedBuilder.cc:32
BPHParticleEtaSelect
Definition: BPHParticleEtaSelect.h:30
BPHDecayToResTrkBuilder::recList
std::vector< BPHRecoConstCandPtr > recList
Definition: BPHDecayToResTrkBuilder.h:88
BPHDecayGenericBuilder::massSel
BPHMassSelect * massSel
Definition: BPHDecayGenericBuilder.h:75
BPHDecayConstrainedBuilder::resoSel
BPHMassSelect * resoSel
Definition: BPHDecayConstrainedBuilder.h:75
BPHDecayConstrainedBuilder::rCollection
const std::vector< BPHPlusMinusConstCandPtr > * rCollection
Definition: BPHDecayConstrainedBuilder.h:73
BPHDecayGenericBuilder::updated
bool updated
Definition: BPHDecayGenericBuilder.h:80
PVValHelper::eta
Definition: PVValidationHelpers.h:70
BPHRecoBuilder
Definition: BPHRecoBuilder.h:50
BPHDecayToResTrkBuilder::tCollection
const BPHRecoBuilder::BPHGenericCollection * tCollection
Definition: BPHDecayToResTrkBuilder.h:82
BPHParticleNeutralVeto
Definition: BPHParticleNeutralVeto.h:30
BPHParticlePtSelect
Definition: BPHParticlePtSelect.h:30
BPHDecayGenericBuilder::evSetup
const edm::EventSetup * evSetup
Definition: BPHDecayGenericBuilder.h:73
BPHParticleEtaSelect::getEtaMax
double getEtaMax() const
get current eta max
Definition: BPHParticleEtaSelect.h:56
BPHDecayGenericBuilder::chi2Sel
BPHChi2Select * chi2Sel
Definition: BPHDecayGenericBuilder.h:76
BPHDecayGenericBuilder::minPDiff
double minPDiff
Definition: BPHDecayGenericBuilder.h:79
BPHDecayGenericBuilder::mFitSel
BPHMassFitSelect * mFitSel
Definition: BPHDecayGenericBuilder.h:77
BPHMassCuts::getMassMax
double getMassMax() const
Definition: BPHMassCuts.h:59
BPHDecayToResTrkBuilder::tName
std::string tName
Definition: BPHDecayToResTrkBuilder.h:78
BPHParticlePtSelect::setPtMin
void setPtMin(double pt)
set pt min
Definition: BPHParticlePtSelect.h:50
BPHDecayConstrainedBuilder::rName
std::string rName
Definition: BPHDecayConstrainedBuilder.h:69
BPHDecayToResTrkBuilder::etaSel
BPHParticleEtaSelect * etaSel
Definition: BPHDecayToResTrkBuilder.h:86
BPHRecoCandidate::build
static std::vector< BPHRecoConstCandPtr > build(const BPHRecoBuilder &builder, double mass=-1, double msig=-1)
Definition: BPHRecoCandidate.cc:43
BPHDecayToResTrkBuilder::ptSel
BPHParticlePtSelect * ptSel
Definition: BPHDecayToResTrkBuilder.h:85
BPHDecayToResTrkBuilder::tknVeto
BPHParticleNeutralVeto * tknVeto
Definition: BPHDecayToResTrkBuilder.h:84
BPHDecayToResTrkBuilder::tSigma
double tSigma
Definition: BPHDecayToResTrkBuilder.h:80