CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | 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 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

List of all members.

Classes

struct  daughter_iterator

Public Types

typedef int Charge
 electric charge type
typedef CandidateCollection daughters
 collection of daughter candidates
typedef unsigned int index
 index type
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector.
typedef math::XYZPoint Point
 point in the space
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector.
typedef math::XYZVector Vector
 point in the space

Public Member Functions

virtual const_iterator begin () const
 first daughter const_iterator
virtual iterator begin ()
 first daughter iterator
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
virtual Vector boostToCM () const
virtual int charge () const
 electric charge
virtual LeafCandidateclone () const
 returns a clone of the Candidate object
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception)
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception)
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name
virtual iterator end ()
 last daughter iterator
virtual const_iterator end () const
 last daughter const_iterator
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
virtual double energy () const
 energy
virtual double et () const
 transverse energy
virtual double eta () const
 momentum pseudorapidity
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix
template<typename T >
T get () const
 get a component
template<typename T , typename Tag >
T get () const
 get a component
template<typename T >
T get (size_type i) const
 get a component
template<typename T , typename Tag >
T get (size_type i) const
 get a component
virtual bool hasMasterClone () const
virtual bool hasMasterClonePtr () const
virtual bool isCaloMuon () const
virtual bool isConvertedPhoton () const
virtual bool isElectron () const
virtual bool isGlobalMuon () const
virtual bool isJet () const
virtual bool isMuon () const
virtual bool isPhoton () const
virtual bool isStandAloneMuon () const
virtual bool isTrackerMuon () const
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values
 LeafCandidate (const Candidate &c)
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values
 LeafCandidate ()
 default constructor
virtual bool longLived () const
 is long lived?
virtual double mass () const
 mass
virtual bool massConstraint () const
 do mass constraint?
virtual double massSqr () const
 mass squared
virtual const CandidateBaseRefmasterClone () const
virtual const CandidatePtrmasterClonePtr () const
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type
virtual Vector momentum () const
 spatial momentum vector
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception)
virtual double mt () const
 transverse mass
virtual double mtSqr () const
 transverse mass squared
template<typename T >
size_type numberOf () const
 number of components
template<typename T , typename Tag >
size_type numberOf () const
 number of components
virtual size_t numberOfDaughters () const
 number of daughters
virtual size_t numberOfMothers () const
 number of mothers
virtual size_t numberOfSourceCandidatePtrs () const
virtual double p () const
 magnitude of momentum vector
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector
virtual int pdgId () const
 PDG identifier.
virtual double phi () const
 momentum azimuthal angle
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector
virtual double pt () const
 transverse momentum
virtual double px () const
 x coordinate of momentum vector
virtual double py () const
 y coordinate of momentum vector
virtual double pz () const
 z coordinate of momentum vector
virtual double rapidity () const
 rapidity
virtual void setCharge (Charge q)
 set electric charge
virtual void setLongLived ()
 set long lived flag
virtual void setMass (double m)
 set particle mass
virtual void setMassConstraint ()
 set mass constraint flag
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum
virtual void setPdgId (int pdgId)
virtual void setPz (double pz)
virtual void setStatus (int status)
 set status word
virtual void setThreeCharge (Charge qx3)
 set electric charge
virtual void setVertex (const Point &vertex)
 set vertex
virtual CandidatePtr sourceCandidatePtr (size_type i) const
virtual int status () const
 status word
virtual double theta () const
 momentum polar angle
virtual int threeCharge () const
 electric charge
virtual const Pointvertex () const
 vertex position
virtual double vertexChi2 () const
 chi-squares
CovarianceMatrix vertexCovariance () const
 return SMatrix
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2
virtual double vertexNdof () const
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f.
virtual double vx () const
 x coordinate of vertex position
virtual double vy () const
 y coordinate of vertex position
virtual double vz () const
 z coordinate of vertex position
virtual double y () const
 rapidity
virtual ~LeafCandidate ()
 destructor

Static Public Attributes

static const unsigned int longLivedTag = 65536
 long lived flag
static const unsigned int massConstraintTag = 131072
 do mass constraint flag

Protected Member Functions

void cacheCartesian () const
 set internal cache
void cachePolar () const
 set internal cache
void clearCache () const
 clear internal cache
virtual bool overlap (const Candidate &) const
 check overlap with another Candidate

Protected Attributes

bool cacheCartesianFixed_
bool cachePolarFixed_
 has cache been set?
float eta_
float mass_
LorentzVector p4Cartesian_
 internal cache for p4
PolarLorentzVector p4Polar_
 internal cache for p4
int pdgId_
 PDG identifier.
float phi_
float pt_
 four-momentum Lorentz vector
Charge qx3_
 electric charge
int status_
 status word
Point vertex_
 vertex position

Private Types

typedef
candidate::const_iterator_imp_specific
< daughters
const_iterator_imp_specific
typedef
candidate::iterator_imp_specific
< daughters
iterator_imp_specific

Friends

class ::OverlapChecker
struct component
class ShallowCloneCandidate
class ShallowClonePtrCandidate

Detailed Description

particle candidate with no constituent nor daughters

Author:
Luca Lista, INFN
Version:
Id:
LeafCandidate.h,v 1.24 2011/10/27 16:29:58 wmtan Exp

Definition at line 18 of file LeafCandidate.h.


Member Typedef Documentation

electric charge type

Reimplemented from reco::Candidate.

Definition at line 23 of file LeafCandidate.h.

typedef unsigned int reco::LeafCandidate::index

index type

Reimplemented from reco::Candidate.

Definition at line 33 of file LeafCandidate.h.

Lorentz vector.

Reimplemented from reco::Candidate.

Definition at line 25 of file LeafCandidate.h.

point in the space

Reimplemented from reco::Candidate.

Definition at line 29 of file LeafCandidate.h.

Lorentz vector.

Reimplemented from reco::Candidate.

Definition at line 27 of file LeafCandidate.h.

point in the space

Reimplemented from reco::Candidate.

Definition at line 31 of file LeafCandidate.h.


Constructor & Destructor Documentation

reco::LeafCandidate::LeafCandidate ( ) [inline]

default constructor

Definition at line 36 of file LeafCandidate.h.

Referenced by clone().

                    : 
      qx3_(0), pt_(0), eta_(0), phi_(0), mass_(0), 
      vertex_(0, 0, 0), pdgId_(0), status_(0),
      cachePolarFixed_( false ), cacheCartesianFixed_( false ) { }
reco::LeafCandidate::LeafCandidate ( const Candidate c) [inline, explicit]

Definition at line 41 of file LeafCandidate.h.

                                                 :
      qx3_( c.charge()*3 ), pt_( c.p4().pt() ), eta_( c.p4().eta() ), phi_( c.p4().phi() )\
      , mass_( c.p4().mass() ),
      vertex_( c.vertex() ), pdgId_( c.pdgId() ), status_( c.status() ),
      cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
reco::LeafCandidate::LeafCandidate ( Charge  q,
const LorentzVector p4,
const Point vtx = Point( 0,        0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
) [inline]

constructor from values

Definition at line 48 of file LeafCandidate.h.

References qx3_.

                                                                                  :
      qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
      vertex_( vtx ), pdgId_( pdgId ), status_( status ),
      cachePolarFixed_( false ), cacheCartesianFixed_( false ) {
      if ( integerCharge ) qx3_ *= 3;
    }
reco::LeafCandidate::LeafCandidate ( Charge  q,
const PolarLorentzVector p4,
const Point vtx = Point ( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
) [inline]

constructor from values

Definition at line 57 of file LeafCandidate.h.

References qx3_.

                                                                                  :
      qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
      vertex_( vtx ), pdgId_( pdgId ), status_( status ),
      cachePolarFixed_( false ), cacheCartesianFixed_( false ){
      if ( integerCharge ) qx3_ *= 3;
    }
LeafCandidate::~LeafCandidate ( ) [virtual]

destructor

Definition at line 6 of file LeafCandidate.cc.

{ }

Member Function Documentation

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

Reimplemented from reco::Candidate.

Definition at line 289 of file LeafCandidate.h.

References begin(), and end().

                                                                         {
      return boost::make_filter_iterator(s, begin(), end());
    }
virtual Vector reco::LeafCandidate::boostToCM ( ) const [inline, virtual]

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

Implements reco::Candidate.

Definition at line 115 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

{ cacheCartesian(); return p4Cartesian_.BoostToCM(); }
void reco::LeafCandidate::cacheCartesian ( ) const [inline, protected]

set internal cache

Definition at line 332 of file LeafCandidate.h.

References cacheCartesianFixed_, cachePolar(), p4Cartesian_, and p4Polar_.

Referenced by boostToCM(), energy(), momentum(), p(), p4(), px(), py(), pz(), setPz(), and theta().

void reco::LeafCandidate::cachePolar ( ) const [inline, protected]

set internal cache

Definition at line 326 of file LeafCandidate.h.

References cachePolarFixed_, eta_, mass_, p4Polar_, phi_, and pt_.

Referenced by cacheCartesian(), et(), mt(), mtSqr(), polarP4(), and rapidity().

virtual int reco::LeafCandidate::charge ( ) const [inline, virtual]

electric charge

Implements reco::Candidate.

Definition at line 100 of file LeafCandidate.h.

References qx3_.

Referenced by ElectronMcFakeValidator::analyze(), HLTMuonMatchAndPlot::analyze(), EwkMuLumiMonitorDQM::analyze(), TauMVATrainer::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronMCFakeAnalyzer::analyze(), PFTester::analyze(), ElectronTagProbeAnalyzer::analyze(), EwkMuDQM::analyze(), GsfElectronMCAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWPFCandidate3DProxyBuilder::build(), egHLT::OffEle::charge(), reco::PFTau::dump(), RecoMuonValidator::MuonME::fill(), EwkElecTauHistManager::fillHistograms(), HLTOniaSource::fillOniaTriggerMEs(), HSCPTreeBuilder::filter(), WZInterestingEventSelector::filter(), WMuNuSelector::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), pat::PATObject< ObjectType >::genParticleById(), MuonMETAlgo::GetMuDepDeltas(), HLTMuonTrackMassFilter::hltFilter(), reco::tau::disc::mainTrack(), reco::tau::RecoTauTwoProngFilter::operator()(), reco::operator<<(), overlap(), reco::PFTauDecayMode::PFTauDecayMode(), QuarkoniaTrackSelector::produce(), ParticleReplacerClass::produce(), ClassBasedElectronID::result(), MuScleFitMuonSelector::selectMuons(), FWElectronDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), reco::PFCandidate::setTrackRef(), reco::tau::sumPFCandCharge(), PFRootEventManager::tauBenchmark(), and reco::PFCandidate::translateTypeToPdgId().

{ return qx3_ / 3; }
void reco::LeafCandidate::clearCache ( ) const [inline, protected]

clear internal cache

Definition at line 339 of file LeafCandidate.h.

References cacheCartesianFixed_, and cachePolarFixed_.

Referenced by setMass().

                                   {
      cachePolarFixed_ = false;
      cacheCartesianFixed_ = false;
    }
virtual LeafCandidate* reco::LeafCandidate::clone ( void  ) const [inline, virtual]
Candidate * LeafCandidate::daughter ( const std::string &  s) [virtual]

return daughter with a specified role name

Implements reco::Candidate.

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

Definition at line 71 of file LeafCandidate.cc.

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

                                                    {
  throw edm::Exception(edm::errors::UnimplementedFeature)
    << "This Candidate type does not implement daughter(std::string). "
    << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
}
Candidate * LeafCandidate::daughter ( size_type  ) [virtual]
const Candidate * LeafCandidate::daughter ( const std::string &  s) const [virtual]

return daughter with a specified role name

Implements reco::Candidate.

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

Definition at line 65 of file LeafCandidate.cc.

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

                                                                {
  throw edm::Exception(edm::errors::UnimplementedFeature)
    << "This Candidate type does not implement daughter(std::string). "
    << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
}
const Candidate * LeafCandidate::daughter ( size_type  ) const [virtual]
Candidate::const_iterator LeafCandidate::end ( void  ) const [virtual]
Candidate::iterator LeafCandidate::end ( void  ) [virtual]
template<typename S >
daughter_iterator<S>::type reco::LeafCandidate::endFilter ( const S &  s) const [inline]

Reimplemented from reco::Candidate.

Definition at line 293 of file LeafCandidate.h.

References end().

                                                                       {
      return boost::make_filter_iterator(s, end(), end());
    }
virtual double reco::LeafCandidate::energy ( ) const [inline, virtual]

energy

Implements reco::Candidate.

Reimplemented in reco::CastorTower.

Definition at line 119 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), PhotonValidator::analyze(), JetValidation::analyze(), ResolutionCreator::analyze(), QcdHighPtDQM::analyze(), IsolatedParticlesGeneratedJets::analyze(), PatTauAnalyzer::analyze(), HLTMonBTagIPSource::analyze(), SimplePhotonAnalyzer::analyze(), JPTJetAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), EwkElecDQM::analyze(), PFCandidateChecker::analyze(), HLTMonBTagMuSource::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWMET3DProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWJetProxyBuilder::buildViewType(), FWMETProxyBuilder::buildViewType(), reco::FlavorHistoryEvent::cache(), pat::CaloIsolationEnergy::calculate(), reco::helper::JetIDHelper::calculate(), pat::LeptonJetIsolationAngle::calculate(), reco::helper::CastorJetIDHelper::calculate(), MEzCalculator::Calculate(), METzCalculator::Calculate(), reco::PFJet::chargedEmEnergyFraction(), pat::Jet::chargedEmEnergyFraction(), reco::JPTJet::chargedEmEnergyFraction(), pat::Jet::chargedHadronEnergyFraction(), reco::JPTJet::chargedHadronEnergyFraction(), reco::PFJet::chargedHadronEnergyFraction(), reco::PFJet::chargedMuEnergyFraction(), pat::Jet::chargedMuEnergyFraction(), reco::helper::JetIDHelper::classifyJetComponents(), TauElementsOperators::computeConeSize(), CaloTowersCreationAlgo::convert(), JetPlusTrackCorrector::correctAA(), JetPlusTrackCorrector::correction(), L1JPTOffsetCorrector::correction(), L6SLBCorrector::correction(), L1OffsetCorrector::correction(), pat::Jet::electronEnergyFraction(), reco::PFJet::electronEnergyFraction(), metsig::SignAlgoResolutions::ElectronPtResolution(), egHLT::OffEle::energy(), egHLT::OffPho::energy(), CaloTower::energyInHF(), CaloTower::energyInHO(), metsig::SignAlgoResolutions::evalPF(), PFPhotonAlgo::EvaluateGCorrMVA(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), PFJetTester::fillMatchHists(), PFRootEventManager::fillOutEventWithCaloTowers(), PFRootEventManager::fillOutEventWithPFCandidates(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), HSCPTreeBuilder::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), PFJetIDSelectionFunctor::firstDataCuts(), TtFullHadKinFitter::fit(), TtSemiLepKinFitter::fit(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), PFJetBenchmark::gettrue(), CaloTower::hadP4(), reco::PFJet::HFEMEnergyFraction(), pat::Jet::HFEMEnergyFraction(), reco::PFJet::HFHadronEnergyFraction(), pat::Jet::HFHadronEnergyFraction(), HPSPFRecoTauAlgorithm::isNarrowTau(), main(), JetMaker::makeSpecific(), MatchJet::matchCollections(), reco::PFJet::muonEnergyFraction(), pat::Jet::muonEnergyFraction(), reco::PFJet::neutralEmEnergyFraction(), reco::JPTJet::neutralEmEnergyFraction(), pat::Jet::neutralEmEnergyFraction(), reco::PFJet::neutralHadronEnergyFraction(), reco::JPTJet::neutralHadronEnergyFraction(), pat::Jet::neutralHadronEnergyFraction(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), GenJetQualifier::operator()(), reco::operator<<(), CaloTower::p4(), pat::Jet::photonEnergyFraction(), reco::PFJet::photonEnergyFraction(), PFAlgoTestBenchElectrons::processBlock(), pf2pat::PFMETAlgo::produce(), JetIdSelector< T >::produce(), JetPlusTrackProducerAA::produce(), JetPlusTrackProducer::produce(), CaloTowerCreatorForTauHLT::produce(), CastorClusterProducer::produce(), BoostedTopProducer::produce(), FSRWeightProducer::produce(), CaloTowerCandidateCreator::produce(), TCTauAlgorithm::recalculateEnergy(), reco::tau::RecoTauIsolationMasking::resolution(), pf2pat::PFIsoDepositAlgo::sameParticle(), reco::Photon::setVertex(), reco::SoftLeptonTagInfo::taggingVariables(), and PFMETAnalyzer::validateMET().

{ cacheCartesian(); return p4Cartesian_.E(); }
virtual double reco::LeafCandidate::et ( ) const [inline, virtual]

transverse energy

Implements reco::Candidate.

Definition at line 121 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by StKinFitter::addKinFitInfo(), PhotonValidator::analyze(), L2TauAnalyzer::analyze(), TopElectronHLTOfflineSource::analyze(), PatPhotonSimpleAnalyzer::analyze(), WenuPlots::analyze(), PFTester::analyze(), EwkMuDQM::analyze(), HLTMonBTagIPSource::analyze(), SimplePhotonAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), JPTJetAnalyzer::analyze(), HLTTauDQMCaloPlotter::analyze(), SimplePi0DiscAnalyzer::analyze(), EwkElecDQM::analyze(), EwkDQM::analyze(), L25TauAnalyzer::analyze(), HLTMonBTagMuSource::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWMET3DProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMETGlimpseProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWJetProxyBuilder::buildViewType(), FWMETProxyBuilder::buildViewType(), reco::helper::JetIDHelper::calculate(), EmDQM::checkGeneratedParticlesRequirement(), TauElementsOperators::computeConeSize(), JetPlusTrackCorrector::correction(), TCTauCorrector::correction(), egHLT::OffEle::et(), egHLT::OffPho::et(), reco::tau::qcuts::etMin(), l1extra::L1EtMissParticle::etMiss(), TopDiLeptonOffline::MonitorEnsemble::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), WMuNuSelector::filter(), WMuNuValidator::filter(), PhotonEnrichmentFilter::filter(), HeavyChHiggsToTauNuSkim::filter(), HighETPhotonsFilterAlgo::filter(), BCToEFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), ElectronVPlusJetsIDSelectionFunctor::firstDataCuts(), TtSemiLepKinFitter::fit(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), HiGammaJetSignalDef::IsIsolated(), HiGammaJetSignalDef::IsIsolatedJP(), HiGammaJetSignalDef::IsIsolatedPP(), HPSPFRecoTauAlgorithm::isNarrowTau(), JetVertexMain::Main(), L25TauAnalyzer::matchedToPFTau(), reco::MET::mEtSig(), reco::Jet::nCarrying(), TtSemiLRSignalSelObservables::operator()(), PhotonValidator::sortPhotons::operator()(), TtHadLRSignalSelObservables::CompareET::operator()(), TtSemiLRSignalSelObservables::CompareET::operator()(), TtDilepLRSignalSelObservables::operator()(), L25TauAnalyzer::printInfo(), PFCandidateChecker::printJets(), L2TauIsolationSelector::produce(), L2TauRelaxingIsolationSelector::produce(), L2TauModularIsolationSelector::produce(), ParticleTowerProducer::produce(), HiL1Subtractor::produce(), JetEnergyShift::produce(), JetPlusTrackCorrector::rebuildJta(), FWElectronDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), PFElectronSelector::spring11Cuts(), and reco::SoftLeptonTagInfo::taggingVariables().

{ cachePolar(); return p4Polar_.Et(); }
virtual double reco::LeafCandidate::eta ( ) const [inline, virtual]

momentum pseudorapidity

Implements reco::Candidate.

Reimplemented in reco::CastorTower, and reco::EcalIsolatedParticleCandidate.

Definition at line 143 of file LeafCandidate.h.

References eta_.

Referenced by reco::tau::disc::AbsEta(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), CaloSpecificAlgo::addInfo(), StKinFitter::addKinFitInfo(), FWElectronDetailView::addSceneInfo(), FWMuonDetailView::addSceneInfo(), ZMuMuIsolationAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), JetValidation::analyze(), GsfElectronDataAnalyzer::analyze(), HLTMuonMatchAndPlot::analyze(), PhotonValidator::analyze(), GlbMuQualityCutsAnalysis::analyze(), L2TauAnalyzer::analyze(), ZMuPtScaleAnalyzer::analyze(), TopElectronHLTOfflineSource::analyze(), EwkMuLumiMonitorDQM::analyze(), PatPhotonSimpleAnalyzer::analyze(), RPCRecHitProbability::analyze(), JPTJetTester::analyze(), PatZjetsJetAnalyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), testAnalyzer::analyze(), WenuPlots::analyze(), ElectronMcSignalValidator::analyze(), FlavorJetCorrectionExample::analyze(), GsfElectronMCFakeAnalyzer::analyze(), RPCMonitorDigi::analyze(), PFTester::analyze(), PartonJetCorrectionExample::analyze(), ElectronTagProbeAnalyzer::analyze(), PatTauAnalyzer::analyze(), EwkMuDQM::analyze(), IsolatedParticlesGeneratedJets::analyze(), CMSDAS11DijetAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), QcdPhotonsDQM::analyze(), HLTMonBTagIPSource::analyze(), SimplePi0DiscAnalyzer::analyze(), HLTTauDQMCaloPlotter::analyze(), JPTJetAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), PFJetTester::analyze(), gamma_radiative_analyzer::analyze(), TopHLTDiMuonDQM::analyze(), EwkElecDQM::analyze(), EwkDQM::analyze(), CaloJetTester::analyze(), MuTriggerAnalyzer::analyze(), HLTMonBTagMuSource::analyze(), L25TauAnalyzer::analyze(), PFCandidateChecker::analyze(), GsfElectronFakeAnalyzer::analyze(), MuonEnergyDepositAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), JetTagPlotter::analyzeTag(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWMuonDetailView::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWL1JetParticleLegoProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWElectronDetailView::build(), FWPhotonLegoProxyBuilder::build(), FWMuonLegoProxyBuilder::build(), FWJetLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWMETProxyBuilder::buildViewType(), reco::helper::JetMuonHitsIDHelper::calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), FWMuonBuilder::calculateField(), JetPlusTrackCorrector::canCorrect(), hitfit::LeptonTranslatorBase< ALepton >::CheckEta(), hitfit::JetTranslatorBase< AJet >::CheckEta(), ElectronClassification::classify(), JetPlusTrackCorrector::correctAA(), JetPlusTrackCorrector::correction(), L1FastjetCorrector::correction(), L6SLBCorrector::correction(), L1OffsetCorrector::correction(), LXXXCorrector::correction(), muonisolation::CaloExtractorByAssociator::deposits(), reco::GenJet::detectorEta(), PFTauDiscriminants::Eta::doComputation(), metsig::SignAlgoResolutions::ElectronPtResolution(), egHLT::OffEle::eta(), reco::tau::disc::Eta(), egHLT::OffPho::eta(), reco::Jet::etaPhiStatistics(), metsig::SignAlgoResolutions::evalPF(), metsig::SignAlgoResolutions::evalPFJet(), ZGlobalVsSAIsolationAnalyzer::evaluate(), PFPhotonAlgo::EvaluateGCorrMVA(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFCandidateManager::fill(), RecoMuonValidator::MuonME::fill(), TopHLTSingleLepton::MonitorEnsemble::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), PFJetMonitor::fill(), ZeePlots::fillEleClassesPlots(), ZeeCalibration::fillEleInfo(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), PFJetTester::fillMatchHists(), objMon< T >::fillMC(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), PFCandidateBenchmark::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), PFRootEventManager::fillOutEventWithPFCandidates(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), HSCPTreeBuilder::filter(), WMuNuSelector::filter(), WZInterestingEventSelector::filter(), PhotonEnrichmentFilter::filter(), WMuNuValidator::filter(), HeavyChHiggsToTauNuSkim::filter(), reco::CentralityProducer::filter(), BCToEFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), CalibratableTest::findCandidatesInDeltaR(), TtFullLepHypGenMatch::findMatchingLepton(), PFJetIDSelectionFunctor::firstDataCuts(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), calib::CalibElectron::getCalibModulesWeights(), TxCalculator::getCTx(), dRxyCalculator::getDRxy(), TxyCalculator::getHollSxy(), TxCalculator::getJct(), TxCalculator::getJt(), ParticleTowerProducer::getNearestTower(), TxyCalculator::getNumLocalTracks(), getTheTauJet(), TxCalculator::getTx(), TxyCalculator::getTxy(), objMon< T >::hasBPartonInCone(), HLTMuonTrackMassFilter::hltFilter(), EtaPtBin::inBin(), CosmicSplitterValidation::is_gold_muon(), SoftElectronCandProducer::isClean(), SoftPFElectronProducer::isClean(), cms::MuonTCMETValueMapProducer::isGoodMuon(), muon::isGoodMuon(), MuonIdProducer::isGoodTrackerMuon(), BPhysicsOniaDQM::isMuonInAccept(), BTagHLTOfflineSource::isMuonJet(), McSelector::isSelected(), BTagHLTOfflineSource::isVBTFMuon(), main(), JetVertexMain::Main(), fireworks::makeEveJetCone(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), L1MuonMatcherAlgo::match(), reco::modules::HICaloCompatibleTrackSelector::matchByDrAllowReuse(), FWCaloTowerSliceSelector::matchCell(), reco::RecoTauPiZero::maxDeltaEta(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), ZToMuMuGammaAnalyzer::muonSelection(), ElectronMVAEstimator::mva(), muonisolation::CaloExtractor::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseHcal(), AcceptJet::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), hitfit::JetTranslatorBase< AJet >::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), WPlusJetsEventSelector::operator()(), reco::operator<<(), operator<<(), passesElectronId(), passesElectronPreId(), ZToMuMuGammaAnalyzer::photonSelection(), reco::tau::disc::PiZeroEta(), PFAlgo::postMuonCleaning(), reco::GenJet::print(), reco::Jet::print(), reco::GenericJet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), JetPartonMatcher::produce(), QuarkoniaTrackSelector::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetIdSelector< T >::produce(), CaloMuonMerger::produce(), cms::MuonMETValueMapProducer::produce(), JetVetoedTracksAssociationDRVertex::produce(), JetTracksAssociationDRVertex::produce(), JetTracksAssociationDRCalo::produce(), CaloTowerCreatorForTauHLT::produce(), CastorClusterProducer::produce(), ParticleTowerProducer::produce(), CaloTowerCandidateCreator::produce(), HiL1Subtractor::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), PFRootEventManager::reconstructGenJets(), reco::tau::RecoTauIsolationMasking::resolution(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), pf2pat::PFIsoDepositAlgo::sameParticle(), FWCaloTowerDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), reco::SoftLeptonTagInfo::taggingVariables(), and reco::tau::disc::TrackEta().

{ return eta_; }
void LeafCandidate::fillVertexCovariance ( CovarianceMatrix v) const [virtual]

fill SMatrix

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 100 of file LeafCandidate.cc.

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

Referenced by vertexCovariance().

                                                                     {
  throw edm::Exception(edm::errors::UnimplementedFeature)
    << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
}
template<typename T >
T reco::LeafCandidate::get ( void  ) const [inline]

get a component

Reimplemented from reco::Candidate.

Definition at line 253 of file LeafCandidate.h.

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

Referenced by PFTauDiscriminants::PFTauDiscriminantManager::fillOutlierObjects(), cms::HICFTSfromL1orL2::FTSfromL2(), and ElectronLikelihood::getInputVar().

                                       {
      if ( hasMasterClone() ) return masterClone()->get<T>();
      else return reco::get<T>( * this );
    }
template<typename T , typename Tag >
T reco::LeafCandidate::get ( void  ) const [inline]

get a component

Reimplemented from reco::Candidate.

Definition at line 258 of file LeafCandidate.h.

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

                                                     {
      if ( hasMasterClone() ) return masterClone()->get<T, Tag>();
      else return reco::get<T, Tag>( * this );
    }
template<typename T >
T reco::LeafCandidate::get ( size_type  i) const [inline]

get a component

Reimplemented from reco::Candidate.

Definition at line 263 of file LeafCandidate.h.

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

                                                    {
      if ( hasMasterClone() ) return masterClone()->get<T>( i );
      else return reco::get<T>( * this, i );
    }
template<typename T , typename Tag >
T reco::LeafCandidate::get ( size_type  i) const [inline]

get a component

Reimplemented from reco::Candidate.

Definition at line 268 of file LeafCandidate.h.

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

                                                                  {
      if ( hasMasterClone() ) return masterClone()->get<T, Tag>( i );
      else return reco::get<T, Tag>( * this, i );
    }
bool LeafCandidate::hasMasterClone ( ) const [virtual]

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::ShallowCloneCandidate.

Definition at line 30 of file LeafCandidate.cc.

Referenced by get(), and numberOf().

                                         {
  return false;
}
bool LeafCandidate::hasMasterClonePtr ( ) const [virtual]

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::ShallowClonePtrCandidate.

Definition at line 34 of file LeafCandidate.cc.

                                            {
  return false;
}
bool LeafCandidate::isCaloMuon ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 115 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isConvertedPhoton ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 119 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isElectron ( ) const [virtual]
bool LeafCandidate::isGlobalMuon ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 109 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isJet ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 121 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isMuon ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 107 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isPhoton ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 117 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isStandAloneMuon ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 111 of file LeafCandidate.cc.

{ return false; }
bool LeafCandidate::isTrackerMuon ( ) const [virtual]

Implements reco::Candidate.

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

Definition at line 113 of file LeafCandidate.cc.

{ return false; }
virtual bool reco::LeafCandidate::longLived ( ) const [inline, virtual]

is long lived?

Implements reco::Candidate.

Definition at line 206 of file LeafCandidate.h.

References longLivedTag, and status_.

{ return status_ & longLivedTag; }
virtual double reco::LeafCandidate::mass ( ) const [inline, virtual]
virtual bool reco::LeafCandidate::massConstraint ( ) const [inline, virtual]

do mass constraint?

Implements reco::Candidate.

Definition at line 212 of file LeafCandidate.h.

References massConstraintTag, and status_.

{ return status_ & massConstraintTag; }
virtual double reco::LeafCandidate::massSqr ( ) const [inline, virtual]

mass squared

Implements reco::Candidate.

Definition at line 125 of file LeafCandidate.h.

References mass_.

Referenced by EwkElecDQM::analyze().

{ return mass_ * mass_; }
const CandidateBaseRef & LeafCandidate::masterClone ( ) const [virtual]

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

Implements reco::Candidate.

Reimplemented in reco::ShallowCloneCandidate.

Definition at line 24 of file LeafCandidate.cc.

References Exception.

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

                                                          {
  throw cms::Exception("Invalid Reference")
    << "this Candidate has no master clone reference."
    << "Can't call masterClone() method.\n";
}
const CandidatePtr & LeafCandidate::masterClonePtr ( ) const [virtual]

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

Implements reco::Candidate.

Reimplemented in reco::ShallowClonePtrCandidate.

Definition at line 39 of file LeafCandidate.cc.

References Exception.

                                                         {
  throw cms::Exception("Invalid Reference")
    << "this Candidate has no master clone ptr."
    << "Can't call masterClonePtr() method.\n";
}
template<typename Ref >
Ref reco::LeafCandidate::masterRef ( ) const [inline]

cast master clone reference to a concrete type

Reimplemented from reco::Candidate.

Definition at line 250 of file LeafCandidate.h.

References masterClone().

{ return masterClone().template castTo<Ref>(); }
virtual Vector reco::LeafCandidate::momentum ( ) const [inline, virtual]
const Candidate * LeafCandidate::mother ( size_type  ) const [virtual]
virtual double reco::LeafCandidate::mt ( ) const [inline, virtual]

transverse mass

Implements reco::Candidate.

Definition at line 127 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

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

{ cachePolar(); return p4Polar_.Mt(); }
virtual double reco::LeafCandidate::mtSqr ( ) const [inline, virtual]

transverse mass squared

Implements reco::Candidate.

Definition at line 129 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

{ cachePolar(); return p4Polar_.Mt2(); }
template<typename T , typename Tag >
size_type reco::LeafCandidate::numberOf ( ) const [inline]

number of components

Reimplemented from reco::Candidate.

Definition at line 278 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

                                                                  {
      if ( hasMasterClone() ) return masterClone()->numberOf<T, Tag>();
      else return reco::numberOf<T, Tag>( * this );
    }
template<typename T >
size_type reco::LeafCandidate::numberOf ( ) const [inline]

number of components

Reimplemented from reco::Candidate.

Definition at line 273 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

                                                    {
      if ( hasMasterClone() ) return masterClone()->numberOf<T>();
      else return reco::numberOf<T>( * this );
    }
size_t LeafCandidate::numberOfDaughters ( ) const [virtual]
size_t LeafCandidate::numberOfMothers ( ) const [virtual]
virtual size_t reco::LeafCandidate::numberOfSourceCandidatePtrs ( ) const [inline, virtual]

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

Implements reco::Candidate.

Reimplemented in reco::CompositePtrCandidate, reco::PFCandidate, pat::Electron, pat::Muon, and reco::PFTau.

Definition at line 92 of file LeafCandidate.h.

{ return 0;}
bool LeafCandidate::overlap ( const Candidate o) const [protected, virtual]
virtual double reco::LeafCandidate::p ( ) const [inline, virtual]
virtual const LorentzVector& reco::LeafCandidate::p4 ( ) const [inline, virtual]

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 108 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by reco::tau::RecoTauConstructor::addPiZero(), PFCandConnector::analyseNuclearWPrim(), PFCandConnector::analyseNuclearWSec(), HLTMuonMatchAndPlot::analyze(), ResolutionCreator::analyze(), JetAnaPythia< Jet >::analyze(), EwkMuLumiMonitorDQM::analyze(), QcdHighPtDQM::analyze(), CMSDAS11DijetAnalyzer::analyze(), HLTTauDQMCaloPlotter::analyze(), L25TauAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), TtSemiLepJetComb::bOverLightQPt(), TtSemiLepJetComb::bQuarkVar(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::tau::disc::ChargedOutlierAngle(), TtSemiLepJetComb::compareBNeutrino(), TtSemiLepJetComb::compareLeptonNeutrino(), TtSemiLepJetComb::compareTopNeutrino(), TtSemiLepJetComb::compareWNeutrino(), TtFullHadKinFitter::KinFit::corJet(), pat::Jet::correctedJet(), pat::Tau::correctedP4(), pat::Jet::correctedP4(), pat::Tau::correctedTauJet(), ZSPJPTJetCorrector::correction(), JetPlusTrackCorrector::correction(), TauJetCorrector::correction(), LXXXCorrector::correction(), PFElectronTranslator::createGsfElectrons(), reco::tau::disc::Dalitz2(), TtSemiLepJetComb::deduceMothers(), PFRecoTauDiscriminationByHPSSelection::discriminate(), PFTauDiscriminants::InvariantMassOfSignalWithFiltered::doComputation(), CaloTower::emEt(), ErsatzMEt::ersatzFabrik(), CaloTower::et(), JetPartonMatcher::fillAlgoritDefinition(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), JetPartonMatcher::fillPhysicsDefinition(), pat::CaloJetSelector::filter(), HLTRHemisphere::filter(), L2TauModularIsolationProducer::getECALHits(), L2TauNarrowConeIsolationProducer::getECALHits(), L2TauModularIsolationProducer::getHCALHits(), L2TauNarrowConeIsolationProducer::getHCALHits(), GeneratorTau::getOpeningAngle(), L2TauModularIsolationProducer::getPFClusters(), GeneratorTau::getVisNuAngle(), CaloTower::hadEt(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), reco::tau::RecoTauIsolationMasking::inCone(), pat::Tau::initializeJEC(), pat::Jet::initializeJEC(), reco::tau::disc::JetTauDR(), TtSemiLepJetComb::lightQVar(), reco::tau::disc::MainTrackAngle(), L2TauAnalyzer::match(), L25TauAnalyzer::match(), L25TauAnalyzer::matchedToPFTau(), HLTTauDQMCaloPlotter::matchJet(), HLTTauDQMTrkPlotter::matchJet(), ZToMuMuGammaAnalyzer::mumuGammaInvMass(), ZToMuMuGammaAnalyzer::mumuInvMass(), MuonMETAlgo::MuonMETAlgo_run(), reco::tau::disc::NeutralOutlierAngle(), TtSemiLepJetComb::neutrinoVar(), reco::tau::disc::OpeningAngle3D(), reco::tau::disc::OpeningDeltaR(), reco::tau::RecoTauPhotonFilter::operator()(), TtHadLRJetCombObservables::operator()(), CalculateHLT::operator()(), CorrectJet::operator()(), TtDilepLRSignalSelObservables::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), JetIDSelectionFunctor::operator()(), TtSemiLRJetCombObservables::operator()(), CaloTower::outerEt(), reco::tau::disc::OutlierAngle(), overlap(), CaloTower::p(), CaloTower::p4(), reco::PFTauDecayMode::PFTauDecayMode(), reco::tau::disc::PiZeroAngle(), reco::RecoTauPiZero::print(), QuarkoniaTrackSelector::produce(), Type0PFMETcorrInputProducer::produce(), PFRecoTauDecayModeDeterminator::produce(), ParticleReplacerClass::produce(), ISRGammaWeightProducer::produce(), TruthTauDecayModeProducer::produce(), L1HLTTauMatching::produce(), MuonProducer::produce(), TCTauAlgorithm::recalculateEnergy(), TtSemiLepJetComb::relativePtHadronicTop(), reco::PFCandidate::rescaleMomentum(), reco::Jet::scaleEnergy(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::Photon::setCorrectedEnergy(), setP4(), reco::Photon::setP4(), reco::Muon::setPFP4(), reco::tau::sumPFCandP4(), PFRootEventManager::tauBenchmark(), reco::tau::disc::TrackAngle(), SelectReplacementCandidates::transformMuMu2TauTau(), and pat::TriggerObjectStandAlone::triggerObject().

virtual int reco::LeafCandidate::pdgId ( ) const [inline, virtual]

PDG identifier.

Implements reco::Candidate.

Definition at line 194 of file LeafCandidate.h.

References pdgId_.

Referenced by FBaseSimEvent::addParticles(), ResolutionCreator::analyze(), JetAnaPythia< Jet >::analyze(), ZMuPtScaleAnalyzer::analyze(), PFTester::analyze(), zPdfUnc::analyze(), EWKSystUnc::analyze(), ZLONLOHistogrammer::analyze(), TopDecaySubset::checkShowerModel(), GeneratorTau::computeDecayMode(), TopGenEvent::daughterQuarkOfTop(), GeneratorTau::decayToPDGClassification(), TopDecaySubset::fillListing(), objMon< T >::fillMC(), HSCPTreeBuilder::filter(), HighETPhotonsFilterAlgo::filter(), BCToEFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), GenParticlesHelper::findParticles(), InputGenJetsParticleSelector::fromResonance(), pat::PATObject< ObjectType >::genParticleById(), PFJetBenchmark::gettrue(), GenParticlesHelper::hasAncestor(), objMon< T >::hasBPartonInCone(), BCToEFilterAlgo::isBCBaryon(), doubleEMEnrichingFilterAlgo::isBCBaryon(), doubleEMEnrichingFilterAlgo::isBCMeson(), BCToEFilterAlgo::isBCMeson(), HiGammaJetSignalDef::IsIsolated(), HiPhotonType::IsPrompt(), McSelector::isSelected(), JetMaker::makeSpecific(), BasicGenParticleValidation::matchParticles(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), reco::RecoTauPiZero::numberOfElectrons(), reco::RecoTauPiZero::numberOfGammas(), TtDilepLRSignalSelObservables::operator()(), PartonQualifier::operator()(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), JetPartonMatcher::produce(), PartonSelector::produce(), InputGenJetsParticleSelector::produce(), WeakEffectsWeightProducer::produce(), ParticleReplacerClass::produce(), ISRWeightProducer::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), PdfWeightProducer::produce(), MuonProducer::produce(), PFRootEventManager::reconstructGenJets(), setPdgId(), SelectReplacementCandidates::transformMuMu2TauTau(), and pat::TriggerObjectStandAlone::triggerObject().

{ return pdgId_; }
virtual double reco::LeafCandidate::phi ( ) const [inline, virtual]

momentum azimuthal angle

Implements reco::Candidate.

Reimplemented in reco::CastorTower, reco::EcalIsolatedParticleCandidate, and pat::MHT.

Definition at line 139 of file LeafCandidate.h.

References phi_.

Referenced by reco::WMuNuCandidate::acop(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), CaloSpecificAlgo::addInfo(), FWElectronDetailView::addSceneInfo(), FWMuonDetailView::addSceneInfo(), ZMuMuIsolationAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), METTester::analyze(), HLTMuonMatchAndPlot::analyze(), GsfElectronDataAnalyzer::analyze(), JetValidation::analyze(), PhotonValidator::analyze(), EwkMuLumiMonitorDQM::analyze(), ErsatzMEt::analyze(), RPCRecHitProbability::analyze(), PatPhotonSimpleAnalyzer::analyze(), JPTJetTester::analyze(), PatZjetsJetAnalyzer::analyze(), WenuPlots::analyze(), ZMuMu_Radiative_analyzer::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronMCFakeAnalyzer::analyze(), FlavorJetCorrectionExample::analyze(), PFTester::analyze(), ElectronTagProbeAnalyzer::analyze(), PartonJetCorrectionExample::analyze(), IsolatedParticlesGeneratedJets::analyze(), EwkMuDQM::analyze(), PatTauAnalyzer::analyze(), HLTMonBTagIPSource::analyze(), QcdPhotonsDQM::analyze(), GsfElectronMCAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), CMSDAS11DijetAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), JPTJetAnalyzer::analyze(), HLTTauDQMCaloPlotter::analyze(), SimplePi0DiscAnalyzer::analyze(), PFJetTester::analyze(), EwkDQM::analyze(), EwkElecDQM::analyze(), TopHLTDiMuonDQM::analyze(), CaloJetTester::analyze(), L25TauAnalyzer::analyze(), HLTMonBTagMuSource::analyze(), CaloTowerAnalyzer::analyze(), PFCandidateChecker::analyze(), GsfElectronFakeAnalyzer::analyze(), myJetAna::analyze(), JetTagPlotter::analyzeTag(), JetTracksAssociationXtrpCalo::associateInputTracksToJet(), AlignmentMuonSelector::basicCuts(), FWMuonDetailView::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1JetParticleProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWElectronDetailView::build(), FWL1EmParticleProxyBuilder::build(), FWPhotonLegoProxyBuilder::build(), FWL1EtMissParticleLegoProxyBuilder::build(), FWMuonLegoProxyBuilder::build(), FWJetLegoProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWCaloTowerDetailView::build(), FWMETLegoProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMETGlimpseProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWPhotonProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), FWMETProxyBuilder::buildViewType(), FWElectronProxyBuilder::buildViewType(), GlobalHaloAlgo::Calculate(), reco::helper::CastorJetIDHelper::calculate(), reco::helper::JetMuonHitsIDHelper::calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), PFMETBenchmark::calculateQuantities(), AlignmentTwoBodyDecayTrackSelector::checkMETAcoplanarity(), JetPlusTrackCorrector::correction(), L6SLBCorrector::correction(), METManager::coutTailEvents(), EMEnrichingFilterAlgo::deltaRxyAtEE(), doubleEMEnrichingFilterAlgo::deltaRxyAtEE(), muonisolation::CaloExtractorByAssociator::deposits(), reco::Jet::etaphiMoment(), reco::Jet::etaPhiStatistics(), metsig::SignAlgoResolutions::evalPF(), metsig::SignAlgoResolutions::evalPFJet(), ZGlobalVsSAIsolationAnalyzer::evaluate(), PFPhotonAlgo::EvaluateGCorrMVA(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFCandidateManager::fill(), RecoMuonValidator::MuonME::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), PFJetMonitor::fill(), ZeeCalibration::fillEleInfo(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), PFJetTester::fillMatchHists(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), MuCorrMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), PFCandidateBenchmark::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), PFRootEventManager::fillOutEventWithPFCandidates(), HSCPTreeBuilder::filter(), WZInterestingEventSelector::filter(), WMuNuValidator::filter(), HeavyChHiggsToTauNuSkim::filter(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), CalibratableTest::findCandidatesInDeltaR(), TtFullLepHypGenMatch::findMatchingLepton(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), TxCalculator::getCTx(), dRxyCalculator::getDRxy(), TxyCalculator::getHollSxy(), TxCalculator::getJct(), TxCalculator::getJt(), ParticleTowerProducer::getNearestTower(), TxyCalculator::getNumLocalTracks(), TxCalculator::getTx(), TxyCalculator::getTxy(), objMon< T >::hasBPartonInCone(), HLTMuonTrackMassFilter::hltFilter(), SoftElectronCandProducer::isClean(), SoftPFElectronProducer::isClean(), BTagHLTOfflineSource::isMuonJet(), JetVertexMain::Main(), main(), fireworks::makeEveJetCone(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), L1MuonMatcherAlgo::match(), FWCaloTowerSliceSelector::matchCell(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), JetIDStudiesSelector::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), WPlusJetsEventSelector::operator()(), reco::operator<<(), operator<<(), egHLT::OffPho::phi(), egHLT::OffEle::phi(), MuonIdProducer::phiOfMuonIneteractionRegion(), reco::Jet::phiphiMoment(), reco::GenJet::print(), reco::GenericJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), JetPartonMatcher::produce(), pf2pat::PFMETAlgo::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetTracksAssociationDRCalo::produce(), JetTracksAssociationDRVertex::produce(), CaloTowerCreatorForTauHLT::produce(), JetVetoedTracksAssociationDRVertex::produce(), CastorClusterProducer::produce(), cms::AlCaDiJetsProducer::produce(), FSRWeightProducer::produce(), ParticleTowerProducer::produce(), CaloTowerCandidateCreator::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), PFRootEventManager::reconstructGenJets(), reco::tau::RecoTauIsolationMasking::resolution(), FWCaloTowerDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), pat::LeptonJetIsolationAngle::spaceAngle(), reco::SoftLeptonTagInfo::taggingVariables(), pat::MET::uncorrectedPhi(), and PFMETAnalyzer::validateMET().

{ return phi_; }
virtual const PolarLorentzVector& reco::LeafCandidate::polarP4 ( ) const [inline, virtual]

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 110 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

{ cachePolar(); return p4Polar_; }
double LeafCandidate::pt ( ) const [virtual]

transverse momentum

Implements reco::Candidate.

Reimplemented in reco::SiStripElectron.

Definition at line 127 of file LeafCandidate.cc.

References pt_.

Referenced by StKinFitter::addKinFitInfo(), ZMuMuIsolationAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), METTester::analyze(), JetValidation::analyze(), GsfElectronDataAnalyzer::analyze(), HLTMuonMatchAndPlot::analyze(), GlbMuQualityCutsAnalysis::analyze(), BeamHaloAnalyzer::analyze(), ErsatzMEt::analyze(), EwkMuLumiMonitorDQM::analyze(), RPCRecHitProbability::analyze(), JPTJetTester::analyze(), PatZjetsJetAnalyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), testAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), FlavorJetCorrectionExample::analyze(), GsfElectronMCFakeAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), RPCMonitorDigi::analyze(), PartonJetCorrectionExample::analyze(), ZToMuMuGammaAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), QcdHighPtDQM::analyze(), PatTauAnalyzer::analyze(), EwkMuDQM::analyze(), IsolatedParticlesGeneratedJets::analyze(), CMSDAS11DijetAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), QcdPhotonsDQM::analyze(), HLTTauDQMCaloPlotter::analyze(), JPTJetAnalyzer::analyze(), PFJetTester::analyze(), gamma_radiative_analyzer::analyze(), EwkElecDQM::analyze(), EwkDQM::analyze(), CaloJetTester::analyze(), MuTriggerAnalyzer::analyze(), HiggsDQM::analyze(), myJetAna::analyze(), GsfElectronFakeAnalyzer::analyze(), JetTagPlotter::analyzeTag(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWL1JetParticleProxyBuilder::build(), FWL1EmParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::helper::JetIDHelper::calculate(), GlobalHaloAlgo::Calculate(), pat::LeptonJetIsolationAngle::calculate(), FWMuonBuilder::calculateField(), PFMETBenchmark::calculateQuantities(), reco::tau::disc::ChargedOutlierPt(), PFAlgo::checkCleaning(), pat::MET::checkUncor_(), CMSDAS11DijetAnalyzer::compare_JetPt(), CMSDAS11DijetTestAnalyzer::compare_JetPt(), reco::Jet::constituentEtaPhiSpread(), reco::Jet::constituentPtDistribution(), JetPlusTrackCorrector::correction(), L1FastjetCorrector::correction(), L6SLBCorrector::correction(), LXXXCorrector::correction(), TCMETAlgo::correctSumEtForMuon(), METManager::coutTailEvents(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), PFTauDiscriminants::Pt::doComputation(), reco::PFTau::dump(), WZInterestingEventSelector::electronSelection(), reco::tau::disc::EMFraction(), metsig::SignAlgoResolutions::evalPFJet(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateResMVA(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), PFCandidateManager::fill(), TopSingleLepton::MonitorEnsemble::fill(), RecoMuonValidator::MuonME::fill(), TopHLTSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), PFJetMonitor::fill(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), PFJetTester::fillMatchHists(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), MuCorrMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), PFCandidateBenchmark::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), HSCPTreeBuilder::filter(), WMuNuSelector::filter(), WZInterestingEventSelector::filter(), LeptonRecoSkim::filter(), WMuNuValidator::filter(), reco::tau::RecoTauPhotonFilter::filter(), reco::CentralityProducer::filter(), NJetsMC::filter(), myFilter::filter(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), getTheElectron(), getTheMuon(), getTheTauJet(), PFCandidateChecker::greaterPt(), PFRootEventManager::highPtPFCandidate(), HLTHcalNoiseFilter::hltFilter(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EtaPtBin::inBin(), SoftElectronCandProducer::isClean(), SoftPFElectronProducer::isClean(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), muon::isGoodMuon(), MuonIdProducer::isGoodTrackerMuon(), HiGammaJetSignalDef::IsIsolated(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), BPhysicsOniaDQM::isMuonInAccept(), reco::tau::disc::IsolationChargedSumHard(), reco::tau::disc::IsolationChargedSumSoft(), reco::tau::disc::IsolationECALSumHard(), reco::tau::disc::IsolationECALSumSoft(), RecoSelector::isSelected(), McSelector::isSelected(), BTagHLTOfflineSource::isVBTFMuon(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), main(), reco::modules::HICaloCompatibleTrackSelector::matchByDrAllowReuse(), pat::MHT::mht(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), EwkMuLumiMonitorDQM::muIso(), ElectronMVAEstimator::mva(), reco::tau::disc::NeutralOutlierPt(), CaloJetSort::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), AcceptJet::operator()(), L2TauJetsMerger::SorterByPt::operator()(), BasicJetSort::operator()(), WMuNuProducer::ComparePt::operator()(), HPSPFRecoTauAlgorithm::HPSTauPtSorter::operator()(), TtSemiLepSignalSelMVATrainer::JetwithHigherPt::operator()(), TtHadLRJetCombObservables::operator()(), GenJetSort::operator()(), MuScleFitUtils::byPt::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), WPlusJetsEventSelector::operator()(), WSelector::operator()(), AlignmentMuonSelector::ComparePt::operator()(), CalculateHLT::operator()(), HLTTauDQMCaloPlotter::SorterByPt::operator()(), TtSemiLRJetCombObservables::operator()(), reco::operator<<(), reco::tau::disc::OutlierPt(), muon::overlap(), PhotonSelectorAlgo::passPhotonSelection(), ZToMuMuGammaAnalyzer::photonSelection(), reco::tau::disc::PiZeroPt(), PFAlgo::postCleaning(), PFAlgo::postMuonCleaning(), PatJetAnalyzer::print(), reco::GenJet::print(), reco::Jet::print(), reco::GenericJet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), JetPartonMatcher::produce(), WMuNuProducer::produce(), QuarkoniaTrackSelector::produce(), InputGenJetsParticleSelector::produce(), AlCaHcalNoiseProducer::produce(), CaloMuonMerger::produce(), cms::MuonMETValueMapProducer::produce(), ISRWeightProducer::produce(), L2TauJetsProvider::produce(), MuonMETcorrInputProducer::produce(), L1HLTTauMatching::produce(), reco::tau::disc::Pt(), egHLT::OffPho::pt(), reco::tau::qcuts::ptMin(), PFRootEventManager::reconstructGenJets(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), reco::tau::disc::ScaledOpeningDeltaR(), FWMuonDetailView::setTextInfo(), reco::tau::disc::SignalPtFraction(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), PFMuonSelector::spring11Cuts(), MuonVPlusJetsIDSelectionFunctor::summer08Cuts(), reco::tau::sumPFCandPt(), reco::tau::disc::TrackPt(), pat::MET::uncorrectedPt(), CaloMETAnalyzer::validateMET(), and PFMETAnalyzer::validateMET().

{ return pt_; }
virtual double reco::LeafCandidate::px ( ) const [inline, virtual]

x coordinate of momentum vector

Implements reco::Candidate.

Definition at line 131 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), METTester::analyze(), EwkMuLumiMonitorDQM::analyze(), JPTJetTester::analyze(), EwkMuDQM::analyze(), PFJetTester::analyze(), JPTJetAnalyzer::analyze(), CaloJetTester::analyze(), EwkElecDQM::analyze(), HiggsDQM::analyze(), myJetAna::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), pat::LeptonJetIsolationAngle::calculate(), MEzCalculator::Calculate(), METzCalculator::Calculate(), PFMETBenchmark::calculateQuantities(), PFAlgo::checkCleaning(), JetPlusTrackCorrector::correction(), L1JPTOffsetCorrector::correction(), TCMETAlgo::correctMETforMuon(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), MuCorrMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), HSCPTreeBuilder::filter(), WMuNuSelector::filter(), WMuNuValidator::filter(), TtFullHadKinFitter::fit(), TtSemiLepKinFitter::fit(), reco::GlobalHaloData::GetCorrectedCaloMET(), InvariantMassAlgorithm::getMinimumClusterDR(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), CalculateHLT::operator()(), hitfit::METTranslatorBase< AMet >::operator()(), PFAlgo::postCleaning(), PFAlgo::postMuonCleaning(), METzCalculator::Print(), MEzCalculator::Print(), reco::GenericJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), WMuNuProducer::produce(), InvariantMass< T1, T2 >::produce(), JetPlusTrackProducerAA::produce(), JetPlusTrackProducer::produce(), ParticleReplacerClass::produce(), BoostedTopProducer::produce(), MuonMETcorrInputProducer::produce(), JetEnergyShift::produce(), METManager::propagateJEC(), TCTauAlgorithm::recalculateEnergy(), EcalTDigitizer< ESDigitizerTraits >::run(), TauMETAlgo::run(), pat::MET::setPtPhi_(), reco::MET::significance(), ImpactParameterAlgorithm::tag(), CaloMETAnalyzer::validateMET(), PFMETAnalyzer::validateMET(), and reco::WMuNuCandidatePtr::WMuNuCandidatePtr().

{ cacheCartesian(); return p4Cartesian_.Px(); }
virtual double reco::LeafCandidate::py ( ) const [inline, virtual]

y coordinate of momentum vector

Implements reco::Candidate.

Definition at line 133 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), ElectronMcFakeValidator::analyze(), METTester::analyze(), GsfElectronDataAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), JPTJetTester::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronMCFakeAnalyzer::analyze(), EwkMuDQM::analyze(), GsfElectronMCAnalyzer::analyze(), JPTJetAnalyzer::analyze(), PFJetTester::analyze(), EwkElecDQM::analyze(), CaloJetTester::analyze(), HiggsDQM::analyze(), GsfElectronFakeAnalyzer::analyze(), myJetAna::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), MEzCalculator::Calculate(), pat::LeptonJetIsolationAngle::calculate(), METzCalculator::Calculate(), PFMETBenchmark::calculateQuantities(), PFAlgo::checkCleaning(), JetPlusTrackCorrector::correction(), L1JPTOffsetCorrector::correction(), TCMETAlgo::correctMETforMuon(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), MuCorrMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), HSCPTreeBuilder::filter(), WMuNuSelector::filter(), WMuNuValidator::filter(), TtFullHadKinFitter::fit(), TtSemiLepKinFitter::fit(), reco::GlobalHaloData::GetCorrectedCaloMET(), InvariantMassAlgorithm::getMinimumClusterDR(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), CalculateHLT::operator()(), hitfit::METTranslatorBase< AMet >::operator()(), PFAlgo::postCleaning(), PFAlgo::postMuonCleaning(), METzCalculator::Print(), MEzCalculator::Print(), reco::Jet::print(), reco::GenericJet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), WMuNuProducer::produce(), InvariantMass< T1, T2 >::produce(), JetPlusTrackProducerAA::produce(), JetPlusTrackProducer::produce(), ParticleReplacerClass::produce(), BoostedTopProducer::produce(), MuonMETcorrInputProducer::produce(), JetEnergyShift::produce(), METManager::propagateJEC(), TCTauAlgorithm::recalculateEnergy(), EcalTDigitizer< ESDigitizerTraits >::run(), TauMETAlgo::run(), pat::MET::setPtPhi_(), reco::MET::significance(), ImpactParameterAlgorithm::tag(), CaloMETAnalyzer::validateMET(), and PFMETAnalyzer::validateMET().

{ cacheCartesian(); return p4Cartesian_.Py(); }
virtual double reco::LeafCandidate::pz ( ) const [inline, virtual]

z coordinate of momentum vector

Implements reco::Candidate.

Reimplemented in reco::SiStripElectron.

Definition at line 135 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), EwkMuDQM::analyze(), JPTJetAnalyzer::analyze(), EwkElecDQM::analyze(), HiggsDQM::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWPFCandidate3DProxyBuilder::build(), reco::FlavorHistoryEvent::cache(), pat::LeptonJetIsolationAngle::calculate(), MEzCalculator::Calculate(), METzCalculator::Calculate(), JetPlusTrackCorrector::correction(), L1JPTOffsetCorrector::correction(), EMEnrichingFilterAlgo::deltaRxyAtEE(), doubleEMEnrichingFilterAlgo::deltaRxyAtEE(), HSCPTreeBuilder::filter(), TtFullHadKinFitter::fit(), TtSemiLepKinFitter::fit(), reco::GlobalHaloData::GetCorrectedCaloMET(), InvariantMassAlgorithm::getMinimumClusterDR(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TtSemiLRSignalSelObservables::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), METzCalculator::Print(), MEzCalculator::Print(), reco::GenericJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), WMuNuProducer::produce(), InvariantMass< T1, T2 >::produce(), JetPlusTrackProducerAA::produce(), JetPlusTrackProducer::produce(), ParticleReplacerClass::produce(), BoostedTopProducer::produce(), TCTauAlgorithm::recalculateEnergy(), and ImpactParameterAlgorithm::tag().

{ cacheCartesian(); return p4Cartesian_.Pz(); }
virtual double reco::LeafCandidate::rapidity ( ) const [inline, virtual]

rapidity

Implements reco::Candidate.

Definition at line 145 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by y().

{ cachePolar(); return p4Polar_.Rapidity(); }
virtual void reco::LeafCandidate::setCharge ( Charge  q) [inline, virtual]
virtual void reco::LeafCandidate::setLongLived ( ) [inline, virtual]

set long lived flag

Implements reco::Candidate.

Definition at line 204 of file LeafCandidate.h.

References longLivedTag, and status_.

virtual void reco::LeafCandidate::setMass ( double  m) [inline, virtual]

set particle mass

Implements reco::Candidate.

Definition at line 170 of file LeafCandidate.h.

References clearCache(), m, and mass_.

Referenced by PFRecoTauDecayModeDeterminator::produce(), and RecoTauPiZeroProducer::produce().

                                     {
      mass_ = m;
      clearCache();
    }
virtual void reco::LeafCandidate::setMassConstraint ( ) [inline, virtual]

set mass constraint flag

Implements reco::Candidate.

Definition at line 210 of file LeafCandidate.h.

References massConstraintTag, and status_.

virtual void reco::LeafCandidate::setP4 ( const LorentzVector p4) [inline, virtual]

set 4-momentum

Implements reco::Candidate.

Definition at line 149 of file LeafCandidate.h.

References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Cartesian_, p4Polar_, phi_, and pt_.

Referenced by EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), HPSPFRecoTauAlgorithm::buildPFTau(), MuonsFromRefitTracksProducer::cloneAndSwitchTrack(), converter::SuperClusterToCandidate::convert(), converter::StandAloneMuonTrackToCandidate::convert(), converter::TrackToCandidate::convert(), GenParticleProducer::convertParticle(), TtFullHadKinFitter::KinFit::corJet(), pat::Jet::correctedJet(), pat::Tau::correctedTauJet(), pat::GenericParticle::fillInFrom(), pat::PATMuonProducer::fillMuon(), MuScleFitFilter::filter(), pat::Tau::initializeJEC(), pat::Jet::initializeJEC(), reco::tau::RecoTauPhotonFilter::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), reco::PFTauDecayMode::PFTauDecayMode(), GlobalMuonToMuonProducer::produce(), TCRecoTauProducer::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducerFromDB::produce(), MuScleFitMuonProducer::produce(), TCTauAlgorithm::recalculateEnergy(), HPSPFRecoTauAlgorithm::refitThreeProng(), reco::PFCandidate::rescaleMomentum(), PFPhotonAlgo::RunPFPhoton(), reco::Jet::scaleEnergy(), CandCommonVertexFitterBase::set(), CandKinematicVertexFitter::set(), PFCandCommonVertexFitterBase::set(), MEzCalculator::SetLepton(), METzCalculator::SetMET(), MEzCalculator::SetMET(), METzCalculator::SetMuon(), and SelectReplacementCandidates::transformMuMu2TauTau().

                                                   {
      p4Cartesian_ = p4;
      p4Polar_ = p4;
      pt_ = p4Polar_.pt();
      eta_ = p4Polar_.eta();
      phi_ = p4Polar_.phi();
      mass_ = p4Polar_.mass();
      cachePolarFixed_ = true;
      cacheCartesianFixed_ = true;
    }
virtual void reco::LeafCandidate::setP4 ( const PolarLorentzVector p4) [inline, virtual]

set 4-momentum

Implements reco::Candidate.

Definition at line 160 of file LeafCandidate.h.

References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Polar_, phi_, and pt_.

                                                        {
      p4Polar_ = p4;
      pt_ = p4Polar_.pt();
      eta_ = p4Polar_.eta();
      phi_ = p4Polar_.phi();
      mass_ = p4Polar_.mass();
      cachePolarFixed_ = true;
      cacheCartesianFixed_ = false;
    }
virtual void reco::LeafCandidate::setPdgId ( int  pdgId) [inline, virtual]
virtual void reco::LeafCandidate::setPz ( double  pz) [inline, virtual]

Implements reco::Candidate.

Definition at line 174 of file LeafCandidate.h.

References cacheCartesian(), eta_, mass_, p4Cartesian_, p4Polar_, phi_, and pt_.

Referenced by BoostedTopProducer::produce().

                                    {
      cacheCartesian();
      p4Cartesian_.SetPz(pz);
      p4Polar_ = p4Cartesian_;
      pt_ = p4Polar_.pt();
      eta_ = p4Polar_.eta();
      phi_ = p4Polar_.phi();
      mass_ = p4Polar_.mass();
    }
virtual void reco::LeafCandidate::setStatus ( int  status) [inline, virtual]
virtual void reco::LeafCandidate::setThreeCharge ( Charge  qx3) [inline, virtual]

set electric charge

Implements reco::Candidate.

Definition at line 106 of file LeafCandidate.h.

References qx3_.

Referenced by GenParticleProducer::convertParticle().

{ qx3_ = qx3; }
virtual void reco::LeafCandidate::setVertex ( const Point vertex) [inline, virtual]
virtual CandidatePtr reco::LeafCandidate::sourceCandidatePtr ( size_type  i) const [inline, virtual]

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

Reimplemented from reco::Candidate.

Reimplemented in reco::CompositePtrCandidate, reco::PFCandidate, pat::Electron, pat::Muon, and reco::PFTau.

Definition at line 95 of file LeafCandidate.h.

                                                                 {
      return CandidatePtr();
    }
virtual int reco::LeafCandidate::status ( ) const [inline, virtual]

status word

Implements reco::Candidate.

Definition at line 198 of file LeafCandidate.h.

References status_.

Referenced by FBaseSimEvent::addParticles(), ResolutionCreator::analyze(), JetAnaPythia< Jet >::analyze(), ZMuPtScaleAnalyzer::analyze(), zPdfUnc::analyze(), EWKSystUnc::analyze(), ZLONLOHistogrammer::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), GeneratorTau::computeDecayMode(), GeneratorTau::computeStableDecayProducts(), GeneratorTau::decayToPDGClassification(), objMon< T >::fillMC(), HSCPTreeBuilder::filter(), HighETPhotonsFilterAlgo::filter(), BCToEFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), GenParticlesHelper::findParticles(), InputGenJetsParticleSelector::fromResonance(), pat::PATObject< ObjectType >::genParticleById(), GenParticlesHelper::hasAncestor(), HiGammaJetSignalDef::IsIsolated(), HiGammaJetSignalDef::IsIsolatedJP(), HiGammaJetSignalDef::IsIsolatedPP(), McSelector::isSelected(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), PartonQualifier::operator()(), PartonSelector::produce(), JetPartonMatcher::produce(), InputGenJetsParticleSelector::produce(), WeakEffectsWeightProducer::produce(), ISRWeightProducer::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), PdfWeightProducer::produce(), PFRootEventManager::reconstructGenJets(), and setStatus().

{ return status_; }
virtual double reco::LeafCandidate::theta ( ) const [inline, virtual]
virtual int reco::LeafCandidate::threeCharge ( ) const [inline, virtual]

electric charge

Implements reco::Candidate.

Definition at line 104 of file LeafCandidate.h.

References qx3_.

Referenced by TopDecaySubset::fillListing().

{ return qx3_; }
virtual const Point& reco::LeafCandidate::vertex ( ) const [inline, virtual]
double LeafCandidate::vertexChi2 ( ) const [virtual]

chi-squares

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 83 of file LeafCandidate.cc.

                                       {
  return 0;
}
CovarianceMatrix reco::LeafCandidate::vertexCovariance ( ) const [inline, virtual]

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 232 of file LeafCandidate.h.

References fillVertexCovariance(), and m.

double LeafCandidate::vertexCovariance ( int  i,
int  j 
) const [virtual]

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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 95 of file LeafCandidate.cc.

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

                                                         {
  throw edm::Exception(edm::errors::UnimplementedFeature)
    << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
}
double LeafCandidate::vertexNdof ( ) const [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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 87 of file LeafCandidate.cc.

                                       {
  return 0;
}
double LeafCandidate::vertexNormalizedChi2 ( ) const [virtual]

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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 91 of file LeafCandidate.cc.

                                                 {
  return 0;
}
virtual double reco::LeafCandidate::vx ( ) const [inline, virtual]
virtual double reco::LeafCandidate::vy ( ) const [inline, virtual]
virtual double reco::LeafCandidate::vz ( ) const [inline, virtual]
virtual double reco::LeafCandidate::y ( ) const [inline, virtual]

rapidity

Implements reco::Candidate.

Reimplemented in reco::CastorTower.

Definition at line 147 of file LeafCandidate.h.

References rapidity().

{ return rapidity(); }

Friends And Related Function Documentation

friend class ::OverlapChecker [friend]

Reimplemented from reco::Candidate.

Definition at line 346 of file LeafCandidate.h.

friend struct component [friend]

Reimplemented from reco::Candidate.

Reimplemented in reco::RecoCandidate.

Definition at line 345 of file LeafCandidate.h.

friend class ShallowCloneCandidate [friend]

Reimplemented from reco::Candidate.

Definition at line 347 of file LeafCandidate.h.

friend class ShallowClonePtrCandidate [friend]

Reimplemented from reco::Candidate.

Definition at line 348 of file LeafCandidate.h.


Member Data Documentation

bool reco::LeafCandidate::cacheCartesianFixed_ [mutable, protected]

Definition at line 324 of file LeafCandidate.h.

Referenced by cacheCartesian(), clearCache(), and setP4().

bool reco::LeafCandidate::cachePolarFixed_ [mutable, protected]

has cache been set?

Definition at line 324 of file LeafCandidate.h.

Referenced by cachePolar(), clearCache(), and setP4().

float reco::LeafCandidate::eta_ [protected]

Reimplemented in reco::EcalIsolatedParticleCandidate.

Definition at line 312 of file LeafCandidate.h.

Referenced by cachePolar(), eta(), setP4(), and setPz().

const unsigned int reco::LeafCandidate::longLivedTag = 65536 [static]

long lived flag

Definition at line 202 of file LeafCandidate.h.

Referenced by longLived(), and setLongLived().

float reco::LeafCandidate::mass_ [protected]

Definition at line 312 of file LeafCandidate.h.

Referenced by cachePolar(), mass(), massSqr(), setMass(), setP4(), and setPz().

const unsigned int reco::LeafCandidate::massConstraintTag = 131072 [static]

do mass constraint flag

Definition at line 208 of file LeafCandidate.h.

Referenced by massConstraint(), and setMassConstraint().

internal cache for p4

Definition at line 322 of file LeafCandidate.h.

Referenced by boostToCM(), cacheCartesian(), energy(), momentum(), p(), p4(), px(), py(), pz(), setP4(), setPz(), and theta().

internal cache for p4

Definition at line 320 of file LeafCandidate.h.

Referenced by cacheCartesian(), cachePolar(), et(), mt(), mtSqr(), polarP4(), rapidity(), setP4(), and setPz().

int reco::LeafCandidate::pdgId_ [protected]

PDG identifier.

Definition at line 316 of file LeafCandidate.h.

Referenced by reco::PFCandidate::particleId(), pdgId(), and setPdgId().

float reco::LeafCandidate::phi_ [protected]

Reimplemented in reco::EcalIsolatedParticleCandidate.

Definition at line 312 of file LeafCandidate.h.

Referenced by cachePolar(), phi(), setP4(), and setPz().

float reco::LeafCandidate::pt_ [protected]

four-momentum Lorentz vector

Reimplemented in reco::SiStripElectron.

Definition at line 312 of file LeafCandidate.h.

Referenced by cachePolar(), pt(), setP4(), and setPz().

electric charge

Definition at line 310 of file LeafCandidate.h.

Referenced by charge(), LeafCandidate(), setCharge(), setThreeCharge(), and threeCharge().

status word

Definition at line 318 of file LeafCandidate.h.

Referenced by longLived(), massConstraint(), setLongLived(), setMassConstraint(), setStatus(), and status().