#include <BPHRecoCandidate.h>
Classes | |
struct | BuilderParameters |
Public Types | |
typedef BPHRecoConstCandPtr | const_pointer |
enum | esType { transientTrackBuilder } |
typedef BPHRecoCandidatePtr | pointer |
Public Member Functions | |
virtual void | add (const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) |
virtual void | add (const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass=-1.0, double sigma=-1.0) |
virtual void | add (const std::string &name, const BPHRecoConstCandPtr &comp) |
BPHRecoCandidate (const BPHEventSetupWrapper *es, int daugNum=2, int compNum=2) | |
BPHRecoCandidate (const BPHEventSetupWrapper *es, const BPHRecoBuilder::ComponentSet &compSet) | |
create an object with daughters as specified in the ComponentSet More... | |
BPHRecoCandidate (const BPHRecoCandidate &x)=delete | |
virtual BPHRecoCandidate * | clone (int level=-1) const |
BPHRecoCandidate & | operator= (const BPHRecoCandidate &x)=delete |
~BPHRecoCandidate () override=default | |
Public Member Functions inherited from BPHKinematicFit | |
BPHKinematicFit (const BPHKinematicFit &x)=delete | |
double | constrMass () const |
retrieve the constraint More... | |
double | constrSigma () const |
virtual const RefCountedKinematicVertex | currentDecayVertex () const |
virtual const RefCountedKinematicParticle | currentParticle () const |
get current particle More... | |
bool | getIndependentFit (const std::string &name, double &mass, double &sigma) const |
retrieve independent fit flag More... | |
double | getMassSigma (const reco::Candidate *cand) const |
retrieve particle mass sigma More... | |
virtual bool | isEmpty () const |
get fit status More... | |
virtual bool | isValidFit () const |
virtual const RefCountedKinematicTree & | kinematicTree () const |
perform the kinematic fit and get the result More... | |
virtual const RefCountedKinematicTree & | kinematicTree (const std::string &name, double mass, double sigma) const |
virtual const RefCountedKinematicTree & | kinematicTree (const std::string &name, double mass) const |
virtual const RefCountedKinematicTree & | kinematicTree (const std::string &name) const |
virtual const RefCountedKinematicTree & | kinematicTree (const std::string &name, KinematicConstraint *kc) const |
virtual const RefCountedKinematicTree & | kinematicTree (const std::string &name, MultiTrackKinematicConstraint *kc) const |
virtual const std::vector< RefCountedKinematicParticle > & | kinParticles () const |
get kinematic particles More... | |
virtual std::vector< RefCountedKinematicParticle > | kinParticles (const std::vector< std::string > &names) const |
virtual ParticleMass | mass () const |
BPHKinematicFit & | operator= (const BPHKinematicFit &x)=delete |
virtual const math::XYZTLorentzVector & | p4 () const |
compute total momentum after the fit More... | |
virtual void | resetKinematicFit () const |
reset the kinematic fit More... | |
void | setConstraint (double mass, double sigma) |
apply a mass constraint More... | |
void | setIndependentFit (const std::string &name, bool flag=true, double mass=-1.0, double sigma=-1.0) |
set a decaying daughter as an unique particle fitted independently More... | |
virtual const RefCountedKinematicVertex | topDecayVertex () const |
virtual const RefCountedKinematicParticle | topParticle () const |
get top particle More... | |
~BPHKinematicFit () override=default | |
Public Member Functions inherited from BPHDecayVertex | |
BPHDecayVertex (const BPHDecayVertex &x)=delete | |
const BPHEventSetupWrapper * | getEventSetup () const |
retrieve EventSetup More... | |
char | getTMode (const reco::Candidate *cand) const |
get Track mode for a daughter More... | |
const reco::Track * | getTrack (const reco::Candidate *cand) const |
get Track for a daughter More... | |
const std::string & | getTrackSearchList (const reco::Candidate *cand) const |
retrieve track search list More... | |
reco::TransientTrack * | getTransientTrack (const reco::Candidate *cand) const |
get TransientTrack for a daughter More... | |
BPHDecayVertex & | operator= (const BPHDecayVertex &x)=delete |
const std::vector< const reco::Track * > & | tracks () const |
get list of Tracks More... | |
const std::vector< reco::TransientTrack > & | transientTracks () const |
get list of TransientTracks More... | |
virtual bool | validTracks () const |
check for valid reconstructed vertex More... | |
virtual bool | validVertex () const |
virtual const reco::Vertex & | vertex (VertexFitter< 5 > *fitter=nullptr, const reco::BeamSpot *bs=nullptr, const GlobalPoint *priorPos=nullptr, const GlobalError *priorError=nullptr) const |
get reconstructed vertex More... | |
~BPHDecayVertex () override | |
Public Member Functions inherited from BPHDecayMomentum | |
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 () |
Static Public Member Functions | |
static std::vector< BPHRecoConstCandPtr > | build (const BPHRecoBuilder &builder, const BuilderParameters &par) |
static std::vector< BPHRecoConstCandPtr > | build (const BPHRecoBuilder &builder, double mass=-1, double msig=-1) |
Protected Member Functions | |
void | fill (BPHRecoCandidate *ptr, int level) const override |
Protected Member Functions inherited from BPHKinematicFit | |
virtual void | addK (const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) |
virtual void | addK (const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass=-1.0, double sigma=-1.0) |
virtual void | addK (const std::string &name, const BPHRecoConstCandPtr &comp) |
BPHKinematicFit (int daugNum=2, int compNum=2) | |
BPHKinematicFit (const BPHKinematicFit *ptr) | |
void | setNotUpdated () const override |
Protected Member Functions inherited from BPHDecayVertex | |
virtual void | addV (const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass) |
virtual void | addV (const std::string &name, const BPHRecoConstCandPtr &comp) |
BPHDecayVertex (const BPHEventSetupWrapper *es, int daugNum=2, int compNum=2) | |
BPHDecayVertex (const BPHDecayVertex *ptr, const BPHEventSetupWrapper *es) | |
Protected Member Functions inherited from BPHDecayMomentum | |
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 |
Static Protected Member Functions | |
template<class T > | |
static void | fill (std::vector< typename BPHGenericPtr< const T >::type > &cList, const BPHRecoBuilder &builder, double mass=-1, double msig=-1) |
Description: High level class for reconstructed decay candidates:
Definition at line 44 of file BPHRecoCandidate.h.
Definition at line 47 of file BPHRecoCandidate.h.
Definition at line 46 of file BPHRecoCandidate.h.
BPHRecoCandidate::BPHRecoCandidate | ( | const BPHEventSetupWrapper * | es, |
int | daugNum = 2 , |
||
int | compNum = 2 |
||
) |
Constructorcreate an "empty" object to add daughters later (see BPHDecayMomentum)
Definition at line 31 of file BPHRecoCandidate.cc.
Referenced by clone().
BPHRecoCandidate::BPHRecoCandidate | ( | const BPHEventSetupWrapper * | es, |
const BPHRecoBuilder::ComponentSet & | compSet | ||
) |
create an object with daughters as specified in the ComponentSet
Definition at line 34 of file BPHRecoCandidate.cc.
|
delete |
|
overridedefault |
Destructor
|
inlinevirtual |
Operationsadd a simple particle giving it a name particles are cloned, eventually specifying a different mass and a sigma
Reimplemented in BPHPlusMinusCandidate.
Definition at line 70 of file BPHRecoCandidate.h.
Referenced by fill(), and counter.Counter::register().
|
inlinevirtual |
Reimplemented in BPHPlusMinusCandidate.
Definition at line 74 of file BPHRecoCandidate.h.
References BPHKinematicFit::addK(), BPHKinematicFit::mass(), Skims_PA_cff::name, and newFWLiteAna::searchList.
Referenced by counter.Counter::register().
|
inlinevirtual |
Definition at line 82 of file BPHRecoCandidate.h.
References BPHKinematicFit::addK(), AlCaHLTBitMon_QueryRunRegistry::comp, and Skims_PA_cff::name.
Referenced by counter.Counter::register().
|
inlinestatic |
Definition at line 93 of file BPHRecoCandidate.h.
References BPHRecoCandidate::BuilderParameters::constrMass, and BPHRecoCandidate::BuilderParameters::constrSigma.
|
static |
Definition at line 40 of file BPHRecoCandidate.cc.
References BPHDecayMomentum::cList, and BPHKinematicFit::mass().
|
virtual |
clone object, cloning daughters as well up to required depth level = -1 to clone all levels
Reimplemented in BPHPlusMinusCandidate.
Definition at line 50 of file BPHRecoCandidate.cc.
References BPHRecoCandidate(), fill(), BPHDecayVertex::getEventSetup(), and personalPlayback::level.
Referenced by BPHKinematicFit::addParticles().
|
overrideprotectedvirtual |
Implements BPHDecayMomentum.
Definition at line 58 of file BPHRecoCandidate.cc.
References add(), c, BPHDecayMomentum::compNames(), BPHKinematicFit::constrMass(), BPHKinematicFit::constrSigma(), ztail::d, BPHDecayMomentum::daugNames(), BPHDecayMomentum::getComp(), BPHDecayMomentum::getDaug(), BPHKinematicFit::getIndependentFit(), BPHKinematicFit::getMassSigma(), BPHDecayVertex::getTrackSearchList(), triggerObjects_cff::id, personalPlayback::level, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, BPHDecayMomentum::nComp, BPHDecayMomentum::originalReco(), alignCSCRings::s, BPHKinematicFit::setConstraint(), and BPHKinematicFit::setIndependentFit().
Referenced by BPHPlusMinusCandidate::clone(), and clone().
|
staticprotected |
Definition at line 119 of file BPHRecoCandidate.h.
References BPHRecoBuilder::accept(), BPHRecoBuilder::build(), BPHDecayMomentum::cList, BPHRecoBuilder::eventSetup(), mps_fire::i, BPHKinematicFit::mass(), and dqmiodumpmetadata::n.
|
delete |