#include <BPHDecayMomentum.h>
Classes | |
struct | Component |
Public Member Functions | |
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 |
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) |
add a previously reconstructed particle giving it a name More... | |
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 | 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 36 of file BPHDecayMomentum.h.
|
virtual |
Constructors are protected this object can exist only as part of a derived classDestructor
Definition at line 64 of file BPHDecayMomentum.cc.
|
protected |
Definition at line 35 of file BPHDecayMomentum.cc.
References clonesList(), cMap, dCompList(), dList, and oldMom.
|
protected |
|
protected |
|
protectedvirtual |
add a simple particle giving it a name particles are cloned, eventually specifying a different mass
Referenced by componentList().
|
protectedvirtual |
add a previously reconstructed particle giving it a name
|
private |
Definition at line 190 of file BPHDecayMomentum.cc.
References reco::Candidate::begin(), BPHDecayMomentum::Component::cand, reco::Candidate::clone(), clonesMap, AlCaHLTBitMon_QueryRunRegistry::comp, compList, dList, dMap, mps_splice::entry, mps_fire::i, ResonanceBuilder::mass, BPHDecayMomentum::Component::mass, gen::n, dataset::name, nList, and reco::Candidate::setMass().
Referenced by BPHDecayMomentum().
|
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 84 of file BPHDecayMomentum.cc.
References nComp.
|
protected |
Definition at line 147 of file BPHDecayMomentum.cc.
References addP(), cList, reco::Candidate::clone(), clonesMap, cMap, AlCaHLTBitMon_QueryRunRegistry::comp, compList, dList, dMap, ResonanceBuilder::mass, dataset::name, nComp, nList, reco::Candidate::setMass(), and setNotUpdated().
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 73 of file BPHDecayMomentum.cc.
References compCand, computeMomentum(), and oldMom.
Referenced by BPHPlusMinusCandidate::composite(), and BPHMassSelect::~BPHMassSelect().
|
privatevirtual |
Definition at line 263 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 111 of file BPHDecayMomentum.cc.
References cList.
Referenced by 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 94 of file BPHDecayMomentum.cc.
References computeMomentum(), dFull, and oldMom.
Referenced by BPHKinematicFit::buildParticles(), BPHKinematicFit::kinematicTree(), BPHKinematicFit::kinParticles(), 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 89 of file BPHDecayMomentum.cc.
References dList.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHPlusMinusVertex::cAppInRPhi(), BPHWriteSpecificDecay::fill(), BPHKinematicFit::fitMomentum(), BPHKinematicFit::p4(), BPHPlusMinusCandidate::phiDiff(), and BPHPlusMinusCandidate::~BPHPlusMinusCandidate().
|
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 79 of file BPHDecayMomentum.cc.
References nList.
Referenced by BPHKinematicFit::kinematicTree().
|
private |
Definition at line 224 of file BPHDecayMomentum.cc.
References cList, clonesMap, cMap, AlCaHLTBitMon_QueryRunRegistry::comp, mps_splice::entry, mps_fire::i, gen::n, and nComp.
Referenced by BPHDecayMomentum().
|
privatevirtual |
Definition at line 253 of file BPHDecayMomentum.cc.
References cList, dList, and gen::n.
Referenced by computeMomentum().
|
virtual |
get a previously reconstructed particle from the name return null pointer if not found
Definition at line 132 of file BPHDecayMomentum.cc.
References cMap, AlCaHLTBitMon_QueryRunRegistry::comp, getComp(), genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getComp(), getDaug(), and BPHKinematicFit::kinematicTree().
|
virtual |
get a simple particle from the name return null pointer if not found
Definition at line 117 of file BPHDecayMomentum.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, dMap, getComp(), getDaug(), genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BPHKx0ToKPiBuilder::build(), BPHWriteSpecificDecay::fill(), getDaug(), BPHOniaToMuMuBuilder::getOriginalCandidate(), BPHKinematicFit::kinParticles(), and BPHMassSymSelect::~BPHMassSymSelect().
|
virtual |
get the original particle from the clone
Definition at line 101 of file BPHDecayMomentum.cc.
References clonesMap, and genParticles_cff::map.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), BPHKx0ToKPiBuilder::build(), BPHWriteSpecificDecay::fill(), BPHOniaToMuMuBuilder::getOriginalCandidate(), and BPHMassSymSelect::~BPHMassSymSelect().
|
protectedvirtual |
Reimplemented in BPHKinematicFit, BPHDecayVertex, BPHPlusMinusCandidate, and BPHPlusMinusVertex.
Definition at line 184 of file BPHDecayMomentum.cc.
References oldMom.
Referenced by componentList(), and BPHDecayVertex::setNotUpdated().
|
privatevirtual |
Definition at line 244 of file BPHDecayMomentum.cc.
References reco::CompositeCandidate::addDaughter(), compCand, and gen::n.
Referenced by computeMomentum().
|
friend |
Definition at line 38 of file BPHDecayMomentum.h.
|
private |
Definition at line 144 of file BPHDecayMomentum.h.
Referenced by BPHPlusMinusCandidate::build(), BPHRecoCandidate::build(), componentList(), daughComp(), dCompList(), and fillDaug().
|
private |
Definition at line 152 of file BPHDecayMomentum.h.
Referenced by clonesList(), componentList(), dCompList(), and originalReco().
|
private |
Definition at line 149 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), componentList(), dCompList(), and getComp().
|
mutableprivate |
Definition at line 157 of file BPHDecayMomentum.h.
Referenced by composite(), BPHPlusMinusCandidate::composite(), computeMomentum(), and sumMomentum().
|
private |
Definition at line 135 of file BPHDecayMomentum.h.
Referenced by clonesList(), componentList(), and BPHPlusMinusCandidate::setNotUpdated().
|
mutableprivate |
Definition at line 156 of file BPHDecayMomentum.h.
Referenced by computeMomentum(), and daughFull().
|
private |
Definition at line 143 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), clonesList(), componentList(), daughters(), fillDaug(), and ~BPHDecayMomentum().
|
private |
Definition at line 148 of file BPHDecayMomentum.h.
Referenced by BPHDecayVertex::BPHDecayVertex(), BPHKinematicFit::BPHKinematicFit(), clonesList(), componentList(), getDaug(), and BPHKinematicFit::p4().
|
private |
Definition at line 139 of file BPHDecayMomentum.h.
Referenced by compNames(), componentList(), and dCompList().
|
private |
Definition at line 138 of file BPHDecayMomentum.h.
Referenced by clonesList(), componentList(), and daugNames().
|
mutableprivate |
Definition at line 155 of file BPHDecayMomentum.h.
Referenced by BPHDecayMomentum(), composite(), computeMomentum(), daughFull(), and setNotUpdated().