CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Friends
reco::Candidate Class Referenceabstract

#include <Candidate.h>

Inheritance diagram for reco::Candidate:
pat::PackedCandidate pat::PackedGenParticle reco::LeafCandidate CaloTower reco::CompositeRefCandidateT< GenParticleRefVector > l1extra::L1EmParticle l1extra::L1EtMissParticle l1extra::L1JetParticle l1extra::L1MuonParticle L1GObject L1MuKBMTrack l1t::HPSPFTau l1t::KMTFTrack l1t::L1Candidate l1t::P2GTCandidate pat::IsolatedTrack pat::TriggerObject pat::PATObject< reco::LeafCandidate > reco::CaloRecHitCandidate reco::CandidateWithRef< Ref > reco::CastorTower reco::CompositeCandidate reco::CompositePtrCandidate reco::CompositeRefBaseCandidate reco::CompositeRefCandidate reco::CompositeRefCandidateT< D > reco::EcalIsolatedParticleCandidate reco::LeafRefCandidateT reco::RecoCandidate reco::ShallowCloneCandidate reco::ShallowClonePtrCandidate TICLCandidate ZMuMuRochCorAnalyzer.DiMuon

Public Types

enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
virtual Vector boostToCM () const =0
 
 Candidate ()
 default constructor More...
 
virtual int charge () const =0
 electric charge More...
 
virtual Candidateclone () const =0
 returns a clone of the Candidate object More...
 
virtual const Candidatedaughter (size_type i) const =0
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) More...
 
virtual Candidatedaughter (size_type i)=0
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 More...
 
virtual Candidatedaughter (const std::string &s)=0
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const =0
 return daughter with a specified role name More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
virtual double energy () const =0
 energy More...
 
virtual double et () const =0
 transverse energy More...
 
virtual double et2 () const =0
 transverse energy squared (use this for cut!) More...
 
virtual double eta () const =0
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const =0
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const =0
 
virtual bool hasMasterClonePtr () const =0
 
virtual bool isCaloMuon () const =0
 
virtual bool isConvertedPhoton () const =0
 
virtual bool isElectron () const =0
 
virtual bool isGlobalMuon () const =0
 
virtual bool isJet () const =0
 
virtual bool isMuon () const =0
 
virtual bool isPhoton () const =0
 
virtual bool isStandAloneMuon () const =0
 
virtual bool isTrackerMuon () const =0
 
virtual bool longLived () const =0
 is long lived? More...
 
virtual double mass () const =0
 mass More...
 
virtual bool massConstraint () const =0
 do mass constraint? More...
 
virtual double massSqr () const =0
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const =0
 
virtual const CandidatePtrmasterClonePtr () const =0
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const =0
 spatial momentum vector More...
 
virtual const Candidatemother (size_type i=0) const =0
 return pointer to mother More...
 
virtual double mt () const =0
 transverse mass More...
 
virtual double mtSqr () const =0
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_type numberOfDaughters () const =0
 number of daughters More...
 
virtual size_type numberOfMothers () const =0
 number of mothers (zero or one in most of but not all the cases) More...
 
virtual size_t numberOfSourceCandidatePtrs () const =0
 
virtual double p () const =0
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const =0
 four-momentum Lorentz vector More...
 
virtual int pdgId () const =0
 PDG identifier. More...
 
virtual double phi () const =0
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const =0
 four-momentum Lorentz vector More...
 
virtual double pt () const =0
 transverse momentum More...
 
virtual double px () const =0
 x coordinate of momentum vector More...
 
virtual double py () const =0
 y coordinate of momentum vector More...
 
virtual double pz () const =0
 z coordinate of momentum vector More...
 
virtual double rapidity () const =0
 rapidity More...
 
virtual void setCharge (Charge q)=0
 set electric charge More...
 
virtual void setLongLived ()=0
 set long lived flag More...
 
virtual void setMass (double m)=0
 set particle mass More...
 
virtual void setMassConstraint ()=0
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)=0
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)=0
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)=0
 
