CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Friends
reco::Candidate Class Referenceabstract

#include <Candidate.h>

Inheritance diagram for reco::Candidate:
reco::LeafCandidate reco::LeafRefCandidateT< T > CaloTower reco::CompositeRefCandidateT< GenParticleRefVector > l1extra::L1EmParticle l1extra::L1EtMissParticle l1extra::L1JetParticle l1extra::L1MuonParticle 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::RecoCandidate reco::ShallowCloneCandidate reco::ShallowClonePtrCandidate reco::RecoChargedRefCandidate reco::RecoPFClusterRefCandidate

Classes

struct  daughter_iterator
 

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

virtual const_iterator begin () const =0
 first daughter const_iterator More...
 
virtual iterator begin ()=0
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) 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 const_iterator end () const =0
 last daughter const_iterator More...
 
virtual iterator end ()=0
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const =0
 energy More...
 
virtual double et () const =0
 transverse energy 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 29 of file Candidate.h.

Member Typedef Documentation

electric charge type

Definition at line 36 of file Candidate.h.

Definition at line 32 of file Candidate.h.

covariance error matrix (3x3)

Definition at line 48 of file Candidate.h.

typedef unsigned int reco::Candidate::index

index type

Definition at line 52 of file Candidate.h.

Definition at line 33 of file Candidate.h.

Lorentz vector.

Definition at line 38 of file Candidate.h.

point in the space

Definition at line 42 of file Candidate.h.

Lorentz vector.

Definition at line 40 of file Candidate.h.

Definition at line 31 of file Candidate.h.

point in the space

Definition at line 44 of file Candidate.h.

Member Enumeration Documentation

anonymous enum
Enumerator
dimension 

Definition at line 46 of file Candidate.h.

anonymous enum

matix size

Enumerator
size 

Definition at line 50 of file Candidate.h.

Constructor & Destructor Documentation

reco::Candidate::Candidate ( )
inline

default constructor

Definition at line 55 of file Candidate.h.

Referenced by GeneratorTau::computeStableDecayProducts(), GeneratorTau::decayToPDGClassification(), and GeneratorTau::getLeadTrack().

55 {};
Candidate::~Candidate ( )
virtual

destructor

Definition at line 5 of file Candidate.cc.

5 { }

Member Function Documentation

virtual const_iterator reco::Candidate::begin ( ) const
pure virtual
virtual iterator reco::Candidate::begin ( )
pure virtual
template<typename S >
daughter_iterator<S>::type reco::Candidate::beginFilter ( const S &  s) const
inline

Definition at line 252 of file Candidate.h.

References begin(), and end().

252  {
253  return boost::make_filter_iterator(s, begin(), end());
254  }
virtual const_iterator end() const =0
last daughter const_iterator
virtual const_iterator begin() const =0
first daughter const_iterator
virtual Vector reco::Candidate::boostToCM ( ) const
pure virtual

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

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

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

electric charge

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

Referenced by GlbMuQualityCutsAnalysis::analyze(), ZHistogrammer::analyze(), ZMassHistogrammer::analyze(), ZMCHistogrammer::analyze(), ZMuMuPerformances::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), CandCombinerBase< OutputCollection, CandPtr >::combine(), TtDecayChannelSelector::countProngs(), reco::isodeposit::IsoDepositExtractor::deposit(), reco::isodeposit::IsoDepositExtractor::deposits(), PFTauDiscriminants::OutlierNCharged::doComputation(), PFTauDiscriminants::TrackPt::doComputation(), PFTauDiscriminants::PiZeroPt::doComputation(), PFTauDiscriminants::GammaOccupancy::doComputation(), PFTauDiscriminants::GammaPt::doComputation(), PFTauDiscriminants::TrackAngle::doComputation(), PFTauDiscriminants::PiZeroAngle::doComputation(), PFTauDiscriminants::ChargedOutlierPt::doComputation(), PFTauDiscriminants::ChargedOutlierSumPt::doComputation(), PFTauDiscriminants::ChargedOutlierAngle::doComputation(), PFTauDiscriminants::NeutralOutlierPt::doComputation(), PFTauDiscriminants::NeutralOutlierSumPt::doComputation(), PFTauDiscriminants::NeutralOutlierAngle::doComputation(), HICaloUtil::EcalPhi(), CandIsoDepositProducer::extractTrack(), pat::GenericParticle::fillInFrom(), CandidateBenchmark::fillOne(), reco::PFTauDecayMode::filteredObjectCandidates(), TtDilepEvtSolutionMaker::HasPositiveCharge(), TtFullLepKinSolutionProducer::HasPositiveCharge(), TtDilepEvtSolutionMaker::LepDiffCharge(), TtFullLepKinSolutionProducer::LepDiffCharge(), MatcherUsingTracksAlgorithm::match(), MatcherByPullsAlgorithm::match(), helpers::MCTruthPairSelector< T >::operator()(), reco::LeafRefCandidateT< T >::overlap(), reco::LeafCandidate::overlap(), fireworks::prepareCandidate(), CandCombinerBase< OutputCollection, CandPtr >::preselect(), NamedCandCombinerBase::preselect(), pat::L1MuonMatcher::produce(), pat::HLTL1MuonMatcher::produce(), ZToLLEdmNtupleDumper::produce(), AddFourMomenta::set(), PropagateToMuon::startingState(), and MatcherUsingTracksAlgorithm::startingState().

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

returns a clone of the Candidate object

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

Referenced by reco::NamedCompositeCandidate::addDaughter(), reco::CompositeCandidate::addDaughter(), and cloneDecayTree().

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

return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)

Implemented in pat::Jet, reco::LeafCandidate, reco::CompositeCandidate, reco::LeafRefCandidateT< T >, reco::NamedCompositeCandidate, reco::CompositePtrCandidate, reco::CompositeRefCandidateT< D >, reco::ShallowCloneCandidate, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::CompositeRefCandidate, reco::ShallowClonePtrCandidate, and reco::CompositeRefBaseCandidate.

Referenced by helper::CandDecayStoreManager::add(), ZMassHistogrammer::analyze(), ZMCHistogrammer::analyze(), ZHistogrammer::analyze(), myFastSimVal::analyze(), ZMuMuEfficiency::analyze(), testAnalyzer::analyze(), HLTMCtruth::analyze(), ZGlobalVsSAIsolationAnalyzer::analyze(), ZMuMuPerformances::analyze(), ZMuMuIsolationAnalyzer::analyze(), ZMuMuSaMassHistogram::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), ZMuMu_vtxAnalyzer::analyze(), ZMuMuAnalyzer::analyze(), MCEfficiencyAnalyzer::analyze(), ZMuMuAnalyzer_cynematics::analyze(), ZMuMu_MCanalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), MCAcceptanceAnalyzer::analyze(), ErsatzMEt::analyze(), TtFullLeptonicEvent::b(), TtFullLeptonicEvent::bBar(), cloneDecayTree(), reco::CompositeCandidate::CompositeCandidate(), reco::ShallowCloneCandidate::daughter(), ParticleDecayDrawer::decay(), CandCommonVertexFitterBase::fill(), PFCandCommonVertexFitterBase::fill(), CandKinematicVertexFitter::fill(), ZToMuMuFilter::filter(), reco::modules::JetFlavourIdentifier::findCandidates(), PFTauDiscriminants::PFTauDiscriminantManager::getLeafDaughters(), ZMuMuEfficiency::getParticleEta(), ZMuMuPerformances::getParticleEta(), ZMuMu_efficiencyAnalyzer::getParticleEta(), ZMuMu_vtxAnalyzer::getParticleEta(), ZMuMu_MCanalyzer::getParticleEta(), ZMuMuEfficiency::getParticleP4(), ZMuMuPerformances::getParticleP4(), ZMuMu_vtxAnalyzer::getParticleP4(), ZMuMu_efficiencyAnalyzer::getParticleP4(), ZMuMu_MCanalyzer::getParticleP4(), ZMuMuEfficiency::getParticlePhi(), ZMuMuPerformances::getParticlePhi(), ZMuMu_efficiencyAnalyzer::getParticlePhi(), ZMuMu_vtxAnalyzer::getParticlePhi(), ZMuMu_MCanalyzer::getParticlePhi(), ZMuMuEfficiency::getParticlePt(), ZMuMuPerformances::getParticlePt(), ZMuMu_efficiencyAnalyzer::getParticlePt(), ZMuMu_vtxAnalyzer::getParticlePt(), ZMuMu_MCanalyzer::getParticlePt(), MuScleFitMuonSelector::getStatus1Muon(), GenHFHadronMatcher::hasHadronDaughter(), ParticleDecayDrawer::hasValidDaughters(), ParticleTreeDrawer::hasValidDaughters(), helicityAngle(), ZMuMuAnalyzer_cynematics::isContained(), TtFullLeptonicEvent::lepton(), TtFullLeptonicEvent::leptonBar(), mcMuDaughter(), PFRecoTauDecayModeDeterminator::mergePiZeroes(), dimuonHLTFilterCheck::nDimuonsByType(), TtFullLeptonicEvent::neutrino(), TtFullLeptonicEvent::neutrinoBar(), ZMuMuOverlap::operator()(), CompositeCandSelector< Selector, T1, T2, nDau >::operator()(), GenJetParticleSelector::operator()(), modules::ZHLTMatchFilter::operator()(), ZSelector::operator()(), ZGoldenFilter::operator()(), ZToMuMuIsolationSelector< Isolator >::operator()(), ZToMuMuIsoDepositSelector< Isolator >::operator()(), reco::utilsNew::CandMatcher< C >::operator[](), reco::PFTauDecayMode::pfMasterClones(), ParticleTreeDrawer::printDecay(), GenParticles2HepMCConverter::produce(), ZToLLEdmNtupleDumper::produce(), TauSpinnerCMS::readParticlesfromReco(), tnp::TagProbePairMaker::run(), CandMassKinFitter::set(), AddFourMomenta::set(), TtFullLeptonicEvent::wMinus(), TtFullLeptonicEvent::wPlus(), and zMCLeptonDaughters().

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

return daughter with a specified role name

Implemented in reco::LeafCandidate, reco::CompositeCandidate, reco::LeafRefCandidateT< T >, and reco::NamedCompositeCandidate.

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

return daughter with a specified role name

Implemented in reco::LeafCandidate, reco::CompositeCandidate, reco::LeafRefCandidateT< T >, and reco::NamedCompositeCandidate.

virtual const_iterator reco::Candidate::end ( ) const
pure virtual
virtual iterator reco::Candidate::end ( )
pure virtual
template<typename S >
daughter_iterator<S>::type reco::Candidate::endFilter ( const S &  s) const
inline

Definition at line 256 of file Candidate.h.

References end().

256  {
257  return boost::make_filter_iterator(s, end(), end());
258  }
virtual const_iterator end() const =0
last daughter const_iterator
virtual double reco::Candidate::energy ( ) const
pure virtual
virtual double reco::Candidate::et ( ) const
pure virtual
virtual double reco::Candidate::eta ( ) const
pure virtual

momentum pseudorapidity

Implemented in reco::LeafCandidate, reco::LeafRefCandidateT< T >, reco::CastorTower, and reco::EcalIsolatedParticleCandidate.

Referenced by GenericBenchmark::accepted(), DimuonStatistics::analyze(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), HypothesisAnalyzer::analyze(), ZMuMuEfficiency::analyze(), HLTMCtruth::analyze(), ZMuMuPerformances::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), ZMuMu_vtxAnalyzer::analyze(), dimuonHLTFilterCheck::analyze(), MCEfficiencyAnalyzer::analyze(), ZMuMu_MCanalyzer::analyze(), gamma_radiative_analyzer::analyze(), MCAcceptanceAnalyzer::analyze(), TopValidation::analyze(), FWCandidateLegoProxyBuilder::build(), egammaisolation::EgammaTrackExtractor::deposit(), HICaloUtil::EcalEta(), HICaloUtil::EcalPhi(), GenericBenchmark::fill(), PFCandidateMonitor::fill(), PFJetMonitor::fill(), GenericBenchmark::fillHistos(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), PFCandidateMonitor::fillOne(), ZToMuMuFilter::filter(), PFFilter::filter(), PFMETFilter::filter(), PFJetFilter::filter(), HLTMuonPlotter::findMatches(), HiGammaJetSignalDef::getDeltaR(), PhotonTkIsolation::getIso(), ZMuMuEfficiency::getParticleEta(), ZMuMuPerformances::getParticleEta(), ZMuMu_efficiencyAnalyzer::getParticleEta(), ZMuMu_vtxAnalyzer::getParticleEta(), ZMuMu_MCanalyzer::getParticleEta(), CMSMidpointAlgorithm::iterateCone(), MatcherByPullsAlgorithm::match(), ZSelector::operator()(), operator<<(), HLTmmkkFilter::overlap(), HLTmmkFilter::overlap(), ParticleTreeDrawer::printInfo(), ParticleDecayDrawer::printP4(), TtEvent::printParticle(), CandOneToManyDeltaRMatcher::produce(), CastorFastClusterProducer::produce(), CastorFastTowerProducer::produce(), ZMuMuUserDataOneTrack::produce(), ZMuMuUserData::produce(), ZToLLEdmNtupleDumper::produce(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), and CMSIterativeConeAlgorithm::run().

virtual void reco::Candidate::fillVertexCovariance ( CovarianceMatrix v) const
pure virtual
template<typename T >
T reco::Candidate::get ( void  ) const
inline

get a component

Definition at line 216 of file Candidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), ZMuMuPerformances::analyze(), ZMuMuSaMassHistogram::analyze(), dimuonHLTFilterCheck::analyze(), egammaisolation::EgammaRecHitExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaEcalExtractor::deposit(), egammaisolation::EgammaTowerExtractor::deposit(), ZGlobalVsSAIsolationAnalyzer::evaluate(), CandCommonVertexFitterBase::fill(), CandKinematicVertexFitter::fill(), betterConfigParser.BetterConfigParser::getCompares(), EgammaEcalIsolation::getEcalEtSum(), betterConfigParser.BetterConfigParser::getGeneral(), EgammaHcalIsolation::getHcalESum(), EgammaHcalIsolation::getHcalESumDepth1(), EgammaHcalIsolation::getHcalESumDepth2(), EgammaHcalIsolation::getHcalEtSum(), EgammaHcalIsolation::getHcalEtSumDepth1(), EgammaHcalIsolation::getHcalEtSumDepth2(), betterConfigParser.BetterConfigParser::getResultingSection(), EgammaRecHitIsolation::getSum_(), EgammaTowerIsolation::getTowerESum(), EgammaTowerIsolation::getTowerEtSum(), ZMuMuAnalyzer_cynematics::isContained(), JetMaker::makeSpecific(), reco::makeSpecific(), ZMuMuOverlap::operator()(), ZMuMuUserData::produce(), ZToLLEdmNtupleDumper::produce(), and CandMassKinFitter::set().

216  {
217  if ( hasMasterClone() ) return masterClone()->get<T>();
218  else return reco::get<T>( * this );
219  }
virtual bool hasMasterClone() const =0
T get() const
get a component
Definition: Candidate.h:216
long double T
virtual const CandidateBaseRef & masterClone() const =0
template<typename T , typename Tag >
T reco::Candidate::get ( void  ) 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(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

221  {
222  if ( hasMasterClone() ) return masterClone()->get<T, Tag>();
223  else return reco::get<T, Tag>( * this );
224  }
virtual bool hasMasterClone() const =0
T get() const
get a component
Definition: Candidate.h:216
long double T
virtual const CandidateBaseRef & masterClone() const =0
template<typename T >
T reco::Candidate::get ( size_type  i) const
inline

get a component

Definition at line 226 of file Candidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

226  {
227  if ( hasMasterClone() ) return masterClone()->get<T>( i );
228  else return reco::get<T>( * this, i );
229  }
int i
Definition: DBlmapReader.cc:9
virtual bool hasMasterClone() const =0
T get() const
get a component
Definition: Candidate.h:216
long double T
virtual const CandidateBaseRef & masterClone() const =0
template<typename T , typename Tag >
T reco::Candidate::get ( size_type  i) const
inline

get a component

Definition at line 231 of file Candidate.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

231  {
232  if ( hasMasterClone() ) return masterClone()->get<T, Tag>( i );
233  else return reco::get<T, Tag>( * this, i );
234  }
int i
Definition: DBlmapReader.cc:9
virtual bool hasMasterClone() const =0
T get() const
get a component
Definition: Candidate.h:216
long double T
virtual const CandidateBaseRef & masterClone() const =0
virtual bool reco::Candidate::hasMasterClone ( ) const
pure virtual
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 reco::LeafCandidate, reco::LeafRefCandidateT< T >, and reco::ShallowClonePtrCandidate.

virtual bool reco::Candidate::isCaloMuon ( ) const
pure virtual
virtual bool reco::Candidate::isConvertedPhoton ( ) const
pure virtual
virtual bool reco::Candidate::isElectron ( ) const
pure virtual
virtual bool reco::Candidate::isGlobalMuon ( ) const
pure virtual
virtual bool reco::Candidate::isJet ( ) const
pure virtual
virtual bool reco::Candidate::isMuon ( ) const
pure virtual
virtual bool reco::Candidate::isPhoton ( ) const
pure virtual
virtual bool reco::Candidate::isStandAloneMuon ( ) const
pure virtual
virtual bool reco::Candidate::isTrackerMuon ( ) const
pure virtual
virtual bool reco::Candidate::longLived ( ) const
pure virtual

is long lived?

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

Referenced by CandKinematicVertexFitter::set().

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

do mass constraint?

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

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

mass squared

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

virtual const CandidateBaseRef& reco::Candidate::masterClone ( ) const
pure virtual
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 reco::LeafCandidate, reco::LeafRefCandidateT< T >, and reco::ShallowClonePtrCandidate.

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

cast master clone reference to a concrete type

Definition at line 213 of file Candidate.h.

References masterClone().

213 { return masterClone().template castTo<Ref>(); }
virtual const CandidateBaseRef & masterClone() const =0
virtual Vector reco::Candidate::momentum ( ) const
pure virtual
virtual const Candidate* reco::Candidate::mother ( size_type  i = 0) const
pure virtual
virtual double reco::Candidate::mt ( ) const
pure virtual

transverse mass

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

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

transverse mass squared

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

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

number of components

Definition at line 236 of file Candidate.h.

References hasMasterClone(), and masterClone().

236  {
237  if ( hasMasterClone() ) return masterClone()->numberOf<T>();
238  else return reco::numberOf<T>( * this );
239  }
virtual bool hasMasterClone() const =0
size_type numberOf() const
number of components
Definition: Candidate.h:236
long double T
virtual const CandidateBaseRef & masterClone() const =0
template<typename T , typename Tag >
size_type reco::Candidate::numberOf ( ) const
inline

number of components

Definition at line 241 of file Candidate.h.

References hasMasterClone(), and masterClone().

241  {
242  if ( hasMasterClone() ) return masterClone()->numberOf<T, Tag>();
243  else return reco::numberOf<T, Tag>( * this );
244  }
virtual bool hasMasterClone() const =0
size_type numberOf() const
number of components
Definition: Candidate.h:236
long double T
virtual const CandidateBaseRef & masterClone() const =0
virtual size_type reco::Candidate::numberOfDaughters ( ) const
pure virtual

number of daughters

Implemented in pat::Jet, reco::LeafCandidate, reco::CompositeCandidate, reco::LeafRefCandidateT< T >, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::CompositeRefCandidateT< D >, reco::ShallowCloneCandidate, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::ShallowClonePtrCandidate, and reco::CompositeRefBaseCandidate.

Referenced by helper::CandDecayStoreManager::add(), ZHistogrammer::analyze(), ZMassHistogrammer::analyze(), ZMCHistogrammer::analyze(), myFastSimVal::analyze(), ZMuMuEfficiency::analyze(), HLTMCtruth::analyze(), MCEfficiencyAnalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), MCAcceptanceAnalyzer::analyze(), ErsatzMEt::analyze(), reco::PFTauDecayMode::associatedChargedPFCandidates(), reco::PFTauDecayMode::associatedNeutralPFCandidates(), TopDecaySubset::checkShowerModel(), cloneDecayTree(), reco::CompositeCandidate::CompositeCandidate(), CandMatcher< C1, C2 >::compositePreselect(), ParticleDecayDrawer::decay(), CandCommonVertexFitterBase::fill(), PFCandCommonVertexFitterBase::fill(), CandKinematicVertexFitter::fill(), JetPartonMatcher::fillPhysicsDefinition(), ZToMuMuFilter::filter(), pat::PATSingleVertexSelector::filter_(), reco::PFTauDecayMode::filteredPFCandidates(), reco::modules::JetFlavourIdentifier::findCandidates(), PFTauDiscriminants::PFTauDiscriminantManager::getLeafDaughters(), ZMuMuEfficiency::getParticleEta(), ZMuMuPerformances::getParticleEta(), ZMuMu_efficiencyAnalyzer::getParticleEta(), ZMuMu_vtxAnalyzer::getParticleEta(), ZMuMu_MCanalyzer::getParticleEta(), ZMuMuEfficiency::getParticleP4(), ZMuMuPerformances::getParticleP4(), ZMuMu_vtxAnalyzer::getParticleP4(), ZMuMu_efficiencyAnalyzer::getParticleP4(), ZMuMu_MCanalyzer::getParticleP4(), ZMuMuEfficiency::getParticlePhi(), ZMuMuPerformances::getParticlePhi(), ZMuMu_efficiencyAnalyzer::getParticlePhi(), ZMuMu_vtxAnalyzer::getParticlePhi(), ZMuMu_MCanalyzer::getParticlePhi(), ZMuMuEfficiency::getParticlePt(), ZMuMuPerformances::getParticlePt(), ZMuMu_vtxAnalyzer::getParticlePt(), ZMuMu_efficiencyAnalyzer::getParticlePt(), ZMuMu_MCanalyzer::getParticlePt(), MuScleFitMuonSelector::getStatus1Muon(), GenHFHadronMatcher::hasHadronDaughter(), ParticleDecayDrawer::hasValidDaughters(), ParticleTreeDrawer::hasValidDaughters(), helicityAngle(), ZMuMuAnalyzer_cynematics::isContained(), mcMuDaughter(), reco::ShallowCloneCandidate::numberOfDaughters(), ZMuMuOverlap::operator()(), CompositeCandSelector< Selector, T1, T2, nDau >::operator()(), GenJetParticleSelector::operator()(), modules::ZHLTMatchFilter::operator()(), OverlapChecker::operator()(), FastCandMatcher< C >::operator()(), ZSelector::operator()(), CandMatcherBase< C1, C2 >::operator()(), ZGoldenFilter::operator()(), ZToMuMuIsolationSelector< Isolator >::operator()(), ZToMuMuIsoDepositSelector< Isolator >::operator()(), operator<<(), reco::utilsNew::CandMatcher< C >::operator[](), reco::PFTauDecayMode::pfMasterClones(), ParticleTreeDrawer::printDecay(), tnp::TagProbePairMaker::run(), CandMassKinFitter::set(), AddFourMomenta::set(), and zMCLeptonDaughters().

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

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

Implemented in reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, reco::LeafCandidate, reco::LeafRefCandidateT< T >, and reco::CompositePtrCandidate.

Referenced by reco::PFCandidate::overlap().

virtual bool reco::Candidate::overlap ( const Candidate ) const
protectedpure virtual
virtual double reco::Candidate::p ( ) const
pure virtual

magnitude of momentum vector

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

Referenced by MatcherByPullsAlgorithm::match().

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

four-momentum Lorentz vector

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

Referenced by ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), myFastSimVal::analyze(), MCAcceptanceAnalyzer::analyze(), ErsatzMEt::analyze(), ProtoJet::calculateLorentzVectorERecombination(), JetCharge::charge(), HiggsDQM::DistancePhi(), PFTauDiscriminants::Dalitz::doComputation(), PFTauDiscriminants::InvariantMass::doComputation(), PFTauDiscriminants::OutlierSumPt::doComputation(), PFTauDiscriminants::OutlierMass::doComputation(), JetPartonMatcher::fillAlgoritDefinition(), TopDecaySubset::fillListing(), JetPartonMatcher::fillPhysicsDefinition(), reco::modules::JetFlavourIdentifier::findCandidates(), MuScleFitMuonSelector::findGenMuFromRes(), FlavorHistoryProducer::getClosestJet(), ZMuMuEfficiency::getParticleP4(), ZMuMuPerformances::getParticleP4(), ZMuMu_efficiencyAnalyzer::getParticleP4(), ZMuMu_vtxAnalyzer::getParticleP4(), ZMuMu_MCanalyzer::getParticleP4(), helicityAngle(), fftjetcms::FFTJetInterface::loadInputCollection(), ZSelector::operator()(), reco::LeafRefCandidateT< T >::overlap(), reco::LeafCandidate::overlap(), TopDecaySubset::p4(), CandOneToManyDeltaRMatcher::produce(), L1HLTJetsMatching::produce(), PFJetsMatchedToFilteredCaloJetsProducer::produce(), GenParticles2HepMCConverter::produce(), PFRecoTauDecayModeDeterminator::produce(), CandMassKinFitter::set(), ApplyEnergyCorrection::set(), Booster::set(), AddFourMomenta::set(), and pat::DiObjectProxy::totalP4().

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

PDG identifier.

Implemented in reco::LeafCandidate, and reco::LeafRefCandidateT< T >.

Referenced by FBaseSimEvent::addParticles(), TopDecaySubset::addRadiation(), ZLONLOHistogrammer::analyze(), ZHistogrammer::analyze(), ZMassHistogrammer::analyze(), ZMCHistogrammer::analyze(), EWKSystUnc::analyze(), zPdfUnc::analyze(), ZMuPtScaleAnalyzer::analyze(), myFastSimVal::analyze(), ElectronMcSignalValidator::analyze(), ZMuMuEfficiency::analyze(), HLTMCtruth::analyze(), ResolutionCreator::analyze(), MCEfficiencyAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), TopValidation::analyze(), ErsatzMEt::analyze(), GenHFHadronMatcher::analyzeMothers(), ZMuMuEfficiency::check_ifZmumu(), ZMuMuPerformances::check_ifZmumu(), ZMuMu_vtxAnalyzer::check_ifZmumu(), ZMuMu_efficiencyAnalyzer::check_ifZmumu(), ZMuMu_MCanalyzer::check_ifZmumu(), TopDecaySubset::checkShowerModel(), ParticleDecayDrawer::decay(), CandCommonVertexFitterBase::fill(), PFCandCommonVertexFitterBase::fill(), CandKinematicVertexFitter::fill(), JetPartonMatcher::fillAlgoritDefinition(), pat::GenericParticle::fillInFrom(), TopDecaySubset::fillListing(), JetPartonMatcher::fillPhysicsDefinition(), BTagSkimMC::filter(), reco::modules::JetFlavourIdentifier::findCandidates(), GenHFHadronMatcher::findHadronJets(), reco::flavour(), HeavyFlavorValidation::getMotherId(), ZMuMuEfficiency::getParticleEta(), ZMuMuPerformances::getParticleEta(), ZMuMu_vtxAnalyzer::getParticleEta(), ZMuMu_efficiencyAnalyzer::getParticleEta(), ZMuMu_MCanalyzer::getParticleEta(), ZMuMuEfficiency::getParticleP4(), ZMuMuPerformances::getParticleP4(), ZMuMu_vtxAnalyzer::getParticleP4(), ZMuMu_efficiencyAnalyzer::getParticleP4(), ZMuMu_MCanalyzer::getParticleP4(), ZMuMuEfficiency::getParticlePhi(), ZMuMuPerformances::getParticlePhi(), ZMuMu_vtxAnalyzer::getParticlePhi(), ZMuMu_efficiencyAnalyzer::getParticlePhi(), ZMuMu_MCanalyzer::getParticlePhi(), ZMuMuEfficiency::getParticlePt(), ZMuMuPerformances::getParticlePt(), ZMuMu_vtxAnalyzer::getParticlePt(), ZMuMu_efficiencyAnalyzer::getParticlePt(), ZMuMu_MCanalyzer::getParticlePt(), MuScleFitMuonSelector::getStatus1Muon(), CandMCTagUtils::hasBottom(), CandMCTagUtils::hasCharm(), reco::isElectron(), GenHFHadronMatcher::isHadron(), reco::isLepton(), CandMCTagUtils::isLightParton(), reco::isMuon(), reco::isNeutrino(), CandMCTagUtils::isParton(), HiPhotonType::IsPrompt(), McSelector::isSelected(), reco::isTau(), mcMuDaughter(), ZMuMuIsolationAnalyzer::muTag(), GenJetParticleSelector::operator()(), helpers::MCTruthPairSelector< T >::operator()(), FastCandMatcher< C >::operator()(), operator<<(), ParticleTreeDrawer::printDecay(), CastorFastClusterProducer::produce(), CastorFastTowerProducer::produce(), FSRWeightProducer::produce(), GenParticles2HepMCConverter::produce(), PartonSelector::produce(), FlavorHistoryProducer::produce(), TauSpinnerCMS::readParticlesfromReco(), TtDecayChannelSelector::search(), TtDecayChannelSelector::tauDecay(), InputGenJetsParticleSelector::testPartonChildren(), and zMCLeptonDaughters().

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

momentum azimuthal angle

Implemented in reco::LeafCandidate, reco::LeafRefCandidateT< T >, reco::CastorTower, and reco::EcalIsolatedParticleCandidate.

Referenced by fireworks::addStraightLineSegment(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), HLTMCtruth::analyze(), ZMuMuPerformances::analyze(), FWCandidateLegoProxyBuilder::build(), CaloMETAnalyzer::computeEmHaMET(), pat::DiObjectProxy::deltaPhi(), egammaisolation::EgammaTrackExtractor::deposit(), HICaloUtil::EcalPhi(), GenericBenchmark::fill(), PFCandidateMonitor::fill(), PFJetMonitor::fill(), GenericBenchmark::fillHistos(), MatchCandidateBenchmark::fillOne(), CandidateBenchmark::fillOne(), PFCandidateMonitor::fillOne(), PFFilter::filter(), PFMETFilter::filter(), PFJetFilter::filter(), HLTMuonPlotter::findMatches(), HiGammaJetSignalDef::getDeltaPhi(), HiGammaJetSignalDef::getDeltaR(), ZMuMuEfficiency::getParticlePhi(), ZMuMuPerformances::getParticlePhi(), ZMuMu_vtxAnalyzer::getParticlePhi(), ZMuMu_efficiencyAnalyzer::getParticlePhi(), ZMuMu_MCanalyzer::getParticlePhi(), CMSMidpointAlgorithm::iterateCone(), MatcherByPullsAlgorithm::match(), operator<<(), HLTmmkFilter::overlap(), HLTmmkkFilter::overlap(), ParticleTreeDrawer::printInfo(), ParticleDecayDrawer::printP4(), TtEvent::printParticle(), CandOneToManyDeltaRMatcher::produce(), CastorFastTowerProducer::produce(), CastorFastClusterProducer::produce(), FSRWeightProducer::produce(), ZMuMuUserDataOneTrack::produce(), ZMuMuUserData::produce(), ZToLLEdmNtupleDumper::produce(), METAlgo::run(), CMSIterativeConeAlgorithm::run(), and CaloMETAnalyzer::validateMET().

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

transverse momentum

Implemented in reco::LeafCandidate, reco::LeafRefCandidateT< T >, and reco::SiStripElectron.

Referenced by GenericBenchmark::accepted(), fireworks::addStraightLineSegment(), DimuonStatistics::analyze(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), GlbMuQualityCutsAnalysis::analyze(), HypothesisAnalyzer::analyze(), ZMuMuEfficiency::analyze(), HLTMCtruth::analyze(), ZMuMuPerformances::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), ZMuMu_vtxAnalyzer::analyze(), dimuonHLTFilterCheck::analyze(), MCEfficiencyAnalyzer::analyze(), ZMuMu_MCanalyzer::analyze(), gamma_radiative_analyzer::analyze(), MCAcceptanceAnalyzer::analyze(), TauTagValidation::analyze(), TopValidation::analyze(), GenHFHadronMatcher::analyzeMothers(), FWCandidateLegoProxyBuilder::build(), PFTauDiscriminants::MainTrackPt::doComputation(), PFTauDiscriminants::TrackPt::doComputation(), PFTauDiscriminants::PiZeroPt::doComputation(), PFTauDiscriminants::FilteredObjectPt::doComputation(), PFTauDiscriminants::OutlierPt::doComputation(), PFTauDiscriminants::ChargedOutlierPt::doComputation(), PFTauDiscriminants::ChargedOutlierSumPt::doComputation(), PFTauDiscriminants::NeutralOutlierPt::doComputation(), PFTauDiscriminants::NeutralOutlierSumPt::doComputation(), HICaloUtil::EcalPhi(), GenericBenchmark::fill(), PFCandidateMonitor::fill(), PFJetMonitor::fill(), JetPartonMatcher::fillAlgoritDefinition(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), PFCandidateMonitor::fillOne(), ZToMuMuFilter::filter(), PFJetFilter::filter(), ZMuMuEfficiency::getParticlePt(), ZMuMuPerformances::getParticlePt(), ZMuMu_efficiencyAnalyzer::getParticlePt(), ZMuMu_vtxAnalyzer::getParticlePt(), ZMuMu_MCanalyzer::getParticlePt(), IsMuMatchedToHLTMu(), IsMuMatchedToHLTSingleMu(), fftjetcms::FFTJetInterface::loadInputCollection(), main(), MatcherByPullsAlgorithm::match(), ZSelector::operator()(), HLTMuonPlotter::matchesByDescendingPt::operator()(), HLTMuonValidator::matchesByDescendingPt::operator()(), SortCandByDecreasingPt::operator()(), HLTMuonPlotter::MatchStruct::operator<(), HLTMuonValidator::MatchStruct::operator<(), operator<<(), HLTMuonPlotter::MatchStruct::operator>(), HLTMuonValidator::MatchStruct::operator>(), HLTmmkkFilter::overlap(), HLTmmkFilter::overlap(), ParticleTreeDrawer::printInfo(), ParticleDecayDrawer::printP4(), TtEvent::printParticle(), IsolationProducerForTracks::produce(), L1HLTJetsMatching::produce(), ZMuMuUserDataOneTrack::produce(), ZMuMuUserData::produce(), pat::L1MuonMatcher::produce(), pat::HLTL1MuonMatcher::produce(), ZToLLEdmNtupleDumper::produce(), TtDilepEvtSolutionMaker::PTComp(), TtFullLepKinSolutionProducer::PTComp(), and TrackingRegionsFromBeamSpotAndL2Tau::regions().

virtual double reco::Candidate::px ( ) const
pure virtual
virtual double reco::Candidate::py ( ) const
pure virtual
virtual double reco::Candidate::pz ( ) const
pure virtual
virtual double reco::Candidate::rapidity ( ) const
pure virtual
virtual void reco::Candidate::setCharge ( Charge  q)
pure virtual

set electric charge

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

Referenced by AddFourMomenta::set().

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

set long lived flag

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

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

set mass constraint flag

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

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

set 4-momentum

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

virtual void reco::Candidate::setPdgId ( int  pdgId)
pure virtual
virtual void reco::Candidate::setPz ( double  pz)
pure virtual
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 181 of file Candidate.h.

181 {};
virtual void reco::Candidate::setStatus ( int  status)
pure virtual

set status word

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

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

set electric charge

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

virtual void reco::Candidate::setVertex ( const Point vertex)
pure virtual
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 reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, reco::LeafCandidate, reco::CompositePtrCandidate, and reco::LeafRefCandidateT< T >.

Definition at line 169 of file Candidate.h.

Referenced by reco::PFCandidate::overlap().

169  {
170  return CandidatePtr();
171  }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
virtual int reco::Candidate::status ( ) const
pure virtual

status word

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

Referenced by ParticleTreeDrawer::accept(), FBaseSimEvent::addParticles(), ZMassHistogrammer::analyze(), ZHistogrammer::analyze(), ZMCHistogrammer::analyze(), ZMuMuEfficiency::analyze(), HLTMCtruth::analyze(), MCEfficiencyAnalyzer::analyze(), TopValidation::analyze(), ErsatzMEt::analyze(), TopDecaySubset::checkShowerModel(), TtDecayChannelSelector::countProngs(), JetPartonMatcher::fillAlgoritDefinition(), pat::GenericParticle::fillInFrom(), TopDecaySubset::fillListing(), JetPartonMatcher::fillPhysicsDefinition(), BTagSkimMC::filter(), ZMuMuEfficiency::getParticleEta(), ZMuMuPerformances::getParticleEta(), ZMuMu_vtxAnalyzer::getParticleEta(), ZMuMu_efficiencyAnalyzer::getParticleEta(), ZMuMu_MCanalyzer::getParticleEta(), ZMuMuEfficiency::getParticleP4(), ZMuMuPerformances::getParticleP4(), ZMuMu_vtxAnalyzer::getParticleP4(), ZMuMu_efficiencyAnalyzer::getParticleP4(), ZMuMu_MCanalyzer::getParticleP4(), ZMuMuEfficiency::getParticlePhi(), ZMuMuPerformances::getParticlePhi(), ZMuMu_vtxAnalyzer::getParticlePhi(), ZMuMu_efficiencyAnalyzer::getParticlePhi(), ZMuMu_MCanalyzer::getParticlePhi(), ZMuMuEfficiency::getParticlePt(), ZMuMuPerformances::getParticlePt(), ZMuMu_vtxAnalyzer::getParticlePt(), ZMuMu_efficiencyAnalyzer::getParticlePt(), ZMuMu_MCanalyzer::getParticlePt(), MuScleFitMuonSelector::getStatus1Muon(), GenJetParticleSelector::operator()(), helpers::MCTruthPairSelector< T >::operator()(), FastCandMatcher< C >::operator()(), operator<<(), ParticleTreeDrawer::printInfo(), GenParticles2HepMCConverter::produce(), FlavorHistoryProducer::produce(), TtDecayChannelSelector::search(), ParticleDecayDrawer::select(), pat::Flags::test(), and zMCLeptonDaughters().

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

electric charge

Implemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

Referenced by TopDecaySubset::fillListing().

virtual const Point& reco::Candidate::vertex ( ) const
pure virtual
virtual double reco::Candidate::vertexChi2 ( ) const
pure virtual
virtual double reco::Candidate::vertexCovariance ( int  i,
int  j 
) const
pure virtual

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

Implemented in reco::LeafRefCandidateT< T >, reco::LeafCandidate, and reco::VertexCompositeCandidate.

Referenced by pat::PATSingleVertexSelector::filter_().

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

fill SMatrix

Reimplemented in reco::LeafRefCandidateT< T >, and reco::LeafCandidate.

Definition at line 197 of file Candidate.h.

References fillVertexCovariance(), and m.

197 { CovarianceMatrix m; fillVertexCovariance(m); return m; } //TODO
virtual void fillVertexCovariance(CovarianceMatrix &v) const =0
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 reco::LeafRefCandidateT< T >, reco::LeafCandidate, and reco::VertexCompositeCandidate.

Referenced by pat::PATSingleVertexSelector::filter_().

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

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

Implemented in reco::LeafRefCandidateT< T >, reco::LeafCandidate, and reco::VertexCompositeCandidate.

Referenced by ZToLLEdmNtupleDumper::produce().

virtual double reco::Candidate::vx ( ) const
pure virtual
virtual double reco::Candidate::vy ( ) const
pure virtual
virtual double reco::Candidate::vz ( ) const
pure virtual
virtual double reco::Candidate::y ( ) const
pure virtual

Friends And Related Function Documentation

friend class ::OverlapChecker
friend

Definition at line 274 of file Candidate.h.

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

Definition at line 273 of file Candidate.h.

friend class ShallowCloneCandidate
friend

Definition at line 275 of file Candidate.h.

friend class ShallowClonePtrCandidate
friend

Definition at line 276 of file Candidate.h.