#include <BPHKinematicFit.h>
Public Member Functions | |
double | constrMass () const |
retrieve the constraint More... | |
double | constrSigma () const |
virtual const RefCountedKinematicVertex | currentDecayVertex () const |
virtual const RefCountedKinematicParticle | currentParticle () const |
virtual bool | isEmpty () const |
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, 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 |
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... | |
~BPHKinematicFit () override | |
Public Member Functions inherited from BPHDecayVertex | |
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... | |
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 () const |
get reconstructed vertex More... | |
~BPHDecayVertex () override | |
Public Member Functions inherited from BPHDecayMomentum | |
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 | 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) |
add a previously reconstructed particle giving it a name More... | |
BPHKinematicFit () | |
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) |
add a previously reconstructed particle giving it a name More... | |
BPHDecayVertex (const edm::EventSetup *es) | |
BPHDecayVertex (const BPHDecayVertex *ptr, const edm::EventSetup *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) |
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 |
Private Member Functions | |
virtual void | buildParticles () const |
virtual void | fitMomentum () const |
Private Attributes | |
std::vector< RefCountedKinematicParticle > | allParticles |
std::map< const reco::Candidate *, double > | dMSig |
std::map< const reco::Candidate *, RefCountedKinematicParticle > | kinMap |
RefCountedKinematicTree | kinTree |
double | massConst |
double | massSigma |
bool | oldFit |
bool | oldKPs |
bool | oldMom |
math::XYZTLorentzVector | totalMomentum |
Description: Highest-level base class to encapsulate kinematic fit operations
Definition at line 35 of file BPHKinematicFit.h.
|
override |
Constructor is protected this object can exist only as part of a derived classDestructor
Definition at line 83 of file BPHKinematicFit.cc.
|
protected |
Definition at line 41 of file BPHKinematicFit.cc.
|
protected |
Definition at line 50 of file BPHKinematicFit.cc.
References HltBtagPostValidation_cff::c, BPHDecayMomentum::Component::cand, BPHDecayMomentum::componentList(), BPHDecayMomentum::daughComp(), BPHDecayMomentum::daughters(), BPHDecayMomentum::dMap, dMSig, mps_fire::i, dqmiolumiharvest::j, list(), visualization-live-secondInstance_cfg::m, BPHDecayMomentum::Component::msig, dqmiodumpmetadata::n, and BPHDecayMomentum::originalReco().
|
protectedvirtual |
add a simple particle giving it a name particles are cloned, eventually specifying a different mass and a sigma
Referenced by p4(), and BPHPlusMinusCandidate::~BPHPlusMinusCandidate().
|
protectedvirtual |
add a simple particle and specify a criterion to search for the associated track
|
protectedvirtual |
add a previously reconstructed particle giving it a name
|
privatevirtual |
Definition at line 339 of file BPHKinematicFit.cc.
References allParticles, BPHDecayMomentum::daughFull(), dMSig, BPHDecayVertex::getTransientTrack(), kinMap, mass(), reco::Candidate::mass(), dqmiodumpmetadata::n, oldKPs, KinematicParticleFactoryFromTransientTrack::particle(), and groupFilesInBlocks::tt.
Referenced by kinParticles().
double BPHKinematicFit::constrMass | ( | ) | const |
double BPHKinematicFit::constrSigma | ( | ) | const |
|
virtual |
Definition at line 292 of file BPHKinematicFit.cc.
References isEmpty(), and kinTree.
|
virtual |
Definition at line 286 of file BPHKinematicFit.cc.
References isEmpty(), and kinTree.
Referenced by fitMomentum(), isValidFit(), and mass().
|
privatevirtual |
Definition at line 362 of file BPHKinematicFit.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, currentParticle(), BPHDecayMomentum::daughComp(), BPHDecayMomentum::daughters(), MillePedeFileConverter_cfg::e, KinematicState::globalMomentum(), isValidFit(), visualization-live-secondInstance_cfg::m, KinematicState::mass(), dqmiodumpmetadata::n, oldMom, mathSSE::sqrt(), totalMomentum, x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by p4().
|
virtual |
Definition at line 272 of file BPHKinematicFit.cc.
References kinematicTree(), and kinTree.
Referenced by plotting.Plot::clone(), currentDecayVertex(), and currentParticle().
|
virtual |
Definition at line 279 of file BPHKinematicFit.cc.
References currentParticle().
Referenced by fitMomentum().
|
virtual |
perform the kinematic fit and get the result
Definition at line 145 of file BPHKinematicFit.cc.
References allParticles, AlCaHLTBitMon_QueryRunRegistry::comp, BPHDecayMomentum::daughFull(), BPHDecayMomentum::daugNames(), cppFunctionSkipper::exception, KinematicConstrainedVertexFitter::fit(), KinematicParticleFitter::fit(), KinematicParticleVertexFitter::fit(), BPHDecayMomentum::getComp(), kinParticles(), kinTree, mass(), massConst, massSigma, CaloTowersParam_cfi::mc, Skims_PA_cff::name, names, groupFilesInBlocks::nn, and oldFit.
Referenced by isEmpty(), and BPHMassFitSelect::~BPHMassFitSelect().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
get kinematic particles
Definition at line 99 of file BPHKinematicFit.cc.
References allParticles, buildParticles(), BPHDecayMomentum::daughFull(), BPHDecayMomentum::getDaug(), mps_fire::i, dqmiolumiharvest::j, kinMap, kp, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, names, oldKPs, unpackData-CaloStage2::pname, and muonDTDigis_cfi::pset.
Referenced by kinematicTree().
|
virtual |
|
virtual |
Definition at line 298 of file BPHKinematicFit.cc.
References currentParticle(), KinematicState::isValid(), and KinematicState::mass().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), BPHPlusMinusCandidate::build(), BPHRecoCandidate::build(), buildParticles(), kinematicTree(), p4(), setConstraint(), and BPHPlusMinusCandidate::~BPHPlusMinusCandidate().
|
virtual |
compute total momentum after the fit
Definition at line 308 of file BPHKinematicFit.cc.
References addK(), BPHDecayVertex::addV(), AlCaHLTBitMon_QueryRunRegistry::comp, BPHDecayMomentum::daughters(), BPHDecayMomentum::dMap, dMSig, fitMomentum(), mass(), Skims_PA_cff::name, oldMom, newFWLiteAna::searchList, and totalMomentum.
Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), Lepton.Lepton::p4WithFSR(), and BPHMassFitSelect::~BPHMassFitSelect().
|
virtual |
reset the kinematic fit
Definition at line 267 of file BPHKinematicFit.cc.
References oldFit, oldKPs, and oldMom.
Referenced by setNotUpdated().
void BPHKinematicFit::setConstraint | ( | double | mass, |
double | sigma | ||
) |
apply a mass constraint
Operations
Definition at line 88 of file BPHKinematicFit.cc.
References mass(), massConst, massSigma, oldFit, and oldMom.
Referenced by BPHOniaToMuMuBuilder::extractList().
|
overrideprotectedvirtual |
Reimplemented from BPHDecayVertex.
Reimplemented in BPHPlusMinusCandidate.
Definition at line 333 of file BPHKinematicFit.cc.
References resetKinematicFit(), and BPHDecayVertex::setNotUpdated().
Referenced by BPHPlusMinusCandidate::setNotUpdated().
|
mutableprivate |
Definition at line 115 of file BPHKinematicFit.h.
Referenced by buildParticles(), kinematicTree(), and kinParticles().
|
private |
Definition at line 108 of file BPHKinematicFit.h.
Referenced by BPHKinematicFit(), buildParticles(), and p4().
|
mutableprivate |
Definition at line 114 of file BPHKinematicFit.h.
Referenced by buildParticles(), and kinParticles().
|
mutableprivate |
Definition at line 116 of file BPHKinematicFit.h.
Referenced by currentDecayVertex(), currentParticle(), isEmpty(), and kinematicTree().
|
private |
Definition at line 104 of file BPHKinematicFit.h.
Referenced by constrMass(), kinematicTree(), and setConstraint().
|
private |
Definition at line 105 of file BPHKinematicFit.h.
Referenced by constrSigma(), kinematicTree(), and setConstraint().
|
mutableprivate |
Definition at line 112 of file BPHKinematicFit.h.
Referenced by kinematicTree(), resetKinematicFit(), and setConstraint().
|
mutableprivate |
Definition at line 111 of file BPHKinematicFit.h.
Referenced by buildParticles(), kinParticles(), and resetKinematicFit().
|
mutableprivate |
Definition at line 113 of file BPHKinematicFit.h.
Referenced by fitMomentum(), p4(), resetKinematicFit(), and setConstraint().
|
mutableprivate |
Definition at line 117 of file BPHKinematicFit.h.
Referenced by fitMomentum(), and p4().