#include <BPHDecayMomentum.h>
Classes | |
struct | Component |
Public Member Functions | |
BPHDecayMomentum (const BPHDecayMomentum &x)=delete | |
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 |
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 BPHRecoConstCandPtr &comp) |
add a previously reconstructed particle giving it a name More... | |
virtual void | addP (const std::string &name, const reco::Candidate *daug, double mass=-1.0) |
BPHDecayMomentum () | |
BPHDecayMomentum (const std::map< std::string, Component > &daugMap) | |
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 |
virtual void | sumMomentum (const std::vector< const reco::Candidate * > dl) 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 |
Friends | |
class | BPHRecoBuilder |
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 53 of file BPHDecayMomentum.cc.
References dList, and dqmiodumpmetadata::n.
|
protected |
Definition at line 32 of file BPHDecayMomentum.cc.
References dList.
|
protected |
|
protected |
|
protectedvirtual |
add a previously reconstructed particle giving it a name
|
protectedvirtual |
add a simple particle giving it a name particles are cloned, eventually specifying a different mass
|
private |
Definition at line 154 of file BPHDecayMomentum.cc.
References reco::Candidate::begin(), clonesMap, AlCaHLTBitMon_QueryRunRegistry::comp, compList, dList, dMap, mps_splice::entry, mps_fire::i, EgHLTOffHistBins_cfi::mass, dqmiodumpmetadata::n, Skims_PA_cff::name, nList, and reco::Candidate::setMass().
|
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 71 of file BPHDecayMomentum.cc.
References nComp.
Referenced by BPHRecoCandidate::fill().
|
protected |
Definition at line 118 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 63 of file BPHDecayMomentum.cc.
References compCand, computeMomentum(), and oldMom.
Referenced by BPHPlusMinusCandidate::composite().
|
privatevirtual |
Definition at line 225 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 89 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 75 of file BPHDecayMomentum.cc.
References computeMomentum(), dFull, and oldMom.
Referenced by BPHKinematicFit::buildParticles(), and BPHDecayVertex::tTracks().
|
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 73 of file BPHDecayMomentum.cc.
References dList.
Referenced by BPHKinematicFit::addParticles(), BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHWriteSpecificDecay::fill(), BPHKinematicFit::fitMomentum(), and BPHPlusMinusCandidate::phiDiff().
|
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 69 of file BPHDecayMomentum.cc.
References nList.
Referenced by BPHRecoCandidate::fill().
|
private |
Definition at line 188 of file BPHDecayMomentum.cc.
References cList, clonesMap, cMap, AlCaHLTBitMon_QueryRunRegistry::comp, mps_splice::entry, mps_fire::i, dqmiodumpmetadata::n, and nComp.
|
protectedpure virtual |
Implemented in BPHRecoCandidate.
|
privatevirtual |
Definition at line 215 of file BPHDecayMomentum.cc.
References cList, dList, and dqmiodumpmetadata::n.
Referenced by computeMomentum().
|
virtual |
get a previously reconstructed particle from the name return null pointer if not found
Definition at line 106 of file BPHDecayMomentum.cc.
References cMap, AlCaHLTBitMon_QueryRunRegistry::comp, get, 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 94 of file BPHDecayMomentum.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, dMap, get, 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 82 of file BPHDecayMomentum.cc.
References clonesMap.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHWriteSpecificDecay::fill(), BPHRecoCandidate::fill(), BPHOniaToMuMuBuilder::getOriginalCandidate(), and BPHDecayVertex::tTracks().
|
protectedvirtual |
Reimplemented in BPHKinematicFit, BPHDecayVertex, BPHPlusMinusCandidate, and BPHPlusMinusVertex.
Definition at line 149 of file BPHDecayMomentum.cc.
References oldMom.
Referenced by BPHDecayVertex::setNotUpdated().
|
privatevirtual |
Definition at line 207 of file BPHDecayMomentum.cc.
References reco::CompositeCandidate::addDaughter(), compCand, and dqmiodumpmetadata::n.
Referenced by computeMomentum().
|
friend |
Definition at line 36 of file BPHDecayMomentum.h.
|
private |
Definition at line 143 of file BPHDecayMomentum.h.
Referenced by BPHPlusMinusCandidate::build(), BPHRecoCandidate::build(), daughComp(), dCompList(), BPHRecoCandidate::fill(), and fillDaug().
|
private |
Definition at line 151 of file BPHDecayMomentum.h.
Referenced by clonesList(), dCompList(), and originalReco().
|
private |
Definition at line 148 of file BPHDecayMomentum.h.
Referenced by BPHKinematicFit::BPHKinematicFit(), dCompList(), and getComp().
|
mutableprivate |
Definition at line 156 of file BPHDecayMomentum.h.
Referenced by composite(), BPHPlusMinusCandidate::composite(), computeMomentum(), and sumMomentum().
|
private |
Definition at line 134 of file BPHDecayMomentum.h.
Referenced by clonesList(), and componentList().
|
mutableprivate |
Definition at line 155 of file BPHDecayMomentum.h.
Referenced by computeMomentum(), and daughFull().
|
private |
Definition at line 142 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), clonesList(), daughters(), fillDaug(), and ~BPHDecayMomentum().
|
private |
Definition at line 147 of file BPHDecayMomentum.h.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), clonesList(), and getDaug().
|
private |
Definition at line 138 of file BPHDecayMomentum.h.
Referenced by compNames(), dCompList(), and BPHRecoCandidate::fill().
|
private |
Definition at line 137 of file BPHDecayMomentum.h.
Referenced by clonesList(), and daugNames().
|
mutableprivate |
Definition at line 154 of file BPHDecayMomentum.h.
Referenced by composite(), computeMomentum(), daughFull(), and setNotUpdated().