CMS 3D CMS Logo

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

#include <BPHDecayToV0SameMassBuilder.h>

Inheritance diagram for BPHDecayToV0SameMassBuilder:
BPHDecayToV0Builder BPHDecayToChargedXXbarBuilder BPHDecayGenericBuilderBase BPHDecayGenericBuilder< BPHPlusMinusCandidate > BPHDecayGenericBuilderBase BPHDecayGenericBuilder< BPHPlusMinusCandidate > BPHDecayGenericBuilderBase BPHDecayGenericBuilderBase BPHK0sToPiPiBuilder

Public Member Functions

 BPHDecayToV0SameMassBuilder (const BPHEventSetupWrapper &es, const std::string &posName, const std::string &negName, double daugMass, double daugSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
 
 BPHDecayToV0SameMassBuilder (const BPHEventSetupWrapper &es, const std::string &posName, const std::string &negName, double daugMass, double daugSigma, const std::vector< reco::VertexCompositeCandidate > *v0Collection, const std::string &searchList="cfp")
 
 BPHDecayToV0SameMassBuilder (const BPHEventSetupWrapper &es, const std::string &posName, const std::string &negName, double daugMass, double daugSigma, const std::vector< reco::VertexCompositePtrCandidate > *vpCollection, const std::string &searchList="cfp")
 
 BPHDecayToV0SameMassBuilder (const BPHDecayToV0SameMassBuilder &x)=delete
 
BPHDecayToV0SameMassBuilderoperator= (const BPHDecayToV0SameMassBuilder &x)=delete
 
 ~BPHDecayToV0SameMassBuilder () override=default
 
- Public Member Functions inherited from BPHDecayToV0Builder
 BPHDecayToV0Builder (const BPHEventSetupWrapper &es, const std::string &daug1Name, const std::string &daug2Name, const BPHRecoBuilder::BPHGenericCollection *daug1Collection, const BPHRecoBuilder::BPHGenericCollection *daug2Collection)
 
 BPHDecayToV0Builder (const BPHEventSetupWrapper &es, const std::string &daug1Name, const std::string &daug2Name, const std::vector< reco::VertexCompositeCandidate > *v0Collection, const std::string &searchList="cfp")
 
 BPHDecayToV0Builder (const BPHEventSetupWrapper &es, const std::string &daug1Name, const std::string &daug2Name, const std::vector< reco::VertexCompositePtrCandidate > *vpCollection, const std::string &searchList="cfp")
 
 BPHDecayToV0Builder (const BPHDecayToV0Builder &x)=delete
 
BPHDecayToV0Builderoperator= (const BPHDecayToV0Builder &x)=delete
 
 ~BPHDecayToV0Builder () 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< BPHPlusMinusCandidate >
 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 BPHDecayToChargedXXbarBuilder
 BPHDecayToChargedXXbarBuilder (const BPHEventSetupWrapper &es, const std::string &dPosName, const std::string &dNegName, double daugMass, double daugSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
 
 BPHDecayToChargedXXbarBuilder (const BPHDecayToChargedXXbarBuilder &x)=delete
 
double getDzMax () const
 
double getEtaMax () const
 
double getPtMin () const
 get current cuts More...
 
BPHDecayToChargedXXbarBuilderoperator= (const BPHDecayToChargedXXbarBuilder &x)=delete
 
void setDzMax (double dz)
 
void setEtaMax (double eta)
 
void setPtMin (double pt)
 set cuts More...
 
 ~BPHDecayToChargedXXbarBuilder () override=default
 

Protected Member Functions

BPHPlusMinusCandidatePtr buildCandidate (const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type) override
 
void buildFromBPHGenericCollection () override
 build candidates and link to V0 More...
 
- Protected Member Functions inherited from BPHDecayToV0Builder
template<class T >
void buildFromV0 (const T *v0Collection, v0Type type)
 
void v0Clear ()
 
- Protected Member Functions inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
 BPHDecayGenericBuilder ()
 

Protected Attributes

double pMass
 
double pSigma
 
- Protected Attributes inherited from BPHDecayToV0Builder
const BPHRecoBuilder::BPHGenericCollectionp1Collection
 
std::string p1Name
 
const BPHRecoBuilder::BPHGenericCollectionp2Collection
 
std::string p2Name
 
const std::vector< reco::VertexCompositePtrCandidate > * rCollection
 
std::string sList
 
std::map< const BPHRecoCandidate *, const V0Info * > v0Map
 
const std::vector< reco::VertexCompositeCandidate > * vCollection
 
- Protected Attributes inherited from BPHDecayGenericBuilderBase
BPHChi2Selectchi2Sel
 
const BPHEventSetupWrapperevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool outdated
 
- Protected Attributes inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
std::vector< prod_ptrrecList
 
- Protected Attributes inherited from BPHDecayToChargedXXbarBuilder
double dMass
 
double dSigma
 
double dzMax
 
double etaMax
 
const BPHRecoBuilder::BPHGenericCollectionnCollection
 
std::string nName
 
const BPHRecoBuilder::BPHGenericCollectionpCollection
 
std::string pName
 
double ptMin
 

Private Member Functions

void fillRecList () override
 build candidates More...
 

Additional Inherited Members

- Public Types inherited from BPHDecayToV0Builder
enum  v0Type { VertexCompositeCandidate, VertexCompositePtrCandidate }
 
- Public Types inherited from BPHDecayGenericBuilder< BPHPlusMinusCandidate >
typedef BPHPlusMinusCandidate ::const_pointer prod_ptr
 

Detailed Description

Description: Class to build neutral particles decaying to a V0, with daughters having same mass, starting from reco::Candidates or already reconstructed V0s

Author
Paolo Ronchese INFN Padova

Definition at line 40 of file BPHDecayToV0SameMassBuilder.h.

Constructor & Destructor Documentation

◆ BPHDecayToV0SameMassBuilder() [1/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const BPHEventSetupWrapper es,
const std::string &  posName,
const std::string &  negName,
double  daugMass,
double  daugSigma,
const BPHRecoBuilder::BPHGenericCollection posCollection,
const BPHRecoBuilder::BPHGenericCollection negCollection 
)

Constructor

◆ BPHDecayToV0SameMassBuilder() [2/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const BPHEventSetupWrapper es,
const std::string &  posName,
const std::string &  negName,
double  daugMass,
double  daugSigma,
const std::vector< reco::VertexCompositeCandidate > *  v0Collection,
const std::string &  searchList = "cfp" 
)

◆ BPHDecayToV0SameMassBuilder() [3/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const BPHEventSetupWrapper es,
const std::string &  posName,
const std::string &  negName,
double  daugMass,
double  daugSigma,
const std::vector< reco::VertexCompositePtrCandidate > *  vpCollection,
const std::string &  searchList = "cfp" 
)

◆ BPHDecayToV0SameMassBuilder() [4/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const BPHDecayToV0SameMassBuilder x)
delete

◆ ~BPHDecayToV0SameMassBuilder()

BPHDecayToV0SameMassBuilder::~BPHDecayToV0SameMassBuilder ( )
overridedefault

Destructor

Member Function Documentation

◆ buildCandidate()

BPHPlusMinusCandidatePtr BPHDecayToV0SameMassBuilder::buildCandidate ( const reco::Candidate c1,
const reco::Candidate c2,
const void *  v0,
v0Type  type 
)
overrideprotectedvirtual

Implements BPHDecayToV0Builder.

Definition at line 81 of file BPHDecayToV0SameMassBuilder.cc.

References alignmentValidation::c1, BPHGenericPtr< T >::create(), BPHDecayToChargedXXbarBuilder::etaMax, BPHDecayGenericBuilderBase::evSetup, BPHDecayToV0Builder::p1Name, BPHDecayToV0Builder::p2Name, reco::Candidate::p4(), pMass, pSigma, and BPHDecayToChargedXXbarBuilder::ptMin.

84  {
85  if (c1->p4().pt() < ptMin)
86  return nullptr;
87  if (c2->p4().pt() < ptMin)
88  return nullptr;
89  if (fabs(c1->p4().eta()) > etaMax)
90  return nullptr;
91  if (fabs(c2->p4().eta()) > etaMax)
92  return nullptr;
94  if (c1->charge() > 0) {
95  cand->add(p1Name, c1, pMass, pSigma);
96  cand->add(p2Name, c2, pMass, pSigma);
97  } else {
98  cand->add(p1Name, c2, pMass, pSigma);
99  cand->add(p2Name, c1, pMass, pSigma);
100  }
101  return cand;
102 }
const BPHEventSetupWrapper * evSetup
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
static type create(Args &&... args)
Definition: BPHGenericPtr.h:10
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector

◆ buildFromBPHGenericCollection()

void BPHDecayToV0SameMassBuilder::buildFromBPHGenericCollection ( )
overrideprotectedvirtual

build candidates and link to V0

Implements BPHDecayToV0Builder.

Definition at line 76 of file BPHDecayToV0SameMassBuilder.cc.

References BPHDecayToChargedXXbarBuilder::fillRecList().

76  {
78  return;
79 }
void fillRecList() override
build candidates

◆ fillRecList()

void BPHDecayToV0SameMassBuilder::fillRecList ( )
inlineoverrideprivatevirtual

build candidates

Reimplemented from BPHDecayToChargedXXbarBuilder.

Definition at line 87 of file BPHDecayToV0SameMassBuilder.h.

References BPHDecayToV0Builder::fillRecList().

void fillRecList() override
build candidates

◆ operator=()

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

Member Data Documentation

◆ pMass

double BPHDecayToV0SameMassBuilder::pMass
protected

Definition at line 75 of file BPHDecayToV0SameMassBuilder.h.

Referenced by buildCandidate().

◆ pSigma

double BPHDecayToV0SameMassBuilder::pSigma
protected

Definition at line 76 of file BPHDecayToV0SameMassBuilder.h.

Referenced by buildCandidate().