CMS 3D CMS Logo

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

#include <BPHDecayToV0SameMassBuilder.h>

Inheritance diagram for BPHDecayToV0SameMassBuilder:
BPHDecayToV0Builder BPHDecayGenericBuilder BPHK0sToPiPiBuilder

Public Member Functions

 BPHDecayToV0SameMassBuilder (const BPHDecayToV0SameMassBuilder &x)=delete
 
 BPHDecayToV0SameMassBuilder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, double dMass, double dSigma, const BPHRecoBuilder::BPHGenericCollection *d1Collection, const BPHRecoBuilder::BPHGenericCollection *d2Collection)
 
 BPHDecayToV0SameMassBuilder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, double dMass, double dSigma, const std::vector< reco::VertexCompositeCandidate > *v0Collection, const std::string &searchList="cfp")
 
 BPHDecayToV0SameMassBuilder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, double dMass, double dSigma, const std::vector< reco::VertexCompositePtrCandidate > *vpCollection, const std::string &searchList="cfp")
 
BPHDecayToV0SameMassBuilderoperator= (const BPHDecayToV0SameMassBuilder &x)=delete
 
 ~BPHDecayToV0SameMassBuilder () override
 
- Public Member Functions inherited from BPHDecayToV0Builder
 BPHDecayToV0Builder (const BPHDecayToV0Builder &x)=delete
 
 BPHDecayToV0Builder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const BPHRecoBuilder::BPHGenericCollection *d1Collection, const BPHRecoBuilder::BPHGenericCollection *d2Collection)
 
 BPHDecayToV0Builder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const std::vector< reco::VertexCompositeCandidate > *v0Collection, const std::string &searchList="cfp")
 
 BPHDecayToV0Builder (const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const std::vector< reco::VertexCompositePtrCandidate > *vpCollection, const std::string &searchList="cfp")
 
std::vector< BPHPlusMinusConstCandPtrbuild ()
 build candidates More...
 
double getEtaMax () const
 
double getPtMin () const
 get current cuts More...
 
BPHDecayToV0Builderoperator= (const BPHDecayToV0Builder &x)=delete
 
void setEtaMax (double eta)
 
void setPtMin (double pt)
 set cuts More...
 
 ~BPHDecayToV0Builder () 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 ()
 

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 Attributes

double pMass
 
double pSigma
 
- Protected Attributes inherited from BPHDecayToV0Builder
std::vector< BPHPlusMinusConstCandPtrcList
 
double etaMax
 
const BPHRecoBuilder::BPHGenericCollectionp1Collection
 
std::string p1Name
 
const BPHRecoBuilder::BPHGenericCollectionp2Collection
 
std::string p2Name
 
double ptMin
 
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 BPHDecayGenericBuilder
BPHChi2Selectchi2Sel
 
const edm::EventSetupevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool updated
 

Additional Inherited Members

- Public Types inherited from BPHDecayToV0Builder
enum  v0Type { VertexCompositeCandidate, VertexCompositePtrCandidate }
 

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 39 of file BPHDecayToV0SameMassBuilder.h.

Constructor & Destructor Documentation

◆ BPHDecayToV0SameMassBuilder() [1/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const edm::EventSetup es,
const std::string &  d1Name,
const std::string &  d2Name,
double  dMass,
double  dSigma,
const BPHRecoBuilder::BPHGenericCollection d1Collection,
const BPHRecoBuilder::BPHGenericCollection d2Collection 
)

Constructor

Definition at line 34 of file BPHDecayToV0SameMassBuilder.cc.

41  : BPHDecayToV0Builder(es, d1Name, d2Name, d1Collection, d2Collection), pMass(dMass), pSigma(dSigma) {}

◆ BPHDecayToV0SameMassBuilder() [2/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const edm::EventSetup es,
const std::string &  d1Name,
const std::string &  d2Name,
double  dMass,
double  dSigma,
const std::vector< reco::VertexCompositeCandidate > *  v0Collection,
const std::string &  searchList = "cfp" 
)

Definition at line 43 of file BPHDecayToV0SameMassBuilder.cc.

50  : BPHDecayToV0Builder(es, d1Name, d2Name, v0Collection, searchList), pMass(dMass), pSigma(dSigma) {}

◆ BPHDecayToV0SameMassBuilder() [3/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const edm::EventSetup es,
const std::string &  d1Name,
const std::string &  d2Name,
double  dMass,
double  dSigma,
const std::vector< reco::VertexCompositePtrCandidate > *  vpCollection,
const std::string &  searchList = "cfp" 
)

Definition at line 52 of file BPHDecayToV0SameMassBuilder.cc.

