CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
reco::LeafCandidate Class Reference

#include <LeafCandidate.h>

Inheritance diagram for reco::LeafCandidate:
reco::Candidate CaloTower reco::CompositeRefCandidateT< GenParticleRefVector > l1extra::L1EmParticle l1extra::L1EtMissParticle l1extra::L1JetParticle l1extra::L1MuonParticle L1GObject L1MuKBMTrack l1t::HPSPFTau l1t::L1Candidate 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

typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
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

Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
LeafCandidateclone () const override
 returns a clone of the Candidate object More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
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...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 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...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor 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...
 
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...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type 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 void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

bool overlap (const Candidate &) const override
 check overlap with another Candidate More...
 

Private Attributes

ParticleState m_state
 

Friends

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

Additional Inherited Members

Detailed Description

particle candidate with no constituent nor daughters

Author
Luca Lista, INFN

Definition at line 16 of file LeafCandidate.h.

Member Typedef Documentation

◆ Charge

electric charge type

Definition at line 21 of file LeafCandidate.h.

◆ daughters

collection of daughter candidates

Definition at line 19 of file LeafCandidate.h.

◆ index

typedef unsigned int reco::LeafCandidate::index

Definition at line 31 of file LeafCandidate.h.

◆ LorentzVector

Lorentz vector.

Definition at line 23 of file LeafCandidate.h.

◆ Point

point in the space

Definition at line 27 of file LeafCandidate.h.

◆ PolarLorentzVector

Lorentz vector.

Definition at line 25 of file LeafCandidate.h.

◆ Vector

point in the space

Definition at line 29 of file LeafCandidate.h.

Constructor & Destructor Documentation

◆ LeafCandidate() [1/6]

reco::LeafCandidate::LeafCandidate ( )
inline

Definition at line 33 of file LeafCandidate.h.

Referenced by clone().

33 {}

◆ LeafCandidate() [2/6]

reco::LeafCandidate::LeafCandidate ( const Candidate c)
inlineexplicit

Definition at line 36 of file LeafCandidate.h.

36 : m_state(c.charge(), c.polarP4(), c.vertex(), c.pdgId(), c.status()) {}
ParticleState m_state

◆ LeafCandidate() [3/6]

template<typename... Args>
reco::LeafCandidate::LeafCandidate ( Args &&...  args)
inlineexplicit

Definition at line 40 of file LeafCandidate.h.

40 : m_state(std::forward<Args>(args)...) {}
ParticleState m_state

◆ LeafCandidate() [4/6]

reco::LeafCandidate::LeafCandidate ( LeafCandidate rh)
inline

Definition at line 42 of file LeafCandidate.h.

42 : m_state(rh.m_state) {}
ParticleState m_state

◆ LeafCandidate() [5/6]

reco::LeafCandidate::LeafCandidate ( LeafCandidate &&  )
default

◆ LeafCandidate() [6/6]

reco::LeafCandidate::LeafCandidate ( LeafCandidate const &  )
default

◆ ~LeafCandidate()

LeafCandidate::~LeafCandidate ( )
override

destructor

Definition at line 5 of file LeafCandidate.cc.

5 {}

Member Function Documentation

◆ boostToCM()

Vector reco::LeafCandidate::boostToCM ( ) const
inlinefinalvirtual

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

Implements reco::Candidate.

Definition at line 121 of file LeafCandidate.h.

References reco::ParticleState::boostToCM(), and m_state.

121 { return m_state.boostToCM(); }
ParticleState m_state
Vector boostToCM() const

◆ charge()

int reco::LeafCandidate::charge ( ) const
inlinefinalvirtual

electric charge

Implements reco::Candidate.

Definition at line 106 of file LeafCandidate.h.

References reco::ParticleState::charge(), and m_state.

Referenced by ElectronTagProbeAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), ZCountingElectrons::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronMcFakeValidator::analyze(), PFTester::analyze(), BaseTnPEfficiencyTask::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), FWPFCandidate3DProxyBuilder::build(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), egHLT::OffEle::charge(), MuonGmtPair::charge(), reco::PFTau::dump(), PFAlgo::egammaFilters(), RecoMuonValidator::MuonME::fill(), EwkElecTauHistManager::fillHistograms(), WZInterestingEventSelector::filter(), MuonMETAlgo::GetMuDepDeltas(), MuonGmtPair::gmtCharge(), reco::GsfElectron::GsfElectron(), HLTDiMuonGlbTrkFilter::hltFilter(), heppy::CMGMuonCleanerBySegmentsAlgo::isBetterMuon(), TtFullHadHypothesis::makeCandidate(), TtSemiLepHypothesis::makeCandidate(), TtFullLepHypothesis::makeCandidate(), HcalIsoTrkSimAnalyzer::notaMuon(), L1HPSPFTauQualityCut::operator()(), WPlusJetsEventSelector::operator()(), reco::LeafRefCandidateT::overlap(), overlap(), l1t::PFCandidate::PFCandidate(), reco::PFCandidate::PFCandidate(), reco::PFTauDecayMode::PFTauDecayMode(), l1t::PFTrack::PFTrack(), reco::PFRecoTauChargedHadron::print(), printPFCand(), RegressionEnergyPatElectronProducer::produce(), pat::L1MuonMatcher::produce(), SoftPFElectronTagInfoProducer::produce(), MuScleFitMuonSelector::selectMuons(), l1t::Muon::setHwCharge(), TtSemiLepHypothesis::setNeutrino(), GsfElectronAlgo::setPixelMatchInfomation(), reco::tau::RecoTauBuilderConePlugin::setTauQuantities(), reco::PFCandidate::setTrackRef(), TtSemiEvtSolution::setupHyp(), and reco::PFCandidate::translateTypeToPdgId().

106 { return m_state.charge(); }
int charge() const
electric charge
Definition: ParticleState.h:98
ParticleState m_state

◆ clone()

LeafCandidate* reco::LeafCandidate::clone ( void  ) const
inlineoverridevirtual

returns a clone of the Candidate object

Implements reco::Candidate.

Reimplemented in reco::PFJet, reco::CaloJet, reco::JPTJet, reco::GenJet, 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, l1extra::L1EmParticle, l1extra::L1JetParticle, reco::MET, pat::GenericParticle, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::Photon, reco::NamedCompositeCandidate, reco::EcalIsolatedParticleCandidate, 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::PileUpPFCandidate, reco::RecoCaloTowerCandidate, reco::IsolatedPFCandidate, reco::Electron, reco::BaseTau, reco::RecoPFClusterRefCandidate, and reco::RecoChargedRefCandidate.

Definition at line 195 of file LeafCandidate.h.

References LeafCandidate().

195 { return new LeafCandidate(*this); }

◆ construct()

void reco::LeafCandidate::construct ( int  qx3,
float  pt,
float  eta,
float  phi,
float  mass,
const Point vtx,
int  pdgId,
int  status 
)
inline

Definition at line 78 of file LeafCandidate.h.

References eta(), m_state, mass(), pdgId(), phi(), pt(), status(), and extraflags_cff::vtx.

78  {
79  m_state = ParticleState(qx3, PolarLorentzVector(pt, eta, phi, mass), vtx, pdgId, status, false);
80  }
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
int status() const final
status word
ParticleState m_state
int pdgId() const final
PDG identifier.
double mass() const final
mass
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity

◆ daughter() [1/4]

const Candidate * LeafCandidate::daughter ( size_type  ) const
overridevirtual

return daughter at a given position (throws an exception)

Implements reco::Candidate.

Reimplemented in pat::Jet, reco::NamedCompositeCandidate, reco::LeafRefCandidateT, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::ShallowCloneCandidate, reco::ShallowClonePtrCandidate, and l1t::PFJet.

Definition at line 29 of file LeafCandidate.cc.

29 { return nullptr; }

◆ daughter() [2/4]

Candidate * LeafCandidate::daughter ( size_type  )
overridevirtual

return daughter at a given position (throws an exception)

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, reco::NamedCompositeCandidate, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 45 of file LeafCandidate.cc.

45 { return nullptr; }

◆ daughter() [3/4]

Candidate * LeafCandidate::daughter ( const std::string &  s)
overridevirtual

return daughter with a specified role name

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::NamedCompositeCandidate.

Definition at line 39 of file LeafCandidate.cc.

References Exception, and edm::errors::UnimplementedFeature.

39  {
41  << "This Candidate type does not implement daughter(std::string). "
42  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
43 }

◆ daughter() [4/4]

const Candidate * LeafCandidate::daughter ( const std::string &  s) const
overridevirtual

return daughter with a specified role name

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::NamedCompositeCandidate.

Definition at line 33 of file LeafCandidate.cc.

References Exception, and edm::errors::UnimplementedFeature.

33  {
35  << "This Candidate type does not implement daughter(std::string). "
36  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
37 }

◆ energy()

double reco::LeafCandidate::energy ( ) const
inlinefinalvirtual

energy

Implements reco::Candidate.

Definition at line 125 of file LeafCandidate.h.

