#include <BPHPlusMinusCandidate.h>
Public Member Functions | |
void | add (const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override |
void | add (const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass=-1.0, double sigma=-1.0) override |
BPHPlusMinusCandidate (const edm::EventSetup *es) | |
BPHPlusMinusCandidate (const BPHPlusMinusCandidate &x)=delete | |
BPHRecoCandidate * | clone (int level=-1) const override |
const pat::CompositeCandidate & | composite () const override |
get a composite by the simple sum of simple particles More... | |
bool | isCowboy () const |
get cowboy/sailor classification More... | |
bool | isSailor () const |
BPHPlusMinusCandidate & | operator= (const BPHPlusMinusCandidate &x)=delete |
~BPHPlusMinusCandidate () override | |
Public Member Functions inherited from BPHRecoCandidate | |
virtual void | add (const std::string &name, const BPHRecoConstCandPtr &comp) |
BPHRecoCandidate (const edm::EventSetup *es) | |
BPHRecoCandidate (const edm::EventSetup *es, const BPHRecoBuilder::ComponentSet &compSet) | |
BPHRecoCandidate (const BPHRecoCandidate &x)=delete | |
BPHRecoCandidate & | operator= (const BPHRecoCandidate &x)=delete |
~BPHRecoCandidate () override | |
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) 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 | |
Public Member Functions inherited from BPHDecayVertex | |
BPHDecayVertex (const BPHDecayVertex &x)=delete | |
const edm::EventSetup * | getEventSetup () const |
retrieve EventSetup 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 | |
virtual const std::vector < std::string > & | compNames () const |
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 () |
Public Member Functions inherited from BPHPlusMinusVertex | |
BPHPlusMinusVertex (const BPHPlusMinusVertex &x)=delete | |
virtual const ClosestApproachInRPhi & | cAppInRPhi () const |
compute distance of closest approach More... | |
BPHPlusMinusVertex & | operator= (const BPHPlusMinusVertex &x)=delete |
~BPHPlusMinusVertex () override | |
Static Public Member Functions | |
static std::vector < BPHPlusMinusConstCandPtr > | build (const BPHRecoBuilder &builder, const std::string &nPos, const std::string &nNeg, double mass=-1, double msig=-1) |
Static Public Member Functions inherited from BPHRecoCandidate | |
static std::vector < BPHRecoConstCandPtr > | build (const BPHRecoBuilder &builder, double mass=-1, double msig=-1) |
Protected Member Functions | |
void | setNotUpdated () const override |
Protected Member Functions inherited from BPHRecoCandidate | |
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) |
add a previously reconstructed particle giving it a name More... | |
BPHKinematicFit () | |
BPHKinematicFit (const BPHKinematicFit *ptr) | |
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 |
Protected Member Functions inherited from BPHPlusMinusVertex | |
BPHPlusMinusVertex (const edm::EventSetup *es) | |
bool | chkSize (const std::string &msg) const |
void | setNotUpdated () const override |
Private Member Functions | |
BPHPlusMinusCandidate (const edm::EventSetup *es, const BPHRecoBuilder::ComponentSet &compList) | |
bool | phiDiff () const |
Friends | |
class | BPHRecoCandidate |
Additional Inherited Members | |
Static Protected Member Functions inherited from BPHRecoCandidate | |
template<class T > | |
static void | fill (std::vector< typename BPHGenericPtr< const T >::type > &cList, const BPHRecoBuilder &builder, double mass=-1, double msig=-1) |
Static Protected Member Functions inherited from BPHPlusMinusVertex | |
template<class T > | |
static bool | chkName (const T &cont, const std::string &name, const std::string &msg) |
template<class T > | |
static bool | chkSize (const T &cont, const std::string &msg) |
Description: class for reconstructed decay candidates to opposite charge particle pairs
Definition at line 32 of file BPHPlusMinusCandidate.h.
BPHPlusMinusCandidate::BPHPlusMinusCandidate | ( | const edm::EventSetup * | es | ) |
Constructor
Definition at line 37 of file BPHPlusMinusCandidate.cc.
Referenced by clone().
|
delete |
|
override |
|
private |
Definition at line 40 of file BPHPlusMinusCandidate.cc.
|
overridevirtual |
Operationsadd a simple particle giving it a name particles are cloned, eventually specifying a different mass particles can be added only up to two particles with opposite charge
Reimplemented from BPHRecoCandidate.
Referenced by BPHDecayToV0DiffMassBuilder::buildCandidate(), BPHOniaToMuMuBuilder::extractList(), and counter.Counter::register().
|
overridevirtual |
Reimplemented from BPHRecoCandidate.
Referenced by counter.Counter::register().
|
static |
look for candidates starting from particle collections as specified in the BPHRecoBuilder, with given names for positive and negative particle charge selection is applied inside
Definition at line 86 of file BPHPlusMinusCandidate.cc.
References accept(), c, RecoTauCleanerPlugins::charge, reco::Candidate::charge(), BPHDecayMomentum::cList, BPHRecoBuilder::filter(), and BPHKinematicFit::mass().
Referenced by BPHOniaToMuMuBuilder::build().
|
overridevirtual |
clone object, cloning daughters as well up to required depth level = -1 to clone all levels
Reimplemented from BPHRecoCandidate.
Definition at line 108 of file BPHPlusMinusCandidate.cc.
References BPHPlusMinusCandidate(), BPHRecoCandidate::fill(), and BPHDecayVertex::getEventSetup().
|
overridevirtual |
get a composite by the simple sum of simple particles
Reimplemented from BPHDecayMomentum.
Definition at line 114 of file BPHPlusMinusCandidate.cc.
References BPHPlusMinusVertex::chkSize(), BPHDecayMomentum::compCand, BPHDecayMomentum::composite(), and mps_check::msg.
Referenced by BPHWriteSpecificDecay::fill().
bool BPHPlusMinusCandidate::isCowboy | ( | ) | const |
get cowboy/sailor classification
Definition at line 122 of file BPHPlusMinusCandidate.cc.
References BPHPlusMinusVertex::chkSize(), mps_check::msg, and phiDiff().
Referenced by BPHWriteSpecificDecay::write().
bool BPHPlusMinusCandidate::isSailor | ( | ) | const |
Definition at line 127 of file BPHPlusMinusCandidate.cc.
References BPHPlusMinusVertex::chkSize(), mps_check::msg, and phiDiff().
|
delete |
|
private |
Definition at line 132 of file BPHPlusMinusCandidate.cc.
References BPHDecayMomentum::daughters(), reco::deltaPhi(), and phi.
Referenced by isCowboy(), and isSailor().
|
inlineoverrideprotectedvirtual |
Reimplemented from BPHDecayVertex.
Definition at line 83 of file BPHPlusMinusCandidate.h.
References BPHPlusMinusVertex::setNotUpdated(), and BPHKinematicFit::setNotUpdated().
|
friend |
Definition at line 33 of file BPHPlusMinusCandidate.h.