#include <BPHDecayMomentum.h>
Classes | |
struct | Component |
Public Member Functions | |
BPHDecayMomentum (const BPHDecayMomentum &x)=delete | |
const std::map< std::string, BPHRecoConstCandPtr > & | compMap () const |
virtual const std::vector< std::string > & | compNames () const |
virtual const pat::CompositeCandidate & | composite () const |
get a composite by the simple sum of simple particles More... | |
virtual const std::vector< BPHRecoConstCandPtr > & | daughComp () const |
virtual const std::vector< const reco::Candidate * > & | daughFull () const |
virtual const std::vector< const reco::Candidate * > & | daughters () const |
const std::map< std::string, const reco::Candidate * > & | daugMap () const |
virtual const std::vector< std::string > & | daugNames () const |
virtual BPHRecoConstCandPtr | getComp (const std::string &name) const |
virtual const reco::Candidate * | getDaug (const std::string &name) const |
BPHDecayMomentum & | operator= (const BPHDecayMomentum &x)=delete |
virtual const reco::Candidate * | originalReco (const reco::Candidate *daug) const |
get the original particle from the clone More... | |
virtual | ~BPHDecayMomentum () |
Protected Member Functions | |
virtual void | addP (const std::string &name, const reco::Candidate *daug, double mass=-1.0) |
virtual void | addP (const std::string &name, const BPHRecoConstCandPtr &comp) |
BPHDecayMomentum (int daugNum=2, int compNum=2) | |
BPHDecayMomentum (const std::map< std::string, Component > &daugMap, int compNum=2) | |
BPHDecayMomentum (const std::map< std::string, Component > &daugMap, const std::map< std::string, BPHRecoConstCandPtr > compMap) | |
const std::vector< Component > & | componentList () const |
virtual void | fill (BPHRecoCandidate *ptr, int level) const =0 |
virtual void | setNotUpdated () const |
Private Member Functions | |
void | clonesList (const std::map< std::string, Component > &daugMap) |
virtual void | computeMomentum () const |
void | dCompList () |
virtual void | fillDaug (std::vector< const reco::Candidate *> &ad, const std::string &name, std::vector< std::string > &an) const |
virtual void | sumMomentum (const std::vector< const reco::Candidate *> &dl, const std::vector< std::string > &dn) const |
Private Attributes | |
std::vector< BPHRecoConstCandPtr > | cList |
std::map< const reco::Candidate *, const reco::Candidate * > | clonesMap |
std::map< std::string, BPHRecoConstCandPtr > | cMap |
pat::CompositeCandidate | compCand |
std::vector< Component > | compList |
std::vector< const reco::Candidate * > | dFull |
std::vector< const reco::Candidate * > | dList |
std::map< std::string, const reco::Candidate * > | dMap |
std::vector< std::string > | nComp |
std::vector< std::string > | nList |
bool | oldMom |
Description: Lowest-level base class to contain decay products and compute total momentum
Definition at line 35 of file BPHDecayMomentum.h.
|
delete |
Constructors are protected this object can exist only as part of a derived class
|
virtual |
Destructor
Definition at line 61 of file BPHDecayMomentum.cc.
References dList, and dqmiodumpmetadata::n.
|
protected |
Definition at line 32 of file BPHDecayMomentum.cc.
References cList, dList, nComp, and nList.
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
private |
Definition at line 162 of file BPHDecayMomentum.cc.
References clonesMap, AlCaHLTBitMon_QueryRunRegistry::comp, compList, daugMap(), dList, dMap, mps_splice::entry, mps_fire::i, EgHLTOffHistBins_cfi::mass, dqmiodumpmetadata::n, Skims_PA_cff::name, nList, and reco::Candidate::setMass().
|
inline |
Definition at line 100 of file BPHDecayMomentum.h.
References cMap.
|
virtual |
get the list of names of previously reconstructed particles e.g. in JPsi -> mu+mu- returns an empty list in B+ -> JPsi K+ returns the name used for the JPsi in Bs -> JPsi Phi returns the two names used for JPsi and Phi
Definition at line 79 of file BPHDecayMomentum.cc.
References nComp.
Referenced by BPHRecoCandidate::fill().
|
protected |
Definition at line 126 of file BPHDecayMomentum.cc.
References compList.
Referenced by BPHDecayVertex::BPHDecayVertex(), and BPHKinematicFit::BPHKinematicFit().
|
virtual |
get a composite by the simple sum of simple particles
Operations
Reimplemented in BPHPlusMinusCandidate.
Definition at line 71 of file BPHDecayMomentum.cc.
References compCand, computeMomentum(), and oldMom.
Referenced by BPHPlusMinusCandidate::composite().
|
privatevirtual |
Definition at line 237 of file BPHDecayMomentum.cc.
References reco::CompositeCandidate::clearDaughters(), compCand, dFull, fillDaug(), oldMom, AddFourMomenta::set(), and sumMomentum().
Referenced by composite(), and daughFull().
|
virtual |
get the list of previously reconstructed particles e.g. in JPsi -> mu+mu- returns an empty list in B+ -> JPsi K+ returns the JPsi in Bs -> JPsi Phi returns the JPsi and Phi
Definition at line 97 of file BPHDecayMomentum.cc.
References cList.
Referenced by BPHKinematicFit::addParticles(), BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), and BPHKinematicFit::fitMomentum().
|
virtual |
get the full list of simple particles produced in the decay, directly or through cascade decays e.g. in B+ -> JPsi K+ ; JPsi -> mu+mu- returns the mu+, mu-, K+ in Bs -> JPsi Phi; JPsi -> mu+mu-; Phi -> K+K- returns the mu+, mu-, K+, K- (clones are actually returned)
Definition at line 83 of file BPHDecayMomentum.cc.
References computeMomentum(), dFull, and oldMom.
Referenced by BPHKinematicFit::buildParticles(), BPHDecayVertex::fTracks(), and BPHDecayVertex::fTTracks().
|
virtual |
get the list of simple particles directly produced in the decay e.g. in JPsi -> mu+mu- returns the two muons in B+ -> JPsi K+ returns the K+ in Bs -> JPsi Phi returns an empty list (clones are actually returned)
Definition at line 81 of file BPHDecayMomentum.cc.
References dList.
Referenced by BPHKinematicFit::addParticles(), BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHWriteSpecificDecay::fill(), BPHKinematicFit::fitMomentum(), and BPHPlusMinusCandidate::phiDiff().
|
inline |
Definition at line 98 of file BPHDecayMomentum.h.
References dMap.
Referenced by clonesList().
|
virtual |
get the list of names of simple particles directly produced in the decay e.g. in JPsi -> mu+mu- returns the two names used for muons in B+ -> JPsi K+ returns the name used for the K+ in Bs -> JPsi Phi returns an empty list
Definition at line 77 of file BPHDecayMomentum.cc.
References nList.
Referenced by BPHRecoCandidate::fill().
|
private |
Definition at line 196 of file BPHDecayMomentum.cc.
References cList, clonesMap, cMap, AlCaHLTBitMon_QueryRunRegistry::comp, mps_fire::i, dqmiodumpmetadata::n, and nComp.
|
protectedpure virtual |
Implemented in BPHRecoCandidate.
|
privatevirtual |
Definition at line 223 of file BPHDecayMomentum.cc.
References cList, dList, dqmiodumpmetadata::n, Skims_PA_cff::name, nComp, and nList.
Referenced by computeMomentum().
|
virtual |
get a previously reconstructed particle from the name return null pointer if not found
Definition at line 114 of file BPHDecayMomentum.cc.
References cMap, AlCaHLTBitMon_QueryRunRegistry::comp, and Skims_PA_cff::name.
Referenced by BPHRecoCandidate::fill(), getDaug(), BPHKinematicFit::getIndependentFit(), BPHKinematicFit::setIndependentFit(), BPHKinematicFit::splitKP(), and BPHWriteSpecificDecay::write().
|
virtual |
get a simple particle from the name return null pointer if not found
Definition at line 102 of file BPHDecayMomentum.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, dMap, getComp(), and Skims_PA_cff::name.
Referenced by BPHWriteSpecificDecay::fill(), BPHRecoCandidate::fill(), and BPHOniaToMuMuBuilder::getOriginalCandidate().
|
delete |
|
virtual |
get the original particle from the clone
Definition at line 90 of file BPHDecayMomentum.cc.
References clonesMap.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHWriteSpecificDecay::fill(), BPHRecoCandidate::fill(), BPHDecayVertex::fTracks(), and BPHOniaToMuMuBuilder::getOriginalCandidate().
|
protectedvirtual |
Reimplemented in BPHKinematicFit, BPHDecayVertex, BPHPlusMinusCandidate, and BPHPlusMinusVertex.
Definition at line 157 of file BPHDecayMomentum.cc.
References oldMom.
Referenced by BPHDecayVertex::setNotUpdated().
|
privatevirtual |
Definition at line 215 of file BPHDecayMomentum.cc.
References reco::CompositeCandidate::addDaughter(), compCand, and dqmiodumpmetadata::n.
Referenced by computeMomentum().
|
private |
Definition at line 145 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), BPHRecoCandidate::build(), daughComp(), dCompList(), BPHRecoCandidate::fill(), and fillDaug().
|
private |
Definition at line 153 of file BPHDecayMomentum.h.
Referenced by clonesList(), dCompList(), and originalReco().
|
private |
Definition at line 150 of file BPHDecayMomentum.h.
Referenced by BPHKinematicFit::BPHKinematicFit(), compMap(), dCompList(), and getComp().
|
mutableprivate |
Definition at line 158 of file BPHDecayMomentum.h.
Referenced by composite(), BPHPlusMinusCandidate::composite(), computeMomentum(), and sumMomentum().
|
private |
Definition at line 136 of file BPHDecayMomentum.h.
Referenced by clonesList(), and componentList().
|
mutableprivate |
Definition at line 157 of file BPHDecayMomentum.h.
Referenced by computeMomentum(), and daughFull().
|
private |
Definition at line 144 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), clonesList(), daughters(), fillDaug(), and ~BPHDecayMomentum().
|
private |
Definition at line 149 of file BPHDecayMomentum.h.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), clonesList(), daugMap(), and getDaug().
|
private |
Definition at line 140 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), compNames(), dCompList(), BPHRecoCandidate::fill(), and fillDaug().
|
private |
Definition at line 139 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), clonesList(), daugNames(), and fillDaug().
|
mutableprivate |
Definition at line 156 of file BPHDecayMomentum.h.
Referenced by composite(), computeMomentum(), daughFull(), and setNotUpdated().