References reco::ParticleState::energy(), and m_state.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), JetValidation::analyze(), PatTauAnalyzer::analyze(), QcdHighPtDQM::analyze(), PFCandidateChecker::analyze(), EwkElecDQM::analyze(), ResolutionCreator::analyze(), DQMHcalDiJetsAlCaReco::analyze(), SimplePhotonAnalyzer::analyze(), PhotonValidatorMiniAOD::analyze(), IsolatedParticlesGeneratedJets::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::analyze(), PhotonAnalyzer::analyze(), FWHGCalTriggerCellProxyBuilder::build(), FWHGCalTriggerClusterProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWJetProxyBuilder::buildViewType(), reco::FlavorHistoryEvent::cache(), reco::helper::CastorJetIDHelper::calculate(), pat::LeptonJetIsolationAngle::calculate(), pat::CaloIsolationEnergy::calculate(), MEzCalculator::Calculate(), HiPuRhoProducer::calculateOrphanInput(), ElectronEnergyCalibrator::calibrate(), reco::CastorTower::CastorTower(), reco::JPTJet::chargedEmEnergyFraction(), reco::PFJet::chargedEmEnergyFraction(), pat::Jet::chargedEmEnergyFraction(), reco::JPTJet::chargedHadronEnergyFraction(), reco::PFJet::chargedHadronEnergyFraction(), pat::Jet::chargedHadronEnergyFraction(), reco::PFJet::chargedMuEnergyFraction(), pat::Jet::chargedMuEnergyFraction(), JetPlusTrackCorrector::correctAA(), L1FastjetCorrector::correction(), L1JPTOffsetCorrector::correction(), L1OffsetCorrector::correction(), L6SLBCorrector::correction(), L1FastjetCorrectorImpl::correction(), L1OffsetCorrectorImpl::correction(), L1JPTOffsetCorrectorImpl::correction(), L6SLBCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), reco::PFJet::electronEnergyFraction(), pat::Jet::electronEnergyFraction(), egHLT::OffPho::energy(), egHLT::OffEle::energy(), CaloTower::energyInHF(), CaloTower::energyInHO(), metsig::SignAlgoResolutions::evalPF(), PFJetIDSelectionFunctor::firstDataCuts(), TtSemiLepKinFitter::fit(), TtFullHadKinFitter::fit(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), PFJetBenchmark::gettrue(), CaloTower::hadP4(), reco::PFJet::HFEMEnergyFraction(), pat::Jet::HFEMEnergyFraction(), reco::PFJet::HFHadronEnergyFraction(), pat::Jet::HFHadronEnergyFraction(), reco::PFJet::hoEnergyFraction(), pat::Jet::hoEnergyFraction(), l1t::HGCalMulticluster::iEnergy(), TauValidation::leadingPionP4(), main(), EGEtScaleSysModifier::modifyObject(), reco::PFJet::muonEnergyFraction(), pat::Jet::muonEnergyFraction(), reco::JPTJet::neutralEmEnergyFraction(), reco::PFJet::neutralEmEnergyFraction(), pat::Jet::neutralEmEnergyFraction(), reco::JPTJet::neutralHadronEnergyFraction(), reco::PFJet::neutralHadronEnergyFraction(), pat::Jet::neutralHadronEnergyFraction(), EleEnergyRetriever::operator()(), TtSemiLRSignalSelObservables::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), hitfit::LeptonTranslatorBase< AElectron >::operator()(), CaloTower::p4(), reco::PFMETProducerMVA::passPFLooseId(), reco::PFJet::photonEnergyFraction(), pat::Jet::photonEnergyFraction(), CaloTowerCandidateCreator::produce(), EgammaHLTCaloTowerProducer::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), CaloTowerCreatorForTauHLT::produce(), NoPileUpPFMEtDataProducer::produce(), JetPlusTrackProducer::produce(), CastorClusterProducer::produce(), JetPlusTrackProducerAA::produce(), pat::PATTauProducer::produce(), JetIdSelector< T >::produce(), SmearedJetProducerT< T >::produce(), Jet.Jet::rawEnergy(), pf2pat::PFIsoDepositAlgo::sameParticle(), l1t::HGCalMulticluster::saveEnergyInterpretation(), FWTauProxyBuilderBase::scaleProduct(), ElectronEnergyCalibrator::setEnergyAndSystVarations(), HGCalShowerShape::sigmaRRMean(), TauValidation::spinEffectsZH(), TauValidation::visibleTauEnergy(), and heppy::FSRWeightAlgo::weight().

125 { return m_state.energy(); }
ParticleState m_state
double energy() const
energy

◆ et()

double reco::LeafCandidate::et ( ) const
inlinefinalvirtual

transverse energy

Implements reco::Candidate.

Definition at line 127 of file LeafCandidate.h.

References reco::ParticleState::et(), and m_state.