60  : BPHDecayToV0Builder(es, d1Name, d2Name, vpCollection, searchList), pMass(dMass), pSigma(dSigma) {}

◆ BPHDecayToV0SameMassBuilder() [4/4]

BPHDecayToV0SameMassBuilder::BPHDecayToV0SameMassBuilder ( const BPHDecayToV0SameMassBuilder x)
delete

◆ ~BPHDecayToV0SameMassBuilder()

BPHDecayToV0SameMassBuilder::~BPHDecayToV0SameMassBuilder ( )
override

Destructor

Definition at line 65 of file BPHDecayToV0SameMassBuilder.cc.

65 {}

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 83 of file BPHDecayToV0SameMassBuilder.cc.

86  {
88  if (c1->charge() > 0) {
89  cand->add(p1Name, c1, pMass, pSigma);
90  cand->add(p2Name, c2, pMass, pSigma);
91  } else {
92  cand->add(p1Name, c2, pMass, pSigma);
93  cand->add(p2Name, c1, pMass, pSigma);
94  }
95  return cand;
96 }

References alignmentValidation::c1, BPHGenericPtr< T >::create(), BPHDecayGenericBuilder::evSetup, BPHDecayToV0Builder::p1Name, BPHDecayToV0Builder::p2Name, pMass, and pSigma.

◆ buildFromBPHGenericCollection()

void BPHDecayToV0SameMassBuilder::buildFromBPHGenericCollection ( )
overrideprotectedvirtual

◆ operator=()

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

Member Data Documentation

◆ pMass

double BPHDecayToV0SameMassBuilder::pMass
protected

Definition at line 74 of file BPHDecayToV0SameMassBuilder.h.

Referenced by buildCandidate(), and buildFromBPHGenericCollection().

◆ pSigma

double BPHDecayToV0SameMassBuilder::pSigma
protected

Definition at line 75 of file BPHDecayToV0SameMassBuilder.h.

Referenced by buildCandidate(), and buildFromBPHGenericCollection().

BPHDecayToV0Builder::p2Name
std::string p2Name
Definition: BPHDecayToV0Builder.h:92
BPHDecayGenericBuilder::getMassMax
double getMassMax() const
Definition: BPHDecayGenericBuilder.h:63
BPHDecayToV0Builder::BPHDecayToV0Builder
BPHDecayToV0Builder(const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const BPHRecoBuilder::BPHGenericCollection *d1Collection, const BPHRecoBuilder::BPHGenericCollection *d2Collection)
Definition: BPHDecayToV0Builder.cc:35
BPHPlusMinusCandidatePtr
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
Definition: BPHPlusMinusCandidatePtr.h:7
BPHDecayToV0Builder::p1Name
std::string p1Name
Definition: BPHDecayToV0Builder.h:91
BPHDecayToV0SameMassBuilder::pMass
double pMass
Definition: BPHDecayToV0SameMassBuilder.h:74
BPHDecayToV0Builder::ptMin
double ptMin
Definition: BPHDecayToV0Builder.h:100
b
double b
Definition: hdecay.h:118
BPHDecayGenericBuilder::getProbMin
double getProbMin() const
Definition: BPHDecayGenericBuilder.h:64
BPHDecayGenericBuilder::evSetup
const edm::EventSetup * evSetup
Definition: BPHDecayGenericBuilder.h:73
BPHDecayToV0Builder::p1Collection
const BPHRecoBuilder::BPHGenericCollection * p1Collection
Definition: BPHDecayToV0Builder.h:94
cand
Definition: decayParser.h:32
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
newFWLiteAna.searchList
searchList
Definition: newFWLiteAna.py:119
BPHDecayToV0Builder::p2Collection
const BPHRecoBuilder::BPHGenericCollection * p2Collection
Definition: BPHDecayToV0Builder.h:95
BPHDecayToV0Builder::etaMax
double etaMax
Definition: BPHDecayToV0Builder.h:101
BPHDecayToV0Builder::cList
std::vector< BPHPlusMinusConstCandPtr > cList
Definition: BPHDecayToV0Builder.h:89
BPHDecayToChargedXXbarBuilder
Definition: BPHDecayToChargedXXbarBuilder.h:42
BPHDecayToV0SameMassBuilder::pSigma
double pSigma
Definition: BPHDecayToV0SameMassBuilder.h:75
BPHGenericPtr::create
static type create(Args &&... args)
Definition: BPHGenericPtr.h:10
BPHDecayGenericBuilder::getMassMin
double getMassMin() const
get current cuts
Definition: BPHDecayGenericBuilder.h:62