virtual void setPz (double pz)=0
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual void setStatus (int status)=0
 set status word More...
 
virtual void setThreeCharge (Charge qx3)=0
 set electric charge More...
 
virtual void setVertex (const Point &vertex)=0
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const =0
 status word More...
 
virtual double theta () const =0
 momentum polar angle More...
 
virtual int threeCharge () const =0
 electric charge More...
 
virtual const Pointvertex () const =0
 vertex position More...
 
virtual double vertexChi2 () const =0
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const =0
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
virtual CovarianceMatrix vertexCovariance () const
 fill SMatrix More...
 
virtual double vertexNdof () const =0
 
virtual double vertexNormalizedChi2 () const =0
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const =0
 x coordinate of vertex position More...
 
virtual double vy () const =0
 y coordinate of vertex position More...
 
virtual double vz () const =0
 z coordinate of vertex position More...
 
virtual double y () const =0
 rapidity More...
 
virtual ~Candidate ()
 destructor More...
 

Protected Member Functions

virtual bool overlap (const Candidate &) const =0
 check overlap with another Candidate More...
 

Friends

class ::OverlapChecker
 
template<typename , typename , typename >
struct component
 
class ShallowCloneCandidate
 
class ShallowClonePtrCandidate
 

Detailed Description

abstract interface for physics objects

Author
Luca Lista (INFN), Benedikt Hegner (CERN)

Definition at line 27 of file Candidate.h.

Member Typedef Documentation

◆ Charge

electric charge type

Definition at line 34 of file Candidate.h.

◆ const_iterator

Definition at line 30 of file Candidate.h.

◆ CovarianceMatrix

covariance error matrix (3x3)

Definition at line 46 of file Candidate.h.

◆ index

typedef unsigned int reco::Candidate::index

index type

Definition at line 50 of file Candidate.h.

◆ iterator

Definition at line 31 of file Candidate.h.

◆ LorentzVector

Lorentz vector.

Definition at line 36 of file Candidate.h.

◆ Point

point in the space

Definition at line 40 of file Candidate.h.

◆ PolarLorentzVector

Lorentz vector.

Definition at line 38 of file Candidate.h.

◆ size_type

Definition at line 29 of file Candidate.h.

◆ Vector

point in the space

Definition at line 42 of file Candidate.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
dimension 

Definition at line 44 of file Candidate.h.

◆ anonymous enum

anonymous enum

matix size

Enumerator
size 

Definition at line 48 of file Candidate.h.

Constructor & Destructor Documentation

◆ Candidate()

reco::Candidate::Candidate ( )
inline

default constructor

Definition at line 53 of file Candidate.h.

53 {};

◆ ~Candidate()

Candidate::~Candidate ( )
virtual

destructor

Definition at line 5 of file Candidate.cc.

5 {}

Member Function Documentation

◆ begin() [1/2]

const_iterator reco::Candidate::begin ( void  ) const
inline

◆ begin() [2/2]

iterator reco::Candidate::begin ( void  )
inline

first daughter iterator

Definition at line 147 of file Candidate.h.

147 { return iterator(this, 0); }
candidate::iterator iterator
Definition: Candidate.h:31

◆ bestTrack()

virtual const Track* reco::Candidate::bestTrack ( ) const
inlinevirtual

◆ boostToCM()

virtual Vector reco::Candidate::boostToCM ( ) const
pure virtual

boost vector to boost a Lorentz vector to the particle center of mass system

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ charge()

virtual int reco::Candidate::charge ( ) const
pure virtual

◆ clone()

virtual Candidate* reco::Candidate::clone ( ) const
pure virtual

returns a clone of the Candidate object

Implemented in pat::PackedCandidate, pat::PackedGenParticle, reco::LeafCandidate, reco::PFJet, reco::CaloJet, reco::GenJet, reco::JPTJet, reco::IsolatedPixelTrackCandidate, reco::PFCandidate, pat::Jet, l1extra::L1EtMissParticle, reco::GsfElectron, reco::SiStripElectron, pat::Tau, l1extra::L1MuonParticle, reco::PFTauDecayMode, pat::Electron, reco::VertexCompositePtrCandidate, pat::Muon, pat::Photon, reco::PFTau, pat::MET, reco::HcalIsolatedTrackCandidate, reco::CompositeCandidate, l1extra::L1EmParticle, l1extra::L1JetParticle, reco::MET, pat::GenericParticle, reco::Photon, reco::CompositeRefCandidateT< D >, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::NamedCompositeCandidate, reco::EcalIsolatedParticleCandidate, reco::CompositeRefBaseCandidate, pat::PFParticle, pat::CompositeCandidate, reco::ShallowCloneCandidate, reco::VertexCompositeCandidate, pat::Particle, reco::ShallowClonePtrCandidate, pat::Lepton< reco::BaseTau >, pat::Lepton< reco::GsfElectron >, pat::Lepton< reco::Muon >, reco::TrackJet, reco::GenParticle, reco::PFClusterJet, reco::Muon, reco::RecoCandidate, reco::BasicJet, reco::CaloRecHitCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::CandidateWithRef< Ref >, reco::PileUpPFCandidate, reco::RecoCaloTowerCandidate, reco::IsolatedPFCandidate, reco::Electron, reco::BaseTau, reco::RecoPFClusterRefCandidate, and reco::RecoChargedRefCandidate.

◆ daughter() [1/4]

virtual const Candidate* reco::Candidate::daughter ( size_type  i) const
pure virtual

◆ daughter() [2/4]

virtual Candidate* reco::Candidate::daughter ( size_type  i)
pure virtual

◆ daughter() [3/4]

virtual Candidate* reco::Candidate::daughter ( const std::string &  s)
pure virtual

◆ daughter() [4/4]

virtual const Candidate* reco::Candidate::daughter ( const std::string &  s) const
pure virtual

◆ dxyError()

virtual float reco::Candidate::dxyError ( ) const
inlinevirtual

uncertainty on dxy

Reimplemented in pat::PackedCandidate, reco::PFCandidate, pat::IsolatedTrack, reco::RecoCandidate, and reco::RecoChargedRefCandidate.

Definition at line 275 of file Candidate.h.

275  {
276  return 0;
277  } // { const Track * tr=bestTrack(); if(tr!=nullptr) return tr->dxyError(); else return 0; }

◆ dzError()

virtual float reco::Candidate::dzError ( ) const
inlinevirtual

uncertainty on dz

Reimplemented in pat::PackedCandidate, reco::PFCandidate, pat::IsolatedTrack, reco::RecoCandidate, and reco::RecoChargedRefCandidate.

Definition at line 271 of file Candidate.h.

271  {
272  return 0;
273  } // { const Track * tr=bestTrack(); if(tr!=nullptr) return tr->dzError(); else return 0; }

◆ end() [1/2]

const_iterator reco::Candidate::end ( void  ) const
inline

◆ end() [2/2]

iterator reco::Candidate::end ( void  )
inline

last daughter iterator

Definition at line 149 of file Candidate.h.

References numberOfDaughters().

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

149 { return iterator(this, numberOfDaughters()); }
virtual size_type numberOfDaughters() const =0
number of daughters
candidate::iterator iterator
Definition: Candidate.h:31

◆ energy()

virtual double reco::Candidate::energy ( ) const
pure virtual

◆ et()

virtual double reco::Candidate::et ( ) const
pure virtual

◆ et2()

virtual double reco::Candidate::et2 ( ) const
pure virtual

transverse energy squared (use this for cut!)

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ eta()

virtual double reco::Candidate::eta ( ) const
pure virtual

◆ fillVertexCovariance()

virtual void reco::Candidate::fillVertexCovariance ( CovarianceMatrix v) const
pure virtual

◆ get() [1/4]

template<typename T >
T reco::Candidate::get ( ) const
inline

get a component

Definition at line 221 of file Candidate.h.

References edm::RefToBase< T >::get(), hasMasterClone(), and masterClone().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), egammaisolation::EgammaRecHitExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaEcalExtractor::deposit(), egammaisolation::EgammaTowerExtractor::deposit(), betterConfigParser.BetterConfigParser::getCompares(), EgammaEcalIsolation::getEcalEtSum(), BPHTrackReference::getFromRC(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), EgammaRecHitIsolation::getSum_(), reco::makeSpecific(), pat::PackedGenParticle::mother(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), PFSpecificAlgo::run(), CandMassKinFitter::set(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().

221  {
222  if (hasMasterClone())
223  return masterClone()->get<T>();
224  else
225  return reco::get<T>(*this);
226  }
T get() const
get a component
Definition: Candidate.h:221
virtual bool hasMasterClone() const =0
long double T
virtual const CandidateBaseRef & masterClone() const =0

◆ get() [2/4]

template<typename T , typename Tag >
T reco::Candidate::get ( ) const
inline

◆ get() [3/4]

template<typename T >
T reco::Candidate::get ( size_type  i) const
inline

◆ get() [4/4]

template<typename T , typename Tag >
T reco::Candidate::get ( size_type  i) const
inline

◆ hasMasterClone()

virtual bool reco::Candidate::hasMasterClone ( ) const
pure virtual

returns true if this candidate has a reference to a master clone. This only happens if the concrete Candidate type is ShallowCloneCandidate

Implemented in pat::PackedCandidate, pat::PackedGenParticle, reco::LeafCandidate, reco::LeafRefCandidateT, and reco::ShallowCloneCandidate.

Referenced by reco::GenJet::genParticle(), get(), reco::makeSpecific(), numberOf(), and OverlapChecker::operator()().

◆ hasMasterClonePtr()

virtual bool reco::Candidate::hasMasterClonePtr ( ) const
pure virtual

returns true if this candidate has a ptr to a master clone. This only happens if the concrete Candidate type is ShallowClonePtrCandidate

Implemented in pat::PackedCandidate, pat::PackedGenParticle, reco::LeafCandidate, reco::LeafRefCandidateT, and reco::ShallowClonePtrCandidate.

◆ isCaloMuon()

virtual bool reco::Candidate::isCaloMuon ( ) const
pure virtual

◆ isConvertedPhoton()

virtual bool reco::Candidate::isConvertedPhoton ( ) const
pure virtual

◆ isElectron()

virtual bool reco::Candidate::isElectron ( ) const
pure virtual

◆ isGlobalMuon()

virtual bool reco::Candidate::isGlobalMuon ( ) const
pure virtual

◆ isJet()

virtual bool reco::Candidate::isJet ( ) const
pure virtual

◆ isMuon()

virtual bool reco::Candidate::isMuon ( ) const
pure virtual

◆ isPhoton()

virtual bool reco::Candidate::isPhoton ( ) const
pure virtual

◆ isStandAloneMuon()

virtual bool reco::Candidate::isStandAloneMuon ( ) const
pure virtual

◆ isTrackerMuon()

virtual bool reco::Candidate::isTrackerMuon ( ) const
pure virtual

◆ longLived()

virtual bool reco::Candidate::longLived ( ) const
pure virtual

◆ mass()

virtual double reco::Candidate::mass ( ) const
pure virtual

◆ massConstraint()

virtual bool reco::Candidate::massConstraint ( ) const
pure virtual

do mass constraint?

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ massSqr()

virtual double reco::Candidate::massSqr ( ) const
pure virtual

◆ masterClone()

virtual const CandidateBaseRef& reco::Candidate::masterClone ( ) const
pure virtual

◆ masterClonePtr()

virtual const CandidatePtr& reco::Candidate::masterClonePtr ( ) const
pure virtual

returns ptr to master clone, if existing. Throws an exception unless the concrete Candidate type is ShallowClonePtrCandidate

Implemented in pat::PackedCandidate, pat::PackedGenParticle, reco::LeafCandidate, reco::LeafRefCandidateT, and reco::ShallowClonePtrCandidate.

◆ masterRef()

template<typename Ref >
Ref reco::Candidate::masterRef ( ) const
inline

cast master clone reference to a concrete type

Definition at line 215 of file Candidate.h.

References masterClone().

215  {
216  return masterClone().template castTo<Ref>();
217  }
virtual const CandidateBaseRef & masterClone() const =0

◆ momentum()

virtual Vector reco::Candidate::momentum ( ) const
pure virtual

◆ mother()

virtual const Candidate* reco::Candidate::mother ( size_type  i = 0) const
pure virtual

◆ mt()

virtual double reco::Candidate::mt ( ) const
pure virtual

transverse mass

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ mtSqr()

virtual double reco::Candidate::mtSqr ( ) const
pure virtual

transverse mass squared

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ numberOf() [1/2]

template<typename T >
size_type reco::Candidate::numberOf ( ) const
inline

number of components

Definition at line 253 of file Candidate.h.

References hasMasterClone(), and masterClone().

253  {
254  if (hasMasterClone())
255  return masterClone()->numberOf<T>();
256  else
257  return reco::numberOf<T>(*this);
258  }
size_type numberOf() const
number of components
Definition: Candidate.h:253
virtual bool hasMasterClone() const =0
long double T
virtual const CandidateBaseRef & masterClone() const =0

◆ numberOf() [2/2]

template<typename T , typename Tag >
size_type reco::Candidate::numberOf ( ) const
inline

number of components

Definition at line 261 of file Candidate.h.

References hasMasterClone(), and masterClone().

261  {
262  if (hasMasterClone())
263  return masterClone()->numberOf<T, Tag>();
264  else
265  return reco::numberOf<T, Tag>(*this);
266  }
size_type numberOf() const
number of components
Definition: Candidate.h:253
virtual bool hasMasterClone() const =0
long double T
virtual const CandidateBaseRef & masterClone() const =0

◆ numberOfDaughters()

virtual size_type reco::Candidate::numberOfDaughters ( ) const
pure virtual

◆ numberOfMothers()

virtual size_type reco::Candidate::numberOfMothers ( ) const
pure virtual

◆ numberOfSourceCandidatePtrs()

virtual size_t reco::Candidate::numberOfSourceCandidatePtrs ( ) const
pure virtual

◆ overlap()

virtual bool reco::Candidate::overlap ( const Candidate ) const
protectedpure virtual

◆ p()

virtual double reco::Candidate::p ( ) const
pure virtual

◆ p4()

virtual const LorentzVector& reco::Candidate::p4 ( ) const
pure virtual

◆ pdgId()

virtual int reco::Candidate::pdgId ( ) const
pure virtual

PDG identifier.

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

Referenced by Particle.Particle::__str__(), TauDecay_GenParticle::AddRadInfo(), myFastSimVal::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), ElectronMcSignalValidator::analyze(), ResolutionCreator::analyze(), L1TPhase2CorrelatorOffline::analyze(), GenHFHadronMatcher::analyzeMothers(), reco::FlavorHistoryEvent::cache(), TopDecaySubset::checkShowerModel(), PileupJetIdAlgo::computeIdVariables(), BadParticleFilter::filter(), ttHFGenFilter::FindAllTopMothers(), GenHFHadronMatcher::findHadronJets(), TopDecaySubset::findPrimalW(), InputGenJetsParticleSelector::fromResonance(), HeavyFlavorValidation::getMotherId(), MuScleFitMuonSelector::getStatus1Muon(), MuScleFitMuonSelector::getStatus3Muon(), PseudoTopProducer::isBHadron(), PseudoTopProducer::isFromHadron(), GenHFHadronMatcher::isHadron(), BTVMCFlavourTableProducer::jet_flavour(), reco::makeSpecific(), PuppiPhoton::matchPFCandidate(), AntiElectronDeadECAL::operator()(), PseudoTopProducer::produce(), InputGenJetsParticleSelector::produce(), PartonSelector::produce(), Onia2MuMuPAT::produce(), HFJetShowerShape::produce(), L1TMicroGMTInputProducerFromGen::produce(), FlavorHistoryProducer::produce(), SoftPFMuonTagInfoProducer::produce(), l1t::GenToInputProducer::produce(), TauSpinnerCMS::readParticlesfromReco(), PFSpecificAlgo::run(), InputGenJetsParticleSelector::testPartonChildren(), heppy::FSRWeightAlgo::weight(), and zMCLeptonDaughters().

◆ phi()

virtual double reco::Candidate::phi ( ) const
pure virtual

◆ polarP4()

virtual const PolarLorentzVector& reco::Candidate::polarP4 ( ) const
pure virtual

four-momentum Lorentz vector

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ pt()

virtual double reco::Candidate::pt ( ) const
pure virtual

transverse momentum

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), BPHDaughterSelect::accept(), GenericBenchmark::accepted(), BPHHistoSpecificDecay::analyze(), TauTagValidation::analyze(), B2GDQM::analyzeJets(), GenHFHadronMatcher::analyzeMothers(), FWCandidateLegoProxyBuilder::build(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), reco::PFMETProducerMVA::chargedFracInCone(), PileupJetIdAlgo::computeIdVariables(), CandidateChargeBTagComputer::discriminator(), GenericBenchmark::fill(), PFCandidateMonitor::fill(), MatchCandidateBenchmark::fillOne(), PFJetFilter::filter(), BadParticleFilter::filter(), ShiftedParticleProducer::getUncShift(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), AntiElectronDeadECAL::operator()(), SortCandByDecreasingPt::operator()(), HLTMuonPlotter::MatchStruct::operator<(), HLTMuonPlotter::MatchStruct::operator>(), datamodel.Object::p4(), reco::RecoTauPiZero::print(), printP4(), IsolationProducerForTracks::produce(), L1HLTJetsMatching::produce(), PseudoTopProducer::produce(), InputGenJetsParticleSelector::produce(), HFJetShowerShape::produce(), L1TMicroGMTInputProducerFromGen::produce(), SoftPFMuonTagInfoProducer::produce(), l1t::GenToInputProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), TtFullLepKinSolutionProducer::PTComp(), TtDilepEvtSolutionMaker::PTComp(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), and reco::tau::sumPFCandPt().

◆ px()

virtual double reco::Candidate::px ( ) const
pure virtual

◆ py()

virtual double reco::Candidate::py ( ) const
pure virtual

◆ pz()

virtual double reco::Candidate::pz ( ) const
pure virtual

◆ rapidity()

virtual double reco::Candidate::rapidity ( ) const
pure virtual

◆ setCharge()

virtual void reco::Candidate::setCharge ( Charge  q)
pure virtual

set electric charge

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ setLongLived()

virtual void reco::Candidate::setLongLived ( )
pure virtual

set long lived flag

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ setMass()

virtual void reco::Candidate::setMass ( double  m)
pure virtual

◆ setMassConstraint()

virtual void reco::Candidate::setMassConstraint ( )
pure virtual

set mass constraint flag

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ setP4() [1/2]

virtual void reco::Candidate::setP4 ( const LorentzVector p4)
pure virtual

◆ setP4() [2/2]

virtual void reco::Candidate::setP4 ( const PolarLorentzVector p4)
pure virtual

set 4-momentum

Implemented in reco::LeafCandidate.

Referenced by Jet.Jet::setCorrP4().

◆ setPdgId()

virtual void reco::Candidate::setPdgId ( int  pdgId)
pure virtual

◆ setPz()

virtual void reco::Candidate::setPz ( double  pz)
pure virtual

◆ setSourceCandidatePtr()

virtual void reco::Candidate::setSourceCandidatePtr ( const CandidatePtr ptr)
inlinevirtual

Set the ptr to the source Candidate.

necessary, to allow a parallel treatment of all candidates in PF2PAT. Does nothing for most Candidate classes, including CompositePtrCandidates, where the source information is in fact the collection of ptrs to daughters. For non-Composite Candidates, this function can be used to set the ptr to the source of the Candidate, which will allow to keep track of the reconstruction history.

Definition at line 179 of file Candidate.h.

179 {};

◆ setStatus()

virtual void reco::Candidate::setStatus ( int  status)
pure virtual

set status word

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ setThreeCharge()

virtual void reco::Candidate::setThreeCharge ( Charge  qx3)
pure virtual

set electric charge

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ setVertex()

virtual void reco::Candidate::setVertex ( const Point vertex)
pure virtual

◆ sourceCandidatePtr()

virtual CandidatePtr reco::Candidate::sourceCandidatePtr ( size_type  i) const
inlinevirtual

return a Ptr to one of the source Candidates ( the candidates used to construct this Candidate)

Reimplemented in pat::PackedCandidate, pat::Photon, pat::Tau, reco::PFTau, pat::Electron, pat::PackedGenParticle, pat::Muon, reco::PFCandidate, reco::LeafCandidate, reco::CompositePtrCandidate, and reco::LeafRefCandidateT.

Definition at line 169 of file Candidate.h.

Referenced by TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), ShiftedParticleMETcorrInputProducer::produce(), and ShiftedParticleProducer::produce().

169 { return CandidatePtr(); }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25

◆ status()

virtual int reco::Candidate::status ( ) const
pure virtual

◆ theta()

virtual double reco::Candidate::theta ( ) const
pure virtual

momentum polar angle

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

Referenced by PFSpecificAlgo::run(), and Tau.Tau::zImpact().

◆ threeCharge()

virtual int reco::Candidate::threeCharge ( ) const
pure virtual

electric charge

Implemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

◆ vertex()

virtual const Point& reco::Candidate::vertex ( ) const
pure virtual

◆ vertexChi2()

virtual double reco::Candidate::vertexChi2 ( ) const
pure virtual

◆ vertexCovariance() [1/2]

virtual double reco::Candidate::vertexCovariance ( int  i,
int  j 
) const
pure virtual

◆ vertexCovariance() [2/2]

virtual CovarianceMatrix reco::Candidate::vertexCovariance ( ) const
inlinevirtual

fill SMatrix

Reimplemented in pat::PackedCandidate, pat::PackedGenParticle, and reco::LeafCandidate.

Definition at line 195 of file Candidate.h.

References fillVertexCovariance(), and visualization-live-secondInstance_cfg::m.

195  {
198  return m;
199  } //TODO
virtual void fillVertexCovariance(CovarianceMatrix &v) const =0

◆ vertexNdof()

virtual double reco::Candidate::vertexNdof ( ) const
pure virtual

Number of degrees of freedom Meant to be Double32_t for soft-assignment fitters: tracks may contribute to the vertex with fractional weights. The ndof is then = to the sum of the track weights. see e.g. CMS NOTE-2006/032, CMS NOTE-2004/002

Implemented in pat::PackedCandidate, pat::PackedGenParticle, reco::LeafCandidate, reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

◆ vertexNormalizedChi2()

virtual double reco::Candidate::vertexNormalizedChi2 ( ) const
pure virtual

◆ vx()

virtual double reco::Candidate::vx ( ) const
pure virtual

◆ vy()

virtual double reco::Candidate::vy ( ) const
pure virtual

◆ vz()

virtual double reco::Candidate::vz ( ) const
pure virtual

◆ y()

virtual double reco::Candidate::y ( ) const
pure virtual

Friends And Related Function Documentation

◆ ::OverlapChecker

friend class ::OverlapChecker
friend

Definition at line 294 of file Candidate.h.

◆ component

template<typename , typename , typename >
friend struct component
friend

Definition at line 293 of file Candidate.h.

◆ ShallowCloneCandidate

friend class ShallowCloneCandidate
friend

Definition at line 295 of file Candidate.h.

◆ ShallowClonePtrCandidate

friend class ShallowClonePtrCandidate
friend

Definition at line 296 of file Candidate.h.