Referenced by l1t::HGCalTower::addEtEm(), l1t::HGCalTower::addEtHad(), StKinFitter::addKinFitInfo(), PatPhotonSimpleAnalyzer::analyze(), PFTester::analyze(), DQMHcalDiJetsAlCaReco::analyze(), SimplePhotonAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), HigPhotonJetHLTOfflineSource::analyze(), PhotonValidator::analyze(), PhotonAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), ExoticaDQM::analyzeMonoElectrons(), ExoticaDQM::analyzeMonoJets(), ExoticaDQM::analyzeMonoMuons(), ExoticaDQM::analyzeMonoPhotons(), EgammaObjects::analyzePhotons(), FWMETGlimpseProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWJetProxyBuilder::buildViewType(), EmDQM::checkGeneratedParticlesRequirement(), JetPlusTrackCorrector::correction(), L1JetRecoTreeProducer::doCaloMet(), L1JetRecoTreeProducer::doCaloMetBE(), L1JetRecoTreeProducer::doPFMet(), L1JetRecoTreeProducer::doPFMetNoMu(), egHLT::OffPho::et(), egHLT::OffEle::et(), l1t::TkHTMiss::EtMiss(), l1t::TkEtMiss::etMiss(), l1extra::L1EtMissParticle::etMiss(), L1TEGammaOffline::fillElectrons(), L1TStage2CaloLayer2Offline::fillJets(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), L1TEGammaOffline::fillPhotons(), TtSemiLepKinFitter::fit(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), HLTRechitInRegionsProducer< T1 >::getEtaPhiRegions(), reco::MET::mEtSig(), EGEtScaleSysModifier::modifyObject(), EG9X105XObjectUpdateModifier::modifyObject(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRSignalSelObservables::operator()(), TtHadLRSignalSelObservables::CompareET::operator()(), TtSemiLRSignalSelObservables::CompareET::operator()(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), JetEnergyShift::produce(), JetPlusTrackCorrector::rebuildJta(), FWTauProxyBuilderBase::scaleProduct(), l1tp2::CaloTower::setEcalTowerEt(), L1GObject::setEt(), l1t::EGamma::setFootprintEt(), l1tp2::CaloTower::setHcalTowerEt(), l1t::HGCalTower::setHwEtEm(), l1t::HGCalTower::setHwEtHad(), l1t::EGamma::setIsoEt(), l1tp2::CaloTower::setL1egTowerEt(), L1Analysis::L1AnalysisRecoMet::SetMet(), and l1t::EGamma::setRawEt().

127 { return m_state.et(); }
double et() const
transverse energy
ParticleState m_state

◆ et2()

double reco::LeafCandidate::et2 ( ) const
inlinefinalvirtual

transverse energy squared (use this for cut!)

Implements reco::Candidate.

Definition at line 129 of file LeafCandidate.h.

References reco::ParticleState::et2(), and m_state.

129 { return m_state.et2(); }
ParticleState m_state
double et2() const
transverse energy squared (use this for cuts)!

◆ eta()

double reco::LeafCandidate::eta ( ) const
inlinefinalvirtual

momentum pseudorapidity

Implements reco::Candidate.

Definition at line 152 of file LeafCandidate.h.

References reco::ParticleState::eta(), and m_state.

Referenced by Particle.Particle::__str__(), l1t::HGCalTower::addEt(), ZIterativeAlgorithmWithFit::addEvent(), StKinFitter::addKinFitInfo(), reco::tau::RecoTauConstructor::addPiZero(), RPCRecHitProbability::analyze(), JetValidation::analyze(), PatTauAnalyzer::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), RPCMonitorDigi::analyze(), PFCandidateChecker::analyze(), ElectronTagProbeAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), ZCountingElectrons::analyze(), EwkElecDQM::analyze(), PatPhotonSimpleAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), PFTester::analyze(), DQMHcalDiJetsAlCaReco::analyze(), JetTester::analyze(), SimplePhotonAnalyzer::analyze(), ElectronCalibration::analyze(), SimplePi0DiscAnalyzer::analyze(), PhotonValidatorMiniAOD::analyze(), DQMExample_Step1::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), B2GHadronicHLTValidation::analyze(), B2GDoubleLeptonHLTValidation::analyze(), B2GSingleLeptonHLTValidation::analyze(), GsfElectronFakeAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), GsfElectronDataAnalyzer::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::analyze(), JetTester_HeavyIons::analyze(), JetAnalyzer_HeavyIons::analyze(), IsoTrackCalib::analyze(), JetAnalyzer::analyze(), PhotonAnalyzer::analyze(), ExoticaDQM::analyzeDisplacedLeptons(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), AlignmentMuonSelector::basicCuts(), FWJetLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWPhotonLegoProxyBuilder::build(), FWMuonDetailView::build(), FWMuonLegoProxyBuilder::build(), FWGenParticleLegoProxyBuilder::build(), FWElectronDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), L1TkMuonProducer::build_tkMuons_from_idxs(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWMuonBuilder::calculateField(), HiFJGridEmptyAreaCalculator::calculateGridRho(), HiPuRhoProducer::calculateOrphanInput(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), HGCalTriggerCellCalibration::calibrateInMipT(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), l1t::PFJet::calibratePt(), l1t::PFCluster::calibratePt(), HGCalClusteringImpl::calibratePt(), hitfit::LeptonTranslatorBase< AElectron >::CheckEta(), hitfit::JetTranslatorBase< pat::Jet >::CheckEta(), PFMuonAlgo::cleanPunchThroughAndFakes(), TauNNId::compute(), construct(), JetPlusTrackCorrector::correctAA(), LXXXCorrector::correction(), L1FastjetCorrector::correction(), L1OffsetCorrector::correction(), L6SLBCorrector::correction(), LXXXCorrectorImpl::correction(), L1FastjetCorrectorImpl::correction(), L1OffsetCorrectorImpl::correction(), L6SLBCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), l1tpf::corrector::correctPt(), HGCalTriggerClusterIdentificationBDT::decision(), muonisolation::CaloExtractorByAssociator::deposits(), reco::GenJet::detectorEta(), HLTObjectsMonitor::dzFinder(), PFAlgo::egammaFilters(), FWPFCandidateDetailView::eta(), TauL1TPair::eta(), egHLT::OffPho::eta(), egHLT::OffEle::eta(), MuonGmtPair::eta(), metsig::SignAlgoResolutions::evalPF(), lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), L1ValidatorHists::Fill(), RecoMuonValidator::MuonME::fill(), ZeePlots::fillEleClassesPlots(), L1TEGammaOffline::fillElectrons(), ZeeCalibration::fillEleInfo(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), L1TStage2CaloLayer2Offline::fillJets(), l1t::MuonRawDigiTranslator::fillMuonStableQuantities(), tmtt::TP::fillNearestJetInfo(), PFCandidateBenchmark::fillOne(), L1TEGammaOffline::fillPhotons(), HcalIsoTrkSimAnalyzer::fillTree(), GenHTFilter::filter(), ModelpMSSMFilter::filter(), WZInterestingEventSelector::filter(), L1Validator::FindBest(), TtFullLepHypGenMatch::findMatchingLepton(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), TrackIsoCalculator::getBkgSubTrackIso(), calib::CalibElectron::getCalibModulesWeights(), ElectronDNNEstimator::getInputsVars(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), getTheTauJet(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), HGCalTriggerClusterInterpretationEM::interpret(), l1t::HGCalMulticluster::iPolarP4(), CosmicSplitterValidation::is_gold_muon(), PFIsolationEstimator::isChargedParticleVetoed(), BPhysicsOniaDQM::isMuonInAccept(), PFIsolationEstimator::isNeutralParticleVetoed(), EGammaMvaEleEstimator::isoMvaValue(), PFIsolationEstimator::isPhotonParticleVetoed(), FWPFCandidateDetailView::isPntInRng(), L1HPSPFTauBuilder::isWithinIsolationCone(), L1HPSPFTauBuilder::isWithinSignalCone(), L1HPSPFTauBuilder::isWithinStrip(), Jet.Jet::jetID(), main(), fireworks::makeEveJetCone(), L1MuonMatcherAlgoT< edm::Transition::BeginRun >::match(), PFIsolationEstimator::matchPFObject(), reco::RecoTauPiZero::maxDeltaEta(), EG9X105XObjectUpdateModifier::modifyObject(), MuonGmtPair::MuonGmtPair(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), WPlusJetsEventSelector::operator()(), hitfit::LeptonTranslatorBase< AElectron >::operator()(), hitfit::JetTranslatorBase< pat::Jet >::operator()(), operator<<(), pat::TriggerObjectStandAlone::packP4(), reco::PFMETProducerMVA::passPFLooseId(), PhotonAnalyzer::photonSelection(), PhotonAnalyzer::photonSelectionSlimmed(), reco::GenericJet::print(), reco::PFRecoTauChargedHadron::print(), reco::RecoTauPiZero::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), printPFCand(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), RegressionEnergyPatElectronProducer::produce(), pat::BadPFCandidateJetsEEnoiseProducer::produce(), HPSPFTauProducer::produce(), MVAJetPuIdProducer::produce(), CaloTowerCandidateCreator::produce(), EgammaHLTCaloTowerProducer::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), CaloTowerCreatorForTauHLT::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), LeptonInJetProducer< T >::produce(), GenericBoostedTauSeedsProducer< JetType, CandType >::produce(), CastorClusterProducer::produce(), JetIdSelector< T >::produce(), PileupJetIdProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T >::produce(), Jet.Jet::puJetId(), JetPlusTrackCorrector::rebuildJta(), L1TkMuonProducer::runOnMTFCollection_v1(), L1TkMuonProducer::runOnMTFCollection_v2(), pf2pat::PFIsoDepositAlgo::sameParticle(), l1t::PFTrack::setCaloEtaPhi(), L1MuKBMTrack::setCoarseEta(), L1GObject::setEta(), reco::HcalIsolatedTrackCandidate::SetEtaPhiEcal(), reco::IsolatedPixelTrackCandidate::setEtaPhiEcal(), reco::HcalIsolatedTrackCandidate::SetEtaPhiHcal(), L1MuKBMTrack::setFineEta(), l1t::L1Candidate::setHwEta(), reco::HcalIsolatedTrackCandidate::setL1(), l1t::HGCalTriggerCell::setPt(), l1t::HGCalClusterT< l1t::HGCalCluster >::setPt(), L1MuKBMTrack::setPtEtaPhi(), pat::Muon::setSimEta(), l1tp2::CaloTower::setTowerEta(), HGCalShowerShape::sigmaEtaEtaTot(), L1TkGlbMuonProducer::sigmaEtaTP(), HiFJGridEmptyAreaCalculator::tileIndexEta(), HiFJGridEmptyAreaCalculator::tileIndexEtaJet(), and HGCalTriggerClusterIdentificationBDT::value().

152 { return m_state.eta(); }
double eta() const
momentum pseudorapidity
ParticleState m_state

◆ fillVertexCovariance()

void LeafCandidate::fillVertexCovariance ( CovarianceMatrix v) const
overridevirtual

fill SMatrix

Implements reco::Candidate.

Reimplemented in reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

Definition at line 58 of file LeafCandidate.cc.

References Exception, and edm::errors::UnimplementedFeature.

Referenced by vertexCovariance().

58  {
60  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
61 }

◆ get() [1/4]

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

get a component

Definition at line 239 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), GEDPhotonProducer::fillPhotonCollection(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), HLTDiMuonGlbTrkFilter::hltFilter(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().

239  {
240  if (hasMasterClone())
241  return masterClone()->get<T>();
242  else
243  return reco::get<T>(*this);
244  }
T get() const
get a component
Definition: Candidate.h:221
bool hasMasterClone() const override
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
long double T

◆ get() [2/4]

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

◆ get() [3/4]

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

get a component

Definition at line 255 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

255  {
256  if (hasMasterClone())
257  return masterClone()->get<T>(i);
258  else
259  return reco::get<T>(*this, i);
260  }
T get() const
get a component
Definition: Candidate.h:221
bool hasMasterClone() const override
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
long double T

◆ get() [4/4]

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

get a component

Definition at line 263 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

263  {
264  if (hasMasterClone())
265  return masterClone()->get<T, Tag>(i);
266  else
267  return reco::get<T, Tag>(*this, i);
268  }
T get() const
get a component
Definition: Candidate.h:221
bool hasMasterClone() const override
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
long double T

◆ hasMasterClone()

bool LeafCandidate::hasMasterClone ( ) const
overridevirtual

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

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::ShallowCloneCandidate.

Definition at line 12 of file LeafCandidate.cc.

Referenced by get(), and numberOf().

12 { return false; }

◆ hasMasterClonePtr()

bool LeafCandidate::hasMasterClonePtr ( ) const
overridevirtual

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

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::ShallowClonePtrCandidate.

Definition at line 14 of file LeafCandidate.cc.

14 { return false; }

◆ isCaloMuon()

bool LeafCandidate::isCaloMuon ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::Muon, reco::LeafRefCandidateT, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 73 of file LeafCandidate.cc.

73 { return false; }

◆ isConvertedPhoton()

bool LeafCandidate::isConvertedPhoton ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 77 of file LeafCandidate.cc.

77 { return false; }

◆ isElectron()

bool LeafCandidate::isElectron ( ) const
overridevirtual

◆ isGlobalMuon()

bool LeafCandidate::isGlobalMuon ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::Muon, reco::LeafRefCandidateT, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 67 of file LeafCandidate.cc.

Referenced by Muon.Muon::muonID().

67 { return false; }

◆ isJet()

bool LeafCandidate::isJet ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, reco::Jet, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 79 of file LeafCandidate.cc.

79 { return false; }

◆ isMuon()

bool LeafCandidate::isMuon ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::Muon, reco::LeafRefCandidateT, l1t::PFTrack, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 65 of file LeafCandidate.cc.

65 { return false; }

◆ isPhoton()

bool LeafCandidate::isPhoton ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, reco::Photon, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 75 of file LeafCandidate.cc.

75 { return false; }

◆ isStandAloneMuon()

bool LeafCandidate::isStandAloneMuon ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::Muon, reco::LeafRefCandidateT, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 69 of file LeafCandidate.cc.

69 { return false; }

◆ isTrackerMuon()

bool LeafCandidate::isTrackerMuon ( ) const
overridevirtual

Implements reco::Candidate.

Reimplemented in reco::Muon, reco::LeafRefCandidateT, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 71 of file LeafCandidate.cc.

71 { return false; }

◆ longLived()

bool reco::LeafCandidate::longLived ( ) const
inlinefinalvirtual

is long lived?

Implements reco::Candidate.

Definition at line 187 of file LeafCandidate.h.

References reco::ParticleState::longLived(), and m_state.

187 { return m_state.longLived(); }
ParticleState m_state
bool longLived() const
is long lived?

◆ mass()

double reco::LeafCandidate::mass ( ) const
inlinefinalvirtual

◆ massConstraint()

bool reco::LeafCandidate::massConstraint ( ) const
inlinefinalvirtual

do mass constraint?

Implements reco::Candidate.

Definition at line 192 of file LeafCandidate.h.

References m_state, and reco::ParticleState::massConstraint().

Referenced by CandKinematicVertexFitter::fill().

192 { return m_state.massConstraint(); }
ParticleState m_state
bool massConstraint() const
do mass constraint?

◆ massSqr()

double reco::LeafCandidate::massSqr ( ) const
inlinefinalvirtual

mass squared

Implements reco::Candidate.

Definition at line 133 of file LeafCandidate.h.

References mass().

Referenced by EwkElecDQM::analyze().

133 { return mass() * mass(); }
double mass() const final
mass

◆ masterClone()

const CandidateBaseRef & LeafCandidate::masterClone ( ) const
overridevirtual

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

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::ShallowCloneCandidate.

Definition at line 7 of file LeafCandidate.cc.

References Exception.

Referenced by get(), masterRef(), and numberOf().

7  {
8  throw cms::Exception("Invalid Reference") << "this Candidate has no master clone reference."
9  << "Can't call masterClone() method.\n";
10 }

◆ masterClonePtr()

const CandidatePtr & LeafCandidate::masterClonePtr ( ) const
overridevirtual

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

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, and reco::ShallowClonePtrCandidate.

Definition at line 16 of file LeafCandidate.cc.

References Exception.

16  {
17  throw cms::Exception("Invalid Reference") << "this Candidate has no master clone ptr."
18  << "Can't call masterClonePtr() method.\n";
19 }

◆ masterRef()

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

cast master clone reference to a concrete type

Definition at line 233 of file LeafCandidate.h.

References masterClone().

233  {
234  return masterClone().template castTo<Ref>();
235  }
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7

◆ momentum()

Vector reco::LeafCandidate::momentum ( ) const
inlinefinalvirtual

◆ mother()

const Candidate * LeafCandidate::mother ( size_type  ) const
overridevirtual

return mother at a given position (throws an exception)

Implements reco::Candidate.

Reimplemented in reco::LeafRefCandidateT, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::ShallowCloneCandidate, and reco::ShallowClonePtrCandidate.

Definition at line 31 of file LeafCandidate.cc.

31 { return nullptr; }

◆ mt()

double reco::LeafCandidate::mt ( ) const
inlinefinalvirtual

transverse mass

Implements reco::Candidate.

Definition at line 136 of file LeafCandidate.h.

References m_state, and reco::ParticleState::mt().

Referenced by reco::WMuNuCandidate::massT(), and reco::WMuNuCandidatePtr::massT().

136 { return m_state.mt(); }
ParticleState m_state
double mt() const
transverse mass

◆ mtSqr()

double reco::LeafCandidate::mtSqr ( ) const
inlinefinalvirtual

transverse mass squared

Implements reco::Candidate.

Definition at line 138 of file LeafCandidate.h.

References m_state, and reco::ParticleState::mtSqr().

138 { return m_state.mtSqr(); }
ParticleState m_state
double mtSqr() const
transverse mass squared

◆ numberOf() [1/2]

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

number of components

Definition at line 271 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

271  {
272  if (hasMasterClone())
273  return masterClone()->numberOf<T>();
274  else
275  return reco::numberOf<T>(*this);
276  }
size_type numberOf() const
number of components
Definition: Candidate.h:253
bool hasMasterClone() const override
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
long double T

◆ numberOf() [2/2]

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

number of components

Definition at line 279 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

279  {
280  if (hasMasterClone())
281  return masterClone()->numberOf<T, Tag>();
282  else
283  return reco::numberOf<T, Tag>(*this);
284  }
size_type numberOf() const
number of components
Definition: Candidate.h:253
bool hasMasterClone() const override
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
long double T

◆ numberOfDaughters()

size_t LeafCandidate::numberOfDaughters ( ) const
overridevirtual

◆ numberOfMothers()

size_t LeafCandidate::numberOfMothers ( ) const
overridevirtual

◆ numberOfSourceCandidatePtrs()

size_t reco::LeafCandidate::numberOfSourceCandidatePtrs ( ) const
inlineoverridevirtual

return the number of source Candidates ( the candidates used to construct this Candidate)

Implements reco::Candidate.

Reimplemented in pat::Photon, pat::Tau, reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, and reco::LeafRefCandidateT.

Definition at line 100 of file LeafCandidate.h.

100 { return 0; }

◆ operator=() [1/2]

LeafCandidate& reco::LeafCandidate::operator= ( LeafCandidate &&  )
default

◆ operator=() [2/2]

LeafCandidate& reco::LeafCandidate::operator= ( LeafCandidate const &  )
default

◆ overlap()

bool LeafCandidate::overlap ( const Candidate o) const
overrideprivatevirtual

◆ p()

double reco::LeafCandidate::p ( ) const
inlinefinalvirtual

magnitude of momentum vector

Implements reco::Candidate.

Definition at line 123 of file LeafCandidate.h.

References m_state, and reco::ParticleState::p().

Referenced by ElectronMcSignalValidatorMiniAOD::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronCalibration::analyze(), HiggsDQM::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), ElectronCalibrationUniv::analyze(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), AlignmentMuonSelector::basicCuts(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), spr::chargeIsolationGenCone(), spr::chargeIsolationGenEcal(), PFMuonAlgo::cleanPunchThroughAndFakes(), CaloTower::emP4(), lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), RecoMuonValidator::MuonME::fill(), HcalIsoTrkSimAnalyzer::fillTree(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), CaloTower::hadP4(), HLTMuonTrackMassFilter::hltFilter(), BPhysicsOniaDQM::isMuonInAccept(), TauValidation::leadingPionP4(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimatorCSA14::mvaValue(), EGammaMvaEleEstimator::mvaValue(), GsfEleMinEcalEtCut::operator()(), l1t::HGCalMulticluster::KeyGetter< Iter >::operator()(), CaloTower::p4(), CaloTower::p4_HO(), reco::GenericJet::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), RegressionEnergyPatElectronProducer::produce(), Electron.Electron::ptErr(), l1t::TrackerMuon::setMuonRef(), l1t::TkMuon::setPattern(), l1t::TkGlbMuon::setTrkPtr(), l1t::TkMuon::setTrkPtr(), and GsfEleMinEcalEtCut::value().

123 { return m_state.p(); }
double p() const
magnitude of momentum vector
ParticleState m_state

◆ p4()

const LorentzVector& reco::LeafCandidate::p4 ( ) const
inlinefinalvirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 114 of file LeafCandidate.h.

References m_state, and reco::ParticleState::p4().

Referenced by reco::tau::RecoTauConstructor::addPiZero(), reco::tau::RecoTauConstructor::addTauChargedHadron(), PFCandConnector::analyseNuclearWPrim(), PFCandConnector::analyseNuclearWSec(), QcdHighPtDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), MuonPFAnalyzer::analyze(), ResolutionCreator::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), B2GDQM::analyzeAllHad(), B2GDQM::analyzeSemiE(), B2GDQM::analyzeSemiMu(), EmbeddingLHEProducer::assign_4vector(), TtSemiLepJetComb::bOverLightQPt(), TtSemiLepJetComb::bQuarkVar(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), TtSemiLepJetComb::compareBNeutrino(), TtSemiLepJetComb::compareLeptonNeutrino(), TtSemiLepJetComb::compareTopNeutrino(), TtSemiLepJetComb::compareWNeutrino(), pat::Jet::correctedP4(), pat::Tau::correctedP4(), TauJetCorrector::correction(), ZSPJPTJetCorrector::correction(), LXXXCorrector::correction(), LXXXCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), reco::GsfElectron::correctMomentum(), PFElectronTranslator::createGsfElectrons(), TtSemiLepJetComb::deduceMothers(), PFRecoTauDiscriminationByIsolation::discriminate(), PFRecoTauDiscriminationByIsolationContainer::discriminate(), l1t::TkBsCandidate::dRPhiPair(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), CaloTower::emEt(), CaloTower::et(), JetPartonMatcher::fillAlgoritDefinition(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetPartonMatcher::fillPhysicsDefinition(), VBFGenJetFilter::filter(), HLTRHemisphere::filter(), CaloTower::hadEt(), HLTDiMuonGlbTrkFilter::hltFilter(), l1t::HGCalMulticluster::iP4(), TtSemiLepJetComb::lightQVar(), TtFullLepHypothesis::makeCandidate(), ZToMuMuGammaAnalyzer::mumuGammaInvMass(), ZToMuMuGammaAnalyzer::mumuInvMass(), TtSemiLepJetComb::neutrinoVar(), TtDilepLRSignalSelObservables::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), TtSemiLRJetCombObservables::operator()(), Calculate_miniAOD::operator()(), Calculate::operator()(), CaloTower::outerEt(), reco::LeafRefCandidateT::overlap(), overlap(), CaloTower::p(), CaloTower::p4(), Lepton.Lepton::p4WithFSR(), reco::PFTauDecayMode::PFTauDecayMode(), l1t::SAMuon::print(), l1t::TrackerMuon::print(), L1TPFMetNoMuProducer::produce(), L1THLTTauMatching::produce(), DeltaBetaWeights::produce(), L1HLTTauMatching::produce(), PFJetsTauOverlapRemoval::produce(), HLTPFDiJetCorrCheckerWithDiTau::produce(), Type0PFMETcorrInputProducer::produce(), reco::PFMETProducerMVA::produce(), MuonProducer::produce(), L1CaloJetProducer::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), TauSpinnerCMS::readParticlesfromReco(), TtSemiLepJetComb::relativePtHadronicTop(), reco::PFCandidate::rescaleMomentum(), reco::GsfElectron::setCorrectedEcalEnergy(), setP4(), reco::GsfElectron::setP4(), reco::tau::RecoTauBuilderConePlugin::setTauQuantities(), TtSemiEvtSolution::setupHyp(), pat::TriggerObjectStandAlone::triggerObject(), l1t::HGCalClusterT< l1t::HGCalCluster >::updateP4AndPosition(), and l1tpf_impl::COEFile::writeTracksToFile().

114 { return m_state.p4(); }
ParticleState m_state
const LorentzVector & p4() const
four-momentum Lorentz vector

◆ pdgId()

int reco::LeafCandidate::pdgId ( ) const
inlinefinalvirtual

PDG identifier.

Implements reco::Candidate.

Definition at line 176 of file LeafCandidate.h.

References m_state, and reco::ParticleState::pdgId().

Referenced by Particle.Particle::__str__(), PFTester::analyze(), ResolutionCreator::analyze(), ZdcSimHitStudy::analyze(), ExoticaDQM::analyzeDisplacedJets(), ExoticaDQM::analyzeDisplacedLeptons(), reco::PFCandidate::bestTrack(), TopDecaySubset::checkShowerModel(), construct(), TauValidation::countParticles(), TopGenEvent::daughterQuarkOfTop(), PFIsolationEstimator::fGetIsolationInRings(), CandKinematicVertexFitter::fill(), JetPartonMatcher::fillAlgoritDefinition(), BPhysicsValidation::FillDaughters(), JetPartonMatcher::fillPhysicsDefinition(), DYToMuMuGenFilter::filter(), GenHFHadronMatcher::findHadronJets(), TauValidation::findMother(), TauValidation::FindPhotosFSR(), TauValidation::findTauList(), TauSpinnerCMS::GetLastSelf(), TauValidation::GetMother(), TauValidation::GetMothers(), ttHFGenFilter::GetTops(), PFJetBenchmark::gettrue(), TrackClassifier::hadronFlavor(), GenParticlesHelper::hasAncestor(), TauSpinnerCMS::isFirst(), TauValidation::leadingPionP4(), BasicGenParticleValidation::matchParticles(), PFIsolationEstimator::matchPFObject(), HcalIsoTrkSimAnalyzer::notaMuon(), reco::RecoTauPiZero::numberOfElectrons(), reco::RecoTauPiZero::numberOfGammas(), TtDilepLRSignalSelObservables::operator()(), l1tVertexFinder::operator<<(), reco::PFCandidate::particleId(), reco::PFRecoTauChargedHadron::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), PFTauElecRejectionBenchmark::process(), GenVisTauProducer::produce(), HLTTauMCProducer::produce(), PartonSelector::produce(), JetPartonMatcher::produce(), TauSpinnerCMS::readParticlesfromReco(), btagbtvdeep::recoCandidateToFeatures(), setPdgId(), TauValidation::spinEffectsZH(), pat::TriggerObjectStandAlone::triggerObject(), TauValidation::visibleTauEnergy(), and heppy::FSRWeightAlgo::weight().

176 { return m_state.pdgId(); }
int pdgId() const
PDG identifier.
ParticleState m_state

◆ phi()

double reco::LeafCandidate::phi ( ) const
inlinefinalvirtual

momentum azimuthal angle

Implements reco::Candidate.

Definition at line 148 of file LeafCandidate.h.

References m_state, and reco::ParticleState::phi().

Referenced by Particle.Particle::__str__(), reco::WMuNuCandidate::acop(), l1t::HGCalTower::addEt(), ZIterativeAlgorithmWithFit::addEvent(), reco::tau::RecoTauConstructor::addPiZero(), RPCRecHitProbability::analyze(), PatTauAnalyzer::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), PFCandidateChecker::analyze(), ElectronTagProbeAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), ZCountingElectrons::analyze(), EwkElecDQM::analyze(), METMonitor::analyze(), PatPhotonSimpleAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronMcFakeValidator::analyze(), ObjMonitor::analyze(), PFTester::analyze(), DQMHcalDiJetsAlCaReco::analyze(), JetTester::analyze(), TopMonitor::analyze(), SimplePhotonAnalyzer::analyze(), HTMonitor::analyze(), SimplePi0DiscAnalyzer::analyze(), PhotonValidatorMiniAOD::analyze(), HigPhotonJetHLTOfflineSource::analyze(), DQMExample_Step1::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), GsfElectronDataAnalyzer::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::analyze(), JetTester_HeavyIons::analyze(), JetAnalyzer_HeavyIons::analyze(), JetAnalyzer::analyze(), PhotonAnalyzer::analyze(), B2GDQM::analyzeAllHad(), ExoticaDQM::analyzeMonoElectrons(), ExoticaDQM::analyzeMonoJets(), ExoticaDQM::analyzeMonoMuons(), ExoticaDQM::analyzeMonoPhotons(), B2GDQM::analyzeSemiE(), B2GDQM::analyzeSemiMu(), JetTracksAssociationXtrpCalo::associateInputTracksToJet(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), AlignmentMuonSelector::basicCuts(), FWJetLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWMETGlimpseProxyBuilder::build(), FWMETLegoProxyBuilder::build(), FWPhotonLegoProxyBuilder::build(), FWL1EtMissParticleLegoProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWMuonDetailView::build(), FWMuonLegoProxyBuilder::build(), FWL1JetParticleProxyBuilder::build(), FWL1EmParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWGenParticleLegoProxyBuilder::build(), FWElectronDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWJetProxyBuilder::buildViewType(), reco::helper::CastorJetIDHelper::calculate(), GlobalHaloAlgo::Calculate(), HiPuRhoProducer::calculateOrphanInput(), PFMETBenchmark::calculateQuantities(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), l1t::PFJet::calibratePt(), l1t::PFCluster::calibratePt(), HGCalClusteringImpl::calibratePt(), TauNNId::compute(), construct(), L6SLBCorrector::correction(), L6SLBCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), EMEnrichingFilterAlgo::deltaRxyAtEE(), muonisolation::CaloExtractorByAssociator::deposits(), L1JetRecoTreeProducer::doCaloMet(), L1JetRecoTreeProducer::doCaloMetBE(), L1JetRecoTreeProducer::doPFMet(), L1JetRecoTreeProducer::doPFMetNoMu(), HLTObjectsMonitor::dzFinder(), PFAlgo::egammaFilters(), metsig::SignAlgoResolutions::evalPF(), lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), L1ValidatorHists::Fill(), RecoMuonValidator::MuonME::fill(), L1TEGammaOffline::fillElectrons(), ZeeCalibration::fillEleInfo(), JetDQM::fillHistograms(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), L1TStage2CaloLayer2Offline::fillJets(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), l1t::MuonRawDigiTranslator::fillMuonStableQuantities(), tmtt::TP::fillNearestJetInfo(), PFCandidateBenchmark::fillOne(), MatchMETBenchmark::fillOne(), L1TEGammaOffline::fillPhotons(), HcalIsoTrkSimAnalyzer::fillTree(), WZInterestingEventSelector::filter(), L1Validator::FindBest(), TtFullLepHypGenMatch::findMatchingLepton(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), l1t::HGCalMulticluster::iPolarP4(), PFIsolationEstimator::isChargedParticleVetoed(), PFIsolationEstimator::isNeutralParticleVetoed(), EGammaMvaEleEstimator::isoMvaValue(), PFIsolationEstimator::isPhotonParticleVetoed(), FWPFCandidateDetailView::isPntInRng(), L1HPSPFTauBuilder::isWithinIsolationCone(), L1HPSPFTauBuilder::isWithinSignalCone(), L1HPSPFTauBuilder::isWithinStrip(), TauL1TPair::l1tPhi(), main(), fireworks::makeEveJetCone(), L1MuonMatcherAlgoT< edm::Transition::BeginRun >::match(), PFIsolationEstimator::matchPFObject(), MuonGmtPair::MuonGmtPair(), WPlusJetsEventSelector::operator()(), JetIDStudiesSelector::operator()(), operator<<(), pat::TriggerObjectStandAlone::packP4(), FWPFCandidateDetailView::phi(), TauL1TPair::phi(), egHLT::OffPho::phi(), egHLT::OffEle::phi(), MuonGmtPair::phi(), ntupleDataFormat.Track::phiPull(), reco::GenericJet::print(), reco::PFRecoTauChargedHadron::print(), reco::RecoTauPiZero::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), printPFCand(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), RegressionEnergyPatElectronProducer::produce(), HPSPFTauProducer::produce(), MVAJetPuIdProducer::produce(), CaloTowerCandidateCreator::produce(), NoPileUpPFMEtProducer::produce(), EgammaHLTCaloTowerProducer::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), CaloTowerCreatorForTauHLT::produce(), LeptonInJetProducer< T >::produce(), reco::PFMETProducerMVA::produce(), GenericBoostedTauSeedsProducer< JetType, CandType >::produce(), CastorClusterProducer::produce(), PileupJetIdProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T >::produce(), JetPlusTrackCorrector::rebuildJta(), l1t::PFTrack::setCaloEtaPhi(), L1MuKBMTrack::setCoordinates(), L1MuKBMTrack::setCoordinatesAtMuon(), L1MuKBMTrack::setCoordinatesAtVertex(), reco::HcalIsolatedTrackCandidate::SetEtaPhiEcal(), reco::IsolatedPixelTrackCandidate::setEtaPhiEcal(), reco::HcalIsolatedTrackCandidate::SetEtaPhiHcal(), l1t::L1Candidate::setHwPhi(), reco::HcalIsolatedTrackCandidate::setL1(), L1Analysis::L1AnalysisRecoMet::SetMet(), L1GObject::setPhi(), l1t::HGCalTriggerCell::setPt(), l1t::HGCalClusterT< l1t::HGCalCluster >::setPt(), L1MuKBMTrack::setPtEtaPhi(), pat::Muon::setSimPhi(), l1tp2::CaloTower::setTowerPhi(), HGCalShowerShape::sigmaPhiPhiTot(), pat::LeptonJetIsolationAngle::spaceAngle(), HiFJGridEmptyAreaCalculator::tileIndexPhi(), reco::IsolatedPixelTrackCandidate::towerIndex(), and heppy::FSRWeightAlgo::weight().

148 { return m_state.phi(); }
ParticleState m_state
double phi() const
momentum azimuthal angle

◆ polarP4()

const PolarLorentzVector& reco::LeafCandidate::polarP4 ( ) const
inlinefinalvirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 116 of file LeafCandidate.h.

References m_state, and reco::ParticleState::polarP4().

Referenced by BaseTnPEfficiencyTask::analyze(), pat::L1MuonMatcher::produce(), pat::PATElectronProducer::setElectronMiniIso(), and pat::PATMuonProducer::setMuonMiniIso().

116 { return m_state.polarP4(); }
ParticleState m_state
const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector

◆ pt()

double reco::LeafCandidate::pt ( ) const
inlinefinalvirtual

transverse momentum

Implements reco::Candidate.

Definition at line 146 of file LeafCandidate.h.

References m_state, and reco::ParticleState::pt().

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), l1t::HGCalTower::addEt(), StKinFitter::addKinFitInfo(), reco::tau::RecoTauConstructor::addPiZero(), RPCRecHitProbability::analyze(), JetValidation::analyze(), PatTauAnalyzer::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), RPCMonitorDigi::analyze(), ElectronTagProbeAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), ZCountingElectrons::analyze(), SUSYDQMAnalyzer::analyze(), EwkElecDQM::analyze(), METMonitor::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronMcFakeValidator::analyze(), MuonPFAnalyzer::analyze(), ObjMonitor::analyze(), JetTester::analyze(), TopMonitor::analyze(), HiggsDQM::analyze(), DQMExample_Step1::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), B2GDoubleLeptonHLTValidation::analyze(), B2GHadronicHLTValidation::analyze(), B2GSingleLeptonHLTValidation::analyze(), GsfElectronFakeAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), GsfElectronDataAnalyzer::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), JetTester_HeavyIons::analyze(), JetAnalyzer_HeavyIons::analyze(), ZToMuMuGammaAnalyzer::analyze(), IsoTrackCalib::analyze(), JetAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), B2GDQM::analyzeAllHad(), ExoticaDQM::analyzeDisplacedLeptons(), B2GDQM::analyzeSemiE(), B2GDQM::analyzeSemiMu(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), AlignmentMuonSelector::basicCuts(), FWL1EmParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWL1JetParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), pat::LeptonJetIsolationAngle::calculate(), GlobalHaloAlgo::Calculate(), FWMuonBuilder::calculateField(), HiFJGridEmptyAreaCalculator::calculateGridRho(), HiPuRhoProducer::calculateOrphanInput(), PFMETBenchmark::calculateQuantities(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), HGCalClusteringDummyImpl::calibratePt(), l1t::PFCluster::calibratePt(), HGCalClusteringImpl::calibratePt(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), PFMuonAlgo::cleanMismeasured(), PFMuonAlgo::cleanPunchThroughAndFakes(), HGCalConcentratorCoarsenerImpl::coarsen(), l1tp2::compare_cluster_pt(), CMSDAS11DijetAnalyzer::compare_JetPt(), CMSDAS11DijetTestAnalyzer::compare_JetPt(), PileupJetIdAlgo::computeIdVariables(), construct(), LXXXCorrector::correction(), L1FastjetCorrector::correction(), L1OffsetCorrector::correction(), L6SLBCorrector::correction(), LXXXCorrectorImpl::correction(), L1FastjetCorrectorImpl::correction(), L1OffsetCorrectorImpl::correction(), L6SLBCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), l1tpf::corrector::correctPt(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), HGCalTriggerClusterIdentificationBDT::decision(), reco::PFTau::dump(), HLTObjectsMonitor::dzFinder(), PFAlgo::egammaFilters(), WZInterestingEventSelector::electronSelection(), l1t::PFCluster::emEt(), lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), L1ValidatorHists::Fill(), RecoMuonValidator::MuonME::fill(), JetPartonMatcher::fillAlgoritDefinition(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), METAnalyzer::fillMonitorElement(), tmtt::TP::fillNearestJetInfo(), MatchMETBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), HcalIsoTrkSimAnalyzer::fillTree(), HLTHcalMETNoiseCleaner::filter(), NJetsMC::filter(), GenHTFilter::filter(), ModelpMSSMFilter::filter(), LeptonRecoSkim::filter(), WZInterestingEventSelector::filter(), DeepTauId::findMatchedElectron(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), ElectronDNNEstimator::getInputsVars(), getTheElectron(), getTheMuon(), getTheTauJet(), L1TTauOffline::getTightMuons(), MuonGmtPair::gmtPt(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), l1t::HGCalMulticluster::iPolarP4(), l1t::HGCalMulticluster::iPt(), heppy::CMGMuonCleanerBySegmentsAlgo::isBetterMuon(), PFIsolationEstimator::isChargedParticleVetoed(), BPhysicsOniaDQM::isMuonInAccept(), EGammaMvaEleEstimator::isoMvaValue(), GsfElectronProducer::isPreselected(), TauL1TPair::l1tPt(), main(), PFIsolationEstimator::matchPFObject(), pat::MHT::mht(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), PhotonMVAEstimator::mvaValue(), EGammaMvaEleEstimatorCSA14::mvaValue(), EGammaMvaEleEstimator::mvaValue(), GsfEleMinEcalEtCut::operator()(), L1HPSPFTauQualityCut::operator()(), L2TauJetsMerger::SorterByPt::operator()(), WSelector::operator()(), TtSemiLepSignalSelMVATrainer::JetwithHigherPt::operator()(), WPlusJetsEventSelector::operator()(), TtSemiLRJetCombObservables::operator()(), ZElectronsSelector::operator()(), operator<<(), muon::overlap(), pat::TriggerObjectStandAlone::packP4(), PFEGammaFilters::passGsfElePreSelWithOnlyConeHadem(), ElectronIdentifier::passID(), l1t::PFTau::passLooseNN(), l1t::PFTau::passTightNN(), EgammaCutBasedEleId::PassTriggerCuts(), PhotonAnalyzer::photonSelection(), PhotonAnalyzer::photonSelectionSlimmed(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), PatJetAnalyzer::print(), reco::PFRecoTauChargedHadron::print(), reco::RecoTauPiZero::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), printPFCand(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), RegressionEnergyPatElectronProducer::produce(), L1HLTTauMatching::produce(), reco::ParticleFlowForChargedMETProducer::produce(), pat::BadPFCandidateJetsEEnoiseProducer::produce(), HPSPFTauProducer::produce(), MVAJetPuIdProducer::produce(), HiBadParticleCleaner::produce(), QjetsAdder::produce(), NoPileUpPFMEtProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), LeptonInJetProducer< T >::produce(), reco::PFMETProducerMVA::produce(), GenericBoostedTauSeedsProducer< JetType, CandType >::produce(), Phase1L1TJetCalibrator::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), Phase1L1TJetProducer::produce(), CandMCMatchTableProducer::produce(), PileupJetIdProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T >::produce(), TauL1TPair::pt(), egHLT::OffPho::pt(), MuonGmtPair::pt(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), l1t::L1Candidate::setHwPt(), reco::HcalIsolatedTrackCandidate::setL1(), l1t::HGCalTriggerCell::setPt(), l1t::HGCalClusterT< l1t::HGCalCluster >::setPt(), L1MuKBMTrack::setPtEtaPhi(), L1MuKBMTrack::setPtUnconstrained(), pat::Muon::setSimPt(), reco::tau::RecoTauBuilderConePlugin::setTauQuantities(), L1TMuonBarrelKalmanRegionModule::sort4(), EgammaCutBasedEleId::TestWP(), PFMuonAlgo::tracksWithBetterMET(), HGCalConcentratorCoarsenerImpl::updateCoarseTriggerCellMaps(), GsfEleMinEcalEtCut::value(), GsfEleEffAreaPFIsoCut::value(), GsfEleCalPFClusterIsoCut::value(), and HGCalTriggerClusterIdentificationBDT::value().

146 { return m_state.pt(); }
ParticleState m_state
double pt() const
transverse momentum

◆ px()

double reco::LeafCandidate::px ( ) const
inlinefinalvirtual

x coordinate of momentum vector

Implements reco::Candidate.

Definition at line 140 of file LeafCandidate.h.

References m_state, and reco::ParticleState::px().

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), EwkMuDQM::analyze(), EwkElecDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), HiggsDQM::analyze(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), pat::LeptonJetIsolationAngle::calculate(), MEzCalculator::Calculate(), HiPuRhoProducer::calculateOrphanInput(), PFMETBenchmark::calculateQuantities(), PFMuonAlgo::cleanMismeasured(), L1JPTOffsetCorrector::correction(), L1JPTOffsetCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), L1JetRecoTreeProducer::doPFMet(), L1JetRecoTreeProducer::doPFMetNoMu(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), MatchMETBenchmark::fillOne(), PFMETMonitor::fillOne(), HcalIsoTrkSimAnalyzer::fillTree(), TtSemiLepKinFitter::fit(), TtFullHadKinFitter::fit(), PFMuonAlgo::getMinMaxMET2(), L1TTauOffline::getTightMuons(), PFIsolationEstimator::isChargedParticleVetoed(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< AElectron >::operator()(), Calculate_miniAOD::operator()(), Calculate::operator()(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), MEzCalculator::Print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFTauElecRejectionBenchmark::process(), L1TPFMetNoMuProducer::produce(), NoPileUpPFMEtProducer::produce(), JetEnergyShift::produce(), Onia2MuMuPAT::produce(), JetPlusTrackProducer::produce(), reco::PFMETProducerMVA::produce(), JetPlusTrackProducerAA::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), pat::PATMETSlimmer::OneMETShift::readAndSet(), Type1PFMET::run(), pat::MET::setCorShift(), TtSemiLepHypothesis::setNeutrino(), pat::MET::setUncShift(), pat::MET::shiftedP2(), pat::MET::shiftedP2_74x(), pat::MET::shiftedP3(), pat::MET::shiftedP3_74x(), pat::MET::shiftedP4(), pat::MET::shiftedP4_74x(), reco::MET::significance(), TauValidation::spinEffectsZH(), PFMuonAlgo::tracksWithBetterMET(), TauValidation::visibleTauEnergy(), and reco::WMuNuCandidatePtr::WMuNuCandidatePtr().

140 { return m_state.px(); }
double px() const
x coordinate of momentum vector
ParticleState m_state

◆ py()

double reco::LeafCandidate::py ( ) const
inlinefinalvirtual

y coordinate of momentum vector

Implements reco::Candidate.

Definition at line 142 of file LeafCandidate.h.

References m_state, and reco::ParticleState::py().

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), EwkElecDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronMcFakeValidator::analyze(), HiggsDQM::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), pat::LeptonJetIsolationAngle::calculate(), MEzCalculator::Calculate(), HiPuRhoProducer::calculateOrphanInput(), PFMETBenchmark::calculateQuantities(), PFMuonAlgo::cleanMismeasured(), L1JPTOffsetCorrector::correction(), L1JPTOffsetCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), L1JetRecoTreeProducer::doPFMet(), L1JetRecoTreeProducer::doPFMetNoMu(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), MatchMETBenchmark::fillOne(), PFMETMonitor::fillOne(), HcalIsoTrkSimAnalyzer::fillTree(), TtSemiLepKinFitter::fit(), TtFullHadKinFitter::fit(), PFMuonAlgo::getMinMaxMET2(), L1TTauOffline::getTightMuons(), PFIsolationEstimator::isChargedParticleVetoed(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< AElectron >::operator()(), Calculate_miniAOD::operator()(), Calculate::operator()(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), MEzCalculator::Print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFTauElecRejectionBenchmark::process(), L1TPFMetNoMuProducer::produce(), NoPileUpPFMEtProducer::produce(), JetEnergyShift::produce(), Onia2MuMuPAT::produce(), JetPlusTrackProducer::produce(), reco::PFMETProducerMVA::produce(), JetPlusTrackProducerAA::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), pat::PATMETSlimmer::OneMETShift::readAndSet(), Type1PFMET::run(), pat::MET::setCorShift(), TtSemiLepHypothesis::setNeutrino(), pat::MET::setUncShift(), pat::MET::shiftedP2(), pat::MET::shiftedP2_74x(), pat::MET::shiftedP3(), pat::MET::shiftedP3_74x(), pat::MET::shiftedP4(), pat::MET::shiftedP4_74x(), reco::MET::significance(), TauValidation::spinEffectsZH(), PFMuonAlgo::tracksWithBetterMET(), and TauValidation::visibleTauEnergy().

142 { return m_state.py(); }
ParticleState m_state
double py() const
y coordinate of momentum vector

◆ pz()

double reco::LeafCandidate::pz ( ) const
inlinefinalvirtual

z coordinate of momentum vector

Implements reco::Candidate.

Definition at line 144 of file LeafCandidate.h.

References m_state, and reco::ParticleState::pz().

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), EwkMuDQM::analyze(), EwkElecDQM::analyze(), HiggsDQM::analyze(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), pat::LeptonJetIsolationAngle::calculate(), MEzCalculator::Calculate(), HiPuRhoProducer::calculateOrphanInput(), L1JPTOffsetCorrector::correction(), L1JPTOffsetCorrectorImpl::correction(), JetPlusTrackCorrector::correction(), EMEnrichingFilterAlgo::deltaRxyAtEE(), HcalIsoTrkSimAnalyzer::fillTree(), TtSemiLepKinFitter::fit(), TtFullHadKinFitter::fit(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< AElectron >::operator()(), reco::GenericJet::print(), MEzCalculator::Print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFTauElecRejectionBenchmark::process(), Onia2MuMuPAT::produce(), JetPlusTrackProducer::produce(), JetPlusTrackProducerAA::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), setPz(), TauValidation::spinEffectsZH(), and TauValidation::visibleTauEnergy().

144 { return m_state.pz(); }
ParticleState m_state
double pz() const
z coordinate of momentum vector

◆ rapidity()

double reco::LeafCandidate::rapidity ( ) const
inlinefinalvirtual

rapidity

Implements reco::Candidate.

Definition at line 154 of file LeafCandidate.h.

References m_state, and reco::ParticleState::rapidity().

Referenced by B2GDQM::analyzeAllHad(), B2GDQM::analyzeSemiE(), B2GDQM::analyzeSemiMu(), and y().

154 { return m_state.rapidity(); }
double rapidity() const
repidity
ParticleState m_state

◆ setCharge()

void reco::LeafCandidate::setCharge ( Charge  q)
inlinefinalvirtual

◆ setLongLived()

void reco::LeafCandidate::setLongLived ( )
inlinefinalvirtual

long lived flag set long lived flag

Implements reco::Candidate.

Definition at line 185 of file LeafCandidate.h.

References m_state, and reco::ParticleState::setLongLived().

185 { m_state.setLongLived(); }
ParticleState m_state
void setLongLived()
set long lived flag

◆ setMass()

void reco::LeafCandidate::setMass ( double  m)
inlinefinalvirtual

◆ setMassConstraint()

void reco::LeafCandidate::setMassConstraint ( )
inlinefinalvirtual

do mass constraint flag set mass constraint flag

Implements reco::Candidate.

Definition at line 190 of file LeafCandidate.h.

References m_state, and reco::ParticleState::setMassConstraint().

void setMassConstraint()
set mass constraint flag
ParticleState m_state

◆ setP4() [1/2]

void reco::LeafCandidate::setP4 ( const LorentzVector p4)
inlinefinalvirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 158 of file LeafCandidate.h.

References m_state, p4(), and reco::ParticleState::setP4().

Referenced by l1t::HGCalTower::addEt(), ParticleLevelProducer::addGenJet(), EMEnrichingFilterAlgo::applyBFieldCurv(), L1HPSPFTauBuilder::buildL1PFTau(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), l1t::PFJet::calibratePt(), l1t::PFCluster::calibratePt(), HGCalClusteringImpl::calibratePt(), PFMuonAlgo::changeTrack(), HGCalConcentratorCoarsenerImpl::coarsen(), PFRecoTauDiscriminationByIsolation::discriminate(), PFRecoTauDiscriminationByIsolationContainer::discriminate(), L1JetRecoTreeProducer::doPFMetNoMu(), HGCalConcentratorTrigSumImpl::doSum(), PFAlgo::egammaFilters(), pat::GenericParticle::fillInFrom(), pat::PATMuonProducer::fillMuon(), l1t::MuonRawDigiTranslator::fillMuonStableQuantities(), L1GObject::initialize(), OniaPhotonConversionProducer::makePhotonCandidate(), TransientVertex::operator reco::VertexCompositePtrCandidate(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), pat::TriggerObjectStandAlone::packP4(), reco::PFTauDecayMode::PFTauDecayMode(), L1TPFMetNoMuProducer::produce(), ParticleLevelProducer::produce(), DeltaBetaWeights::produce(), TrackstersMergeProducer::produce(), ShiftedPFCandidateProducerByMatchedObject::produce(), CaloTruthCellsProducer::produce(), NoPileUpPFMEtProducer::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), ShiftedParticleProducer::produce(), PuppiPhoton::produce(), pat::PATJetUpdater::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), Onia2MuMuPAT::produce(), NoPileUpPFMEtDataProducer::produce(), reco::PFMETProducerMVA::produce(), SoftKillerProducer::produce(), MuonProducer::produce(), reco::PFCandidate::rescaleMomentum(), HGCalVFEProcessorSums::run(), HGCalConcentratorAutoEncoderImpl::select(), Jet.Jet::setCorrP4(), MEzCalculator::SetLepton(), MEzCalculator::SetMET(), l1t::HGCalTriggerCell::setPt(), l1t::HGCalClusterT< l1t::HGCalCluster >::setPt(), L1MuKBMTrack::setPtEtaPhi(), l1t::stage2::MPUnpacker_0x10010033::unpack(), l1t::stage2::MPUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010010::unpack(), l1t::stage2::MPUnpacker_0x1001000b::unpack(), l1t::stage2::EGammaUnpacker::unpack(), l1t::HGCalClusterT< l1t::HGCalCluster >::updateP4AndPosition(), and VirtualJetProducer::writeJetsWithConstituents().

158 { m_state.setP4(p4); }
ParticleState m_state
const LorentzVector & p4() const final
four-momentum Lorentz vector
void setP4(const LorentzVector &p4)
set 4-momentum

◆ setP4() [2/2]

void reco::LeafCandidate::setP4 ( const PolarLorentzVector p4)
inlinefinalvirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 160 of file LeafCandidate.h.

References m_state, p4(), and reco::ParticleState::setP4().

Referenced by Jet.Jet::setCorrP4().

160 { m_state.setP4(p4); }
ParticleState m_state
const LorentzVector & p4() const final
four-momentum Lorentz vector
void setP4(const LorentzVector &p4)
set 4-momentum

◆ setPdgId()

void reco::LeafCandidate::setPdgId ( int  pdgId)
inlinefinalvirtual

◆ setPz()

void reco::LeafCandidate::setPz ( double  pz)
inlinefinalvirtual

Implements reco::Candidate.

Definition at line 163 of file LeafCandidate.h.

References m_state, pz(), and reco::ParticleState::setPz().

163 { m_state.setPz(pz); }
double pz() const final
z coordinate of momentum vector
void setPz(double pz)
ParticleState m_state

◆ setStatus()

void reco::LeafCandidate::setStatus ( int  status)
inlinefinalvirtual

set status word

Implements reco::Candidate.

Definition at line 182 of file LeafCandidate.h.

References m_state, reco::ParticleState::setStatus(), and status().

Referenced by pat::GenericParticle::fillInFrom(), and reco::PFTauDecayMode::PFTauDecayMode().

int status() const final
status word
ParticleState m_state
void setStatus(int status)
set status word

◆ setThreeCharge()

void reco::LeafCandidate::setThreeCharge ( Charge  qx3)
inlinefinalvirtual

set electric charge

Implements reco::Candidate.

Definition at line 112 of file LeafCandidate.h.

References m_state, and reco::ParticleState::setThreeCharge().

112 { m_state.setThreeCharge(qx3); }
ParticleState m_state
void setThreeCharge(Charge qx3)
set electric charge

◆ setVertex()

void reco::LeafCandidate::setVertex ( const Point vertex)
inlineoverridevirtual

◆ sourceCandidatePtr()

CandidatePtr reco::LeafCandidate::sourceCandidatePtr ( size_type  i) const
inlineoverridevirtual

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

Reimplemented from reco::Candidate.

Reimplemented in pat::Photon, pat::Tau, reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, and reco::LeafRefCandidateT.

Definition at line 103 of file LeafCandidate.h.

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

◆ status()

int reco::LeafCandidate::status ( ) const
inlinefinalvirtual

◆ theta()

double reco::LeafCandidate::theta ( ) const
inlinefinalvirtual

◆ threeCharge()

int reco::LeafCandidate::threeCharge ( ) const
inlinefinalvirtual

electric charge

Implements reco::Candidate.

Definition at line 110 of file LeafCandidate.h.

References m_state, and reco::ParticleState::threeCharge().

110 { return m_state.threeCharge(); }
int threeCharge() const
electric charge
ParticleState m_state

◆ vertex()

const Point& reco::LeafCandidate::vertex ( ) const
inlineoverridevirtual

◆ vertexChi2()

double LeafCandidate::vertexChi2 ( ) const
overridevirtual

chi-squares

Implements reco::Candidate.

Reimplemented in reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

Definition at line 47 of file LeafCandidate.cc.

47 { return 0; }

◆ vertexCovariance() [1/2]

double LeafCandidate::vertexCovariance ( int  i,
int  j 
) const
overridevirtual

(i, j)-th element of error matrix, i, j = 0, ... 2

Implements reco::Candidate.

Reimplemented in reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

Definition at line 53 of file LeafCandidate.cc.

References Exception, and edm::errors::UnimplementedFeature.

53  {
55  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
56 }

◆ vertexCovariance() [2/2]

CovarianceMatrix reco::LeafCandidate::vertexCovariance ( ) const
inlinefinalvirtual

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 211 of file LeafCandidate.h.

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

Referenced by reco::VertexCompositePtrCandidate::tError().

211  {
214  return m;
215  }
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix

◆ vertexNdof()

double LeafCandidate::vertexNdof ( ) const
overridevirtual

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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

Definition at line 49 of file LeafCandidate.cc.

49 { return 0; }

◆ vertexNormalizedChi2()

double LeafCandidate::vertexNormalizedChi2 ( ) const
overridevirtual

chi-squared divided by n.d.o.f.

Implements reco::Candidate.

Reimplemented in reco::VertexCompositePtrCandidate, and reco::VertexCompositeCandidate.

Definition at line 51 of file LeafCandidate.cc.

51 { return 0; }

◆ vx()

double reco::LeafCandidate::vx ( ) const
inlineoverridevirtual

x coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate, and l1t::TkPhiCandidate.

Definition at line 167 of file LeafCandidate.h.

References m_state, and reco::ParticleState::vx().

Referenced by reco::PFTau::dump().

167 { return m_state.vx(); }
ParticleState m_state
double vx() const
x coordinate of vertex position

◆ vy()

double reco::LeafCandidate::vy ( ) const
inlineoverridevirtual

y coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate, and l1t::TkPhiCandidate.

Definition at line 169 of file LeafCandidate.h.

References m_state, and reco::ParticleState::vy().

Referenced by reco::PFTau::dump().

169 { return m_state.vy(); }
ParticleState m_state
double vy() const
y coordinate of vertex position

◆ vz()

double reco::LeafCandidate::vz ( ) const
inlineoverridevirtual

z coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate, and l1t::TkPhiCandidate.

Definition at line 171 of file LeafCandidate.h.

References m_state, and reco::ParticleState::vz().

Referenced by HLTDoubletDZ< T1, T2 >::computeDZ(), reco::PFTau::dump(), HLTObjectsMonitor::dzFinder(), l1t::TkBsCandidate::dzPhiPair(), and egHLT::OffPho::zVtx().

171 { return m_state.vz(); }
ParticleState m_state
double vz() const
z coordinate of vertex position

◆ y()

double reco::LeafCandidate::y ( ) const
inlinefinalvirtual

Friends And Related Function Documentation

◆ ::OverlapChecker

friend class ::OverlapChecker
friend

Definition at line 304 of file LeafCandidate.h.

◆ component

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

Definition at line 303 of file LeafCandidate.h.

◆ ShallowCloneCandidate

friend class ShallowCloneCandidate
friend

Definition at line 305 of file LeafCandidate.h.

◆ ShallowClonePtrCandidate

friend class ShallowClonePtrCandidate
friend

Definition at line 306 of file LeafCandidate.h.

Member Data Documentation

◆ m_state

ParticleState reco::LeafCandidate::m_state
private