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 | 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

Classes

struct  GCC11_FINAL
 

Public Types

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

Public Member Functions

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

Static Public Attributes

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

Protected Member Functions

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

Protected Attributes

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

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
 
template<typename , typename , typename >
struct component
 
class ShallowCloneCandidate
 
class ShallowClonePtrCandidate
 

Detailed Description

particle candidate with no constituent nor daughters

Author
Luca Lista, INFN

Definition at line 19 of file LeafCandidate.h.

Member Typedef Documentation

electric charge type

Definition at line 24 of file LeafCandidate.h.

Definition at line 370 of file LeafCandidate.h.

collection of daughter candidates

Definition at line 22 of file LeafCandidate.h.

typedef unsigned int reco::LeafCandidate::index

Definition at line 34 of file LeafCandidate.h.

Definition at line 372 of file LeafCandidate.h.

Lorentz vector.

Definition at line 26 of file LeafCandidate.h.

point in the space

Definition at line 30 of file LeafCandidate.h.

Lorentz vector.

Definition at line 28 of file LeafCandidate.h.

point in the space

Definition at line 32 of file LeafCandidate.h.

Constructor & Destructor Documentation

reco::LeafCandidate::LeafCandidate ( )
inline

default constructor

Definition at line 37 of file LeafCandidate.h.

Referenced by clone().

37  :
38  qx3_(0), pt_(0), eta_(0), phi_(0), mass_(0),
39  vertex_(0, 0, 0), pdgId_(0), status_(0),
40  cachePolarFixed_( false ), cacheCartesianFixed_( false ) { }
int pdgId_
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
int status_
status word
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
reco::LeafCandidate::LeafCandidate ( const Candidate c)
inlineexplicit

Definition at line 42 of file LeafCandidate.h.

42  :
43  qx3_( c.charge()*3 ), pt_( c.p4().pt() ), eta_( c.p4().eta() ), phi_( c.p4().phi() )
44  , mass_( c.p4().mass() ),
45  vertex_( c.vertex() ), pdgId_( c.pdgId() ), status_( c.status() ),
46  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
int pdgId_
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
int status_
status word
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
template<typename P4 >
reco::LeafCandidate::LeafCandidate ( Charge  q,
const P4 &  p4,
const Point vtx = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from Any values

Definition at line 50 of file LeafCandidate.h.

51  :
52  qx3_(integerCharge ? 3*q : q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
53  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
54  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
int pdgId_
PDG identifier.
virtual int pdgId() const GCC11_FINAL
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
virtual int status() const GCC11_FINAL
status word
int status_
status word
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
reco::LeafCandidate::LeafCandidate ( Charge  q,
const PtEtaPhiMass p4,
const Point vtx = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 58 of file LeafCandidate.h.

59  :
60  qx3_(integerCharge ? 3*q : q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
61  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
62  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
float phi() const
momentum azimuthal angle
Definition: PtEtaPhiMass.h:30
float eta() const
momentum pseudorapidity
Definition: PtEtaPhiMass.h:28
int pdgId_
PDG identifier.
virtual int pdgId() const GCC11_FINAL
PDG identifier.
float pt_
four-momentum Lorentz vector
float pt() const
transverse momentum
Definition: PtEtaPhiMass.h:26
Point vertex_
vertex position
virtual int status() const GCC11_FINAL
status word
int status_
status word
float mass() const
mass
Definition: PtEtaPhiMass.h:32
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
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 65 of file LeafCandidate.h.

References qx3_.

66  :
67  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
68  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
69  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {
70  if ( integerCharge ) qx3_ *= 3;
71  }
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
int pdgId_
PDG identifier.
virtual int pdgId() const GCC11_FINAL
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
virtual int status() const GCC11_FINAL
status word
int status_
status word
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
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 73 of file LeafCandidate.h.

References qx3_.

74  :
75  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
76  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
77  cachePolarFixed_( false ), cacheCartesianFixed_( false ){
78  if ( integerCharge ) qx3_ *= 3;
79  }
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
int pdgId_
PDG identifier.
virtual int pdgId() const GCC11_FINAL
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
virtual int status() const GCC11_FINAL
status word
int status_
status word
bool cachePolarFixed_
has cache been set?
Charge qx3_
electric charge
LeafCandidate::~LeafCandidate ( )
virtual

destructor

Definition at line 6 of file LeafCandidate.cc.

6 { }

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

Definition at line 307 of file LeafCandidate.h.

References begin(), and end().

307  {
308  return boost::make_filter_iterator(s, begin(), end());
309  }
virtual const_iterator begin() const
first daughter const_iterator
Definition: LeafCandidate.cc:8
virtual const_iterator end() const
last daughter const_iterator
virtual Vector reco::LeafCandidate::boostToCM ( ) const
inlinevirtual

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

Implements reco::Candidate.

Definition at line 130 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

130 { cacheCartesian(); return p4Cartesian_.BoostToCM(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
void reco::LeafCandidate::cacheCartesian ( ) const
inlineprotected

set internal cache

Definition at line 350 of file LeafCandidate.h.

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

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

350  {
351  if ( cacheCartesianFixed_ ) return;
352  cachePolar();
354  cacheCartesianFixed_ = true;
355  }
LorentzVector p4Cartesian_
internal cache for p4
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
void reco::LeafCandidate::cachePolar ( ) const
inlineprotected

set internal cache

Definition at line 344 of file LeafCandidate.h.

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

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

344  {
345  if ( cachePolarFixed_ ) return;
347  cachePolarFixed_ = true;
348  }
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:28
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
bool cachePolarFixed_
has cache been set?
virtual int reco::LeafCandidate::charge ( ) const
inlinevirtual

electric charge

Implements reco::Candidate.

Definition at line 115 of file LeafCandidate.h.

References qx3_.

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

115 { return qx3_ / 3; }
Charge qx3_
electric charge
void reco::LeafCandidate::clearCache ( ) const
inlineprotected

clear internal cache

Definition at line 357 of file LeafCandidate.h.

References cacheCartesianFixed_, and cachePolarFixed_.

Referenced by setMass().

357  {
358  cachePolarFixed_ = false;
359  cacheCartesianFixed_ = false;
360  }
bool cachePolarFixed_
has cache been set?
virtual LeafCandidate* reco::LeafCandidate::clone ( void  ) const
inlinevirtual

returns a clone of the Candidate object

Implements reco::Candidate.

Reimplemented in reco::PFJet, reco::CaloJet, reco::JPTJet, l1extra::L1EtMissParticle, reco::PFCandidate, reco::GsfElectron, pat::Jet, l1extra::L1MuonParticle, reco::GenJet, reco::SiStripElectron, 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::GenParticle, reco::RecoCandidate, reco::EcalIsolatedParticleCandidate, reco::BasicJet, reco::Muon, reco::CaloRecHitCandidate, reco::IsolatedPFCandidate, reco::PileUpPFCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::CandidateWithRef< Ref >, reco::RecoCaloTowerCandidate, reco::Electron, reco::BaseTau, and reco::CaloTau.

Definition at line 232 of file LeafCandidate.h.

References LeafCandidate().

232  {
233  return new LeafCandidate( *this );
234  }
LeafCandidate()
default constructor
Definition: LeafCandidate.h:37
const Candidate * LeafCandidate::daughter ( size_type  ) const
virtual
Candidate * LeafCandidate::daughter ( size_type  )
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 edm::hlt::Exception, and edm::errors::UnimplementedFeature.

71  {
73  << "This Candidate type does not implement daughter(std::string). "
74  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
75 }
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 edm::hlt::Exception, and edm::errors::UnimplementedFeature.

65  {
67  << "This Candidate type does not implement daughter(std::string). "
68  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
69 }
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

Definition at line 311 of file LeafCandidate.h.

References end().

311  {
312  return boost::make_filter_iterator(s, end(), end());
313  }
virtual const_iterator end() const
last daughter const_iterator
virtual double reco::LeafCandidate::energy ( ) const
inlinevirtual

energy

Implements reco::Candidate.

Definition at line 134 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

134 { cacheCartesian(); return p4Cartesian_.E(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual double reco::LeafCandidate::et ( ) const
inlinevirtual

transverse energy

Implements reco::Candidate.

Definition at line 136 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by StKinFitter::addKinFitInfo(), HLTTauDQMCaloPlotter::analyze(), EwkMuDQM::analyze(), EwkElecDQM::analyze(), PFTester::analyze(), DQMHcalDiJetsAlCaReco::analyze(), TopElectronHLTOfflineSource::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), WenuPlots::analyze(), SimplePhotonAnalyzer::analyze(), EwkDQM::analyze(), PatPhotonSimpleAnalyzer::analyze(), L2TauAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), PhotonValidator::analyze(), JPTJetAnalyzer::analyze(), L25TauAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), ExoticaDQM::analyzeEventInterpretation(), ExoticaDQM::analyzeMultiJets(), EgammaObjects::analyzePhotons(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWMETGlimpseProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), reco::helper::JetIDHelper::calculate(), EmDQM::checkGeneratedParticlesRequirement(), TauElementsOperators::computeConeSize(), TCTauCorrector::correction(), JetPlusTrackCorrector::correction(), egHLT::OffPho::et(), egHLT::OffEle::et(), reco::tau::qcuts::etMin(), l1extra::L1EtMissParticle::etMiss(), TopDiLeptonOffline::MonitorEnsemble::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), WMuNuValidator::filter(), doubleEMEnrichingFilterAlgo::filter(), WMuNuSelector::filter(), BCToEFilterAlgo::filter(), HighETPhotonsFilterAlgo::filter(), HeavyChHiggsToTauNuSkim::filter(), PhotonEnrichmentFilter::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::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(), CombinedSVComputer::operator()(), GhostTrackComputer::operator()(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRSignalSelObservables::operator()(), TtHadLRSignalSelObservables::CompareET::operator()(), TtSemiLRSignalSelObservables::CompareET::operator()(), PhotonValidator::sortPhotons::operator()(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), DistortedMETProducer::produce(), L2TauRelaxingIsolationSelector::produce(), L2TauModularIsolationSelector::produce(), L2TauIsolationSelector::produce(), ParticleTowerProducer::produce(), HiL1Subtractor::produce(), JetPlusTrackCorrector::rebuildJta(), FWPhotonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), PFElectronSelector::spring11Cuts(), and reco::SoftLeptonTagInfo::taggingVariables().

136 { cachePolar(); return p4Polar_.Et(); }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
virtual float reco::LeafCandidate::eta ( ) const
inlinevirtual

momentum pseudorapidity

Implements reco::Candidate.

Definition at line 159 of file LeafCandidate.h.

References eta_.

Referenced by reco::tau::disc::AbsEta(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), StKinFitter::addKinFitInfo(), FWMuonDetailView::addSceneInfo(), FWElectronDetailView::addSceneInfo(), GlbMuQualityCutsAnalysis::analyze(), ZMuPtScaleAnalyzer::analyze(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), HLTTauDQMCaloPlotter::analyze(), EwkElecDQM::analyze(), EwkMuDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), RPCRecHitProbability::analyze(), PFTester::analyze(), RPCMonitorDigi::analyze(), JetTagMVATrainer::analyze(), PFJetTesterUnCorr::analyze(), ElectronTagProbeAnalyzer::analyze(), CaloJetTesterUnCorr::analyze(), JPTJetTesterUnCorr::analyze(), CaloJetTester::analyze(), PFJetTester::analyze(), JPTJetTester::analyze(), EwkMuLumiMonitorDQM::analyze(), testAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), PFCandidateChecker::analyze(), TopElectronHLTOfflineSource::analyze(), ZMuMuIsolationAnalyzer::analyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), WenuPlots::analyze(), MuonEnergyDepositAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), QcdPhotonsDQM::analyze(), PatPhotonSimpleAnalyzer::analyze(), EwkDQM::analyze(), L2TauAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), JPTJetAnalyzer::analyze(), PhotonValidator::analyze(), JetTagMVAExtractor::analyze(), L25TauAnalyzer::analyze(), TopHLTDiMuonDQM::analyze(), ZdcSimHitStudy::analyze(), HLTMuonMatchAndPlot::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), JetTagPlotter::analyzeTag(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWJetLegoProxyBuilder::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWPhotonLegoProxyBuilder::build(), FWMuonLegoProxyBuilder::build(), FWMuonDetailView::build(), FWGenParticleLegoProxyBuilder::build(), FWElectronDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMET3DProxyBuilder::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(), PFMuonAlgo::cleanPunchThroughAndFakes(), PileupJetIdAlgo::computeIdVariables(), JetPlusTrackCorrector::correctAA(), LXXXCorrector::correction(), L1FastjetCorrector::correction(), L1OffsetCorrector::correction(), L6SLBCorrector::correction(), JetPlusTrackCorrector::correction(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), reco::GenJet::detectorEta(), MuonTaggerNoIP::discriminator(), PFTauDiscriminants::Eta::doComputation(), metsig::SignAlgoResolutions::ElectronPtResolution(), reco::tau::disc::Eta(), egHLT::OffPho::eta(), egHLT::OffEle::eta(), reco::Jet::etaPhiStatistics(), metsig::SignAlgoResolutions::evalPF(), metsig::SignAlgoResolutions::evalPFJet(), ZGlobalVsSAIsolationAnalyzer::evaluate(), pat::JetCorrFactorsProducer::evaluate(), PFPhotonAlgo::EvaluateGCorrMVA(), PFEGammaAlgo::EvaluateGCorrMVA(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFEGammaAlgo::EvaluateResMVA(), PFJetMonitor::fill(), PFCandidateManager::fill(), TopHLTSingleLepton::MonitorEnsemble::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), RecoMuonValidator::MuonME::fill(), ZeePlots::fillEleClassesPlots(), ZeeCalibration::fillEleInfo(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTesterUnCorr::fillMatchHists(), PFJetTesterUnCorr::fillMatchHists(), PFJetTester::fillMatchHists(), JPTJetTester::fillMatchHists(), CaloJetTesterUnCorr::fillMatchHists(), CaloJetTester::fillMatchHists(), objMon< T >::fillMC(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), PFRootEventManager::fillOutEventWithPFCandidates(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), WMuNuValidator::filter(), doubleEMEnrichingFilterAlgo::filter(), WMuNuSelector::filter(), BCToEFilterAlgo::filter(), HeavyChHiggsToTauNuSkim::filter(), PhotonEnrichmentFilter::filter(), WZInterestingEventSelector::filter(), reco::CentralityProducer::filter(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::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(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), MuonIdProducer::isGoodRPCMuon(), MuonIdProducer::isGoodTrackerMuon(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), 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(), AntiElectronIDMVA2::MVAValue(), AntiElectronIDMVA3::MVAValue(), muonisolation::CaloExtractor::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseHcal(), AcceptJet::operator()(), GenParticleCustomSelector::operator()(), WPlusJetsEventSelector::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), hitfit::JetTranslatorBase< AJet >::operator()(), reco::operator<<(), operator<<(), passesElectronId(), passesElectronPreId(), ZToMuMuGammaAnalyzer::photonSelection(), reco::tau::disc::PiZeroEta(), reco::GenericJet::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), JetTracksAssociationDRVertex::produce(), QuarkoniaTrackSelector::produce(), DistortedPFCandProducer::produce(), JetTracksAssociationDRVertexAssigned::produce(), DistortedMuonProducerFromDB::produce(), JetTracksAssociationDRCalo::produce(), DistortedMuonProducer::produce(), JetVetoedTracksAssociationDRVertex::produce(), CaloTowerCandidateCreator::produce(), CaloMuonMerger::produce(), cms::MuonMETValueMapProducer::produce(), CaloTowerCreatorForTauHLT::produce(), ParticleTowerProducer::produce(), MuonReSeeder::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), OutsideInMuonSeeder::produce(), PileupJetIdProducer::produce(), HiL1Subtractor::produce(), CastorClusterProducer::produce(), JetIdSelector< T >::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), PFRootEventManager::reconstructGenJets(), reco::tau::RecoTauIsolationMasking::resolution(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), PFPhotonAlgo::RunPFPhoton(), pf2pat::PFIsoDepositAlgo::sameParticle(), FWCaloTowerDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), GenericMVAJetTagComputer::taggingVariables(), reco::SoftLeptonTagInfo::taggingVariables(), reco::tau::disc::TrackEta(), and CaloSpecificAlgo::update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF().

159 { 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 edm::hlt::Exception, and edm::errors::UnimplementedFeature.

Referenced by vertexCovariance().

100  {
102  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
103 }
template<typename T >
T reco::LeafCandidate::get ( void  ) const
inline
template<typename T , typename Tag >
T reco::LeafCandidate::get ( void  ) const
inline

get a component

Definition at line 276 of file LeafCandidate.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().

276  {
277  if ( hasMasterClone() ) return masterClone()->get<T, Tag>();
278  else return reco::get<T, Tag>( * this );
279  }
virtual bool hasMasterClone() const
virtual const CandidateBaseRef & masterClone() const
T get() const
get a component
Definition: Candidate.h:219
long double T
template<typename T >
T reco::LeafCandidate::get ( size_type  i) const
inline

get a component

Definition at line 281 of file LeafCandidate.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().

281  {
282  if ( hasMasterClone() ) return masterClone()->get<T>( i );
283  else return reco::get<T>( * this, i );
284  }
int i
Definition: DBlmapReader.cc:9
virtual bool hasMasterClone() const
virtual const CandidateBaseRef & masterClone() const
T get() const
get a component
Definition: Candidate.h:219
long double T
template<typename T , typename Tag >
T reco::LeafCandidate::get ( size_type  i) const
inline

get a component

Definition at line 286 of file LeafCandidate.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().

286  {
287  if ( hasMasterClone() ) return masterClone()->get<T, Tag>( i );
288  else return reco::get<T, Tag>( * this, i );
289  }
int i
Definition: DBlmapReader.cc:9
virtual bool hasMasterClone() const
virtual const CandidateBaseRef & masterClone() const
T get() const
get a component
Definition: Candidate.h:219
long double T
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().

30  {
31  return false;
32 }
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.

34  {
35  return false;
36 }
bool LeafCandidate::isCaloMuon ( ) const
virtual

Implements reco::Candidate.

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

Definition at line 115 of file LeafCandidate.cc.

115 { 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.

119 { return false; }
bool LeafCandidate::isElectron ( ) const
virtual

Implements reco::Candidate.

Reimplemented in reco::GsfElectron, reco::SiStripElectron, reco::ShallowCloneCandidate, reco::ShallowClonePtrCandidate, and reco::Electron.

Definition at line 105 of file LeafCandidate.cc.

105 { return false; }
bool LeafCandidate::isGlobalMuon ( ) const
virtual

Implements reco::Candidate.

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

Definition at line 109 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 121 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 107 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 117 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 111 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 113 of file LeafCandidate.cc.

113 { return false; }
virtual bool reco::LeafCandidate::longLived ( ) const
inlinevirtual

is long lived?

Implements reco::Candidate.

Definition at line 223 of file LeafCandidate.h.

References longLivedTag, and status_.

223 { return status_ & longLivedTag; }
static const unsigned int longLivedTag
long lived flag
int status_
status word
virtual float reco::LeafCandidate::mass ( ) const
inlinevirtual
virtual bool reco::LeafCandidate::massConstraint ( ) const
inlinevirtual

do mass constraint?

Implements reco::Candidate.

Definition at line 229 of file LeafCandidate.h.

References massConstraintTag, and status_.

Referenced by CandKinematicVertexFitter::fill().

229 { return status_ & massConstraintTag; }
static const unsigned int massConstraintTag
do mass constraint flag
int status_
status word
virtual float reco::LeafCandidate::massSqr ( ) const
inlinevirtual

mass squared

Implements reco::Candidate.

Definition at line 140 of file LeafCandidate.h.

References mass_.

Referenced by EwkElecDQM::analyze().

140 { 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 edm::hlt::Exception.

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

24  {
25  throw cms::Exception("Invalid Reference")
26  << "this Candidate has no master clone reference."
27  << "Can't call masterClone() method.\n";
28 }
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 edm::hlt::Exception.

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

cast master clone reference to a concrete type

Definition at line 268 of file LeafCandidate.h.

References masterClone().

268 { return masterClone().template castTo<Ref>(); }
virtual const CandidateBaseRef & masterClone() const
virtual Vector reco::LeafCandidate::momentum ( ) const
inlinevirtual
const Candidate * LeafCandidate::mother ( size_type  ) const
virtual
virtual double reco::LeafCandidate::mt ( ) const
inlinevirtual

transverse mass

Implements reco::Candidate.

Definition at line 143 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

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

143 { cachePolar(); return p4Polar_.Mt(); }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
virtual double reco::LeafCandidate::mtSqr ( ) const
inlinevirtual

transverse mass squared

Implements reco::Candidate.

Definition at line 145 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

145 { cachePolar(); return p4Polar_.Mt2(); }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
template<typename T >
size_type reco::LeafCandidate::numberOf ( ) const
inline

number of components

Definition at line 291 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

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

number of components

Definition at line 296 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

296  {
297  if ( hasMasterClone() ) return masterClone()->numberOf<T, Tag>();
298  else return reco::numberOf<T, Tag>( * this );
299  }
virtual bool hasMasterClone() const
size_type numberOf() const
number of components
Definition: Candidate.h:239
virtual const CandidateBaseRef & masterClone() const
long double T
size_t LeafCandidate::numberOfDaughters ( ) const
virtual
size_t LeafCandidate::numberOfMothers ( ) const
virtual
virtual size_t reco::LeafCandidate::numberOfSourceCandidatePtrs ( ) const
inlinevirtual

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

Implements reco::Candidate.

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

Definition at line 107 of file LeafCandidate.h.

107 { return 0;}
bool LeafCandidate::overlap ( const Candidate o) const
protectedvirtual

check overlap with another Candidate

Implements reco::Candidate.

Reimplemented in reco::Photon, reco::PFCandidate, reco::Muon, reco::PFTau, reco::PFJet, reco::CaloJet, reco::GsfElectron, reco::JPTJet, reco::SiStripElectron, reco::IsolatedPixelTrackCandidate, reco::CompositeRefCandidateT< D >, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::CompositeCandidate, reco::GenJet, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::GenMET, reco::CaloMET, reco::ShallowCloneCandidate, reco::ShallowClonePtrCandidate, reco::CompositeRefBaseCandidate, reco::MET, reco::TrackJet, reco::CaloTau, reco::PFClusterJet, reco::Electron, reco::GenParticle, reco::BaseTau, reco::BasicJet, reco::CaloRecHitCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::CandidateWithRef< Ref >, reco::RecoCaloTowerCandidate, and reco::RecoCandidate.

Definition at line 53 of file LeafCandidate.cc.

References reco::Candidate::charge(), charge(), reco::Candidate::p4(), p4(), reco::Candidate::vertex(), and vertex().

53  {
54  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
55 }
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
virtual const Point & vertex() const
vertex position (overwritten by PF...)
virtual const Point & vertex() const =0
vertex position
virtual int charge() const =0
electric charge
virtual int charge() const GCC11_FINAL
electric charge
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
virtual double reco::LeafCandidate::p ( ) const
inlinevirtual

magnitude of momentum vector

Implements reco::Candidate.

Definition at line 132 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by EwkMuDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), HiggsDQM::analyze(), JPTJetAnalyzer::analyze(), JetTagPlotter::analyzeTag(), AlignmentMuonSelector::basicCuts(), PFMuonAlgo::cleanPunchThroughAndFakes(), reco::Jet::detectorP4(), CaloTower::emP4(), RecoMuonValidator::MuonME::fill(), HLTOniaSource::fillOniaTriggerMEs(), GreedyMuonPFCandidateFilter::filter(), HSCPTreeBuilder::filter(), CaloTower::hadP4(), HLTMuonTrackMassFilter::hltFilter(), BPhysicsOniaDQM::isMuonInAccept(), RecoSelector::isSelected(), AcceptJet::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), CaloTower::p4(), CaloTower::p4_HO(), reco::Jet::physicsP4(), reco::GenericJet::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), QuarkoniaTrackSelector::produce(), PFRootEventManager::reconstructGenJets(), and reco::PFCandidate::setVertex().

132 { cacheCartesian(); return p4Cartesian_.P(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual const LorentzVector& reco::LeafCandidate::p4 ( ) const
inlinevirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 123 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by reco::tau::RecoTauConstructor::addPiZero(), PFCandConnector::analyseNuclearWPrim(), PFCandConnector::analyseNuclearWSec(), HLTTauDQMCaloPlotter::analyze(), HLTTauDQMTrkPlotter::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), EwkMuLumiMonitorDQM::analyze(), QcdHighPtDQM::analyze(), ResolutionCreator::analyze(), MuonPFAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), L25TauAnalyzer::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), TTbar_Kinematics::analyze(), HLTMuonMatchAndPlot::analyze(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), TtSemiLepJetComb::bOverLightQPt(), TtSemiLepJetComb::bQuarkVar(), CaloRecoTauAlgorithm::buildCaloTau(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::tau::disc::ChargedOutlierAngle(), TtSemiLepJetComb::compareBNeutrino(), TtSemiLepJetComb::compareLeptonNeutrino(), TtSemiLepJetComb::compareTopNeutrino(), TtSemiLepJetComb::compareWNeutrino(), TtFullHadKinFitter::KinFit::corJet(), pat::Jet::correctedJet(), pat::Jet::correctedP4(), pat::Tau::correctedP4(), pat::Tau::correctedTauJet(), TauJetCorrector::correction(), ZSPJPTJetCorrector::correction(), LXXXCorrector::correction(), JetPlusTrackCorrector::correction(), PFElectronTranslator::createGsfElectrons(), reco::tau::disc::Dalitz2(), TtSemiLepJetComb::deduceMothers(), PFRecoTauDiscriminationByHPSSelection::discriminate(), PFTauDiscriminants::InvariantMassOfSignalWithFiltered::doComputation(), CaloTower::emEt(), ErsatzMEt::ersatzFabrik(), CaloTower::et(), JetPartonMatcher::fillAlgoritDefinition(), SoftPFElectronTagInfoProducer::fillElecProperties(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), SoftPFMuonTagInfoProducer::fillMuonProperties(), JetPartonMatcher::fillPhysicsDefinition(), HLTRHemisphere::filter(), pat::CaloJetSelector::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::Jet::initializeJEC(), pat::Tau::initializeJEC(), reco::tau::disc::JetTauDR(), TtSemiLepJetComb::lightQVar(), reco::tau::disc::MainTrackAngle(), L2TauAnalyzer::match(), L25TauAnalyzer::match(), L25TauAnalyzer::matchedToPFTau(), HLTTauDQMTrkPlotter::matchJet(), HLTTauDQMCaloPlotter::matchJet(), ZToMuMuGammaAnalyzer::mumuGammaInvMass(), ZToMuMuGammaAnalyzer::mumuInvMass(), MuonMETAlgo::MuonMETAlgo_run(), reco::tau::disc::NeutralOutlierAngle(), TtSemiLepJetComb::neutrinoVar(), reco::tau::disc::OpeningAngle3D(), reco::tau::disc::OpeningDeltaR(), TtDilepLRSignalSelObservables::operator()(), reco::tau::RecoTauPhotonFilter::operator()(), PFJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), CaloJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), CorrectJet::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), TtHadLRJetCombObservables::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin2::operator()(), TtSemiLRJetCombObservables::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< pat::Jet >::operator()(), CalculateHLT::operator()(), SmearedJetProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), JetIDSelectionFunctor::operator()(), CaloTower::outerEt(), reco::tau::disc::OutlierAngle(), overlap(), CaloTower::p(), CaloTower::p4(), reco::PFTauDecayMode::PFTauDecayMode(), reco::tau::disc::PiZeroAngle(), reco::RecoTauPiZero::print(), QuarkoniaTrackSelector::produce(), L1HLTTauMatching::produce(), ISRGammaWeightProducer::produce(), Type0PFMETcorrInputProducer::produce(), MuonProducer::produce(), TruthTauDecayModeProducer::produce(), ParticleReplacerClass::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().

123 { cacheCartesian(); return p4Cartesian_; }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual int reco::LeafCandidate::pdgId ( ) const
inlinevirtual

PDG identifier.

Implements reco::Candidate.

Definition at line 211 of file LeafCandidate.h.

References pdgId_.

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

211 { return pdgId_; }
int pdgId_
PDG identifier.
virtual float reco::LeafCandidate::phi ( ) const
inlinevirtual

momentum azimuthal angle

Implements reco::Candidate.

Definition at line 155 of file LeafCandidate.h.

References phi_.

Referenced by reco::WMuNuCandidate::acop(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), FWMuonDetailView::addSceneInfo(), FWElectronDetailView::addSceneInfo(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), HLTTauDQMCaloPlotter::analyze(), EwkElecDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), RPCRecHitProbability::analyze(), PFTester::analyze(), CaloTowerAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), CaloJetTesterUnCorr::analyze(), JPTJetTesterUnCorr::analyze(), PFJetTesterUnCorr::analyze(), CaloJetTester::analyze(), PFJetTester::analyze(), JPTJetTester::analyze(), EwkMuLumiMonitorDQM::analyze(), METTester::analyze(), DQMHcalDiJetsAlCaReco::analyze(), PFCandidateChecker::analyze(), ZMuMuIsolationAnalyzer::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), WenuPlots::analyze(), SimplePhotonAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), PatPhotonSimpleAnalyzer::analyze(), QcdPhotonsDQM::analyze(), EwkDQM::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), myJetAna::analyze(), ZMuMu_Radiative_analyzer::analyze(), JPTJetAnalyzer::analyze(), PhotonValidator::analyze(), L25TauAnalyzer::analyze(), TopHLTDiMuonDQM::analyze(), ZdcSimHitStudy::analyze(), HLTMuonMatchAndPlot::analyze(), ErsatzMEt::analyze(), ExoticaDQM::analyzeMultiJets(), JetTagPlotter::analyzeTag(), JetTracksAssociationXtrpCalo::associateInputTracksToJet(), AlignmentMuonSelector::basicCuts(), FWJetLegoProxyBuilder::build(), FWL1EtMissParticleLegoProxyBuilder::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWMETGlimpseProxyBuilder::build(), FWMETLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWPhotonLegoProxyBuilder::build(), FWMuonLegoProxyBuilder::build(), FWMuonDetailView::build(), FWL1EmParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWL1JetParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWGenParticleLegoProxyBuilder::build(), FWElectronDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWPhotonProxyBuilder::buildViewType(), FWElectronProxyBuilder::buildViewType(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), reco::helper::CastorJetIDHelper::calculate(), reco::helper::JetMuonHitsIDHelper::calculate(), GlobalHaloAlgo::Calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), PFMETBenchmark::calculateQuantities(), AlignmentTwoBodyDecayTrackSelector::checkMETAcoplanarity(), L6SLBCorrector::correction(), JetPlusTrackCorrector::correction(), METManager::coutTailEvents(), EMEnrichingFilterAlgo::deltaRxyAtEE(), doubleEMEnrichingFilterAlgo::deltaRxyAtEE(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), EcalDeadCellDeltaRFilter::dPhiToMETfunc(), reco::Jet::etaphiMoment(), reco::Jet::etaPhiStatistics(), metsig::SignAlgoResolutions::evalPF(), metsig::SignAlgoResolutions::evalPFJet(), ZGlobalVsSAIsolationAnalyzer::evaluate(), pat::JetCorrFactorsProducer::evaluate(), PFPhotonAlgo::EvaluateGCorrMVA(), PFEGammaAlgo::EvaluateGCorrMVA(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFEGammaAlgo::EvaluateResMVA(), PFJetMonitor::fill(), PFCandidateManager::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), RecoMuonValidator::MuonME::fill(), ZeeCalibration::fillEleInfo(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTesterUnCorr::fillMatchHists(), PFJetTesterUnCorr::fillMatchHists(), PFJetTester::fillMatchHists(), CaloJetTesterUnCorr::fillMatchHists(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), MuCorrMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), PFRootEventManager::fillOutEventWithPFCandidates(), WMuNuValidator::filter(), HeavyChHiggsToTauNuSkim::filter(), WZInterestingEventSelector::filter(), HSCPTreeBuilder::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(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), BTagHLTOfflineSource::isMuonJet(), main(), JetVertexMain::Main(), fireworks::makeEveJetCone(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), L1MuonMatcherAlgo::match(), FWCaloTowerSliceSelector::matchCell(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), AntiElectronIDMVA2::MVAValue(), AntiElectronIDMVA3::MVAValue(), WPlusJetsEventSelector::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin::operator()(), reco::operator<<(), operator<<(), egHLT::OffPho::phi(), egHLT::OffEle::phi(), MuonIdProducer::phiOfMuonIneteractionRegion(), reco::Jet::phiphiMoment(), reco::GenericJet::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), JetTracksAssociationDRVertex::produce(), DistortedMETProducer::produce(), JetTracksAssociationDRVertexAssigned::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducerFromDB::produce(), JetTracksAssociationDRCalo::produce(), DistortedMuonProducer::produce(), JetVetoedTracksAssociationDRVertex::produce(), FSRWeightProducer::produce(), CaloTowerCandidateCreator::produce(), CaloTowerCreatorForTauHLT::produce(), ParticleTowerProducer::produce(), MuonReSeeder::produce(), pf2pat::PFMETAlgo::produce(), cms::AlCaDiJetsProducer::produce(), OutsideInMuonSeeder::produce(), PileupJetIdProducer::produce(), CastorClusterProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), PFRootEventManager::reconstructGenJets(), reco::tau::RecoTauIsolationMasking::resolution(), FWCaloTowerDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), pat::LeptonJetIsolationAngle::spaceAngle(), reco::SoftLeptonTagInfo::taggingVariables(), pat::MET::uncorrectedPhi(), CaloSpecificAlgo::update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF(), and PFMETAnalyzer::validateMET().

155 { return phi_; }
virtual const PolarLorentzVector& reco::LeafCandidate::polarP4 ( ) const
inlinevirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 125 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by pat::L1MuonMatcher::produce().

125 { cachePolar(); return p4Polar_; }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
virtual float reco::LeafCandidate::pt ( ) const
inlinevirtual

transverse momentum

Implements reco::Candidate.

Definition at line 153 of file LeafCandidate.h.

References pt_.

Referenced by StKinFitter::addKinFitInfo(), GlbMuQualityCutsAnalysis::analyze(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), HLTTauDQMCaloPlotter::analyze(), EwkElecDQM::analyze(), EwkMuDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), RPCRecHitProbability::analyze(), RPCMonitorDigi::analyze(), JetTagMVATrainer::analyze(), ElectronTagProbeAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), CaloJetTesterUnCorr::analyze(), JPTJetTesterUnCorr::analyze(), PFJetTesterUnCorr::analyze(), CaloJetTester::analyze(), PFJetTester::analyze(), JPTJetTester::analyze(), EwkMuLumiMonitorDQM::analyze(), METTester::analyze(), testAnalyzer::analyze(), QcdHighPtDQM::analyze(), ZMuMuIsolationAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), QcdPhotonsDQM::analyze(), EwkDQM::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), myJetAna::analyze(), MuonPFAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), HiggsDQM::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), JPTJetAnalyzer::analyze(), JetTagMVAExtractor::analyze(), HLTMuonMatchAndPlot::analyze(), ErsatzMEt::analyze(), ZToMuMuGammaAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), TrackIPTagPlotter::analyzeTag(), JetTagPlotter::analyzeTag(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWL1EmParticleProxyBuilder::build(), FWL1EtMissParticleProxyBuilder::build(), FWL1JetParticleProxyBuilder::build(), FWL1MuonParticleProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::helper::JetIDHelper::calculate(), pat::LeptonJetIsolationAngle::calculate(), GlobalHaloAlgo::Calculate(), FWMuonBuilder::calculateField(), PFMETBenchmark::calculateQuantities(), reco::tau::disc::ChargedOutlierPt(), PFAlgo::checkCleaning(), pat::MET::checkUncor_(), PFMuonAlgo::cleanMismeasured(), PFMuonAlgo::cleanPunchThroughAndFakes(), MuonPFAnalyzer::combRelIso(), CMSDAS11DijetAnalyzer::compare_JetPt(), CMSDAS11DijetTestAnalyzer::compare_JetPt(), PileupJetIdAlgo::computeIdVariables(), reco::Jet::constituentEtaPhiSpread(), reco::Jet::constituentPtDistribution(), LXXXCorrector::correction(), L1FastjetCorrector::correction(), L1OffsetCorrector::correction(), L6SLBCorrector::correction(), JetPlusTrackCorrector::correction(), TCMETAlgo::correctSumEtForMuon(), METManager::coutTailEvents(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), PFCandWithSuperClusterExtractor::depositFromObject(), PFTauDiscriminants::Pt::doComputation(), reco::PFTau::dump(), WZInterestingEventSelector::electronSelection(), reco::tau::disc::EMFraction(), metsig::SignAlgoResolutions::evalPFJet(), pat::JetCorrFactorsProducer::evaluate(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), PFJetMonitor::fill(), PFCandidateManager::fill(), TopSingleLepton::MonitorEnsemble::fill(), TopHLTSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), RecoMuonValidator::MuonME::fill(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), JPTJetTesterUnCorr::fillMatchHists(), PFJetTesterUnCorr::fillMatchHists(), PFJetTester::fillMatchHists(), JPTJetTester::fillMatchHists(), CaloJetTesterUnCorr::fillMatchHists(), CaloJetTester::fillMatchHists(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), MuCorrMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), myFilter::filter(), WMuNuValidator::filter(), reco::tau::RecoTauPhotonFilter::filter(), WMuNuSelector::filter(), InconsistentMuonPFCandidateFilter::filter(), NJetsMC::filter(), WZInterestingEventSelector::filter(), LeptonRecoSkim::filter(), reco::CentralityProducer::filter(), HSCPTreeBuilder::filter(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), getTheElectron(), getTheMuon(), getTheTauJet(), PFCandidateChecker::greaterPt(), PFRootEventManager::highPtPFCandidate(), HLTHcalNoiseFilter::hltFilter(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EtaPtBin::inBin(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), MuonIdProducer::isGoodRPCMuon(), MuonIdProducer::isGoodTrackerMuon(), HiGammaJetSignalDef::IsIsolated(), EwkMuLumiMonitorDQM::IsMuMatchedToHLTMu(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), BPhysicsOniaDQM::isMuonInAccept(), reco::tau::disc::IsolationChargedSumHard(), reco::tau::disc::IsolationChargedSumSoft(), reco::tau::disc::IsolationECALSumHard(), reco::tau::disc::IsolationECALSumSoft(), McSelector::isSelected(), RecoSelector::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(), AntiElectronIDMVA2::MVAValue(), AntiElectronIDMVA3::MVAValue(), reco::tau::disc::NeutralOutlierPt(), GenJetSort::operator()(), reco::TrackSelector::operator()(), AcceptJet::operator()(), GenParticleCustomSelector::operator()(), BasicJetSort::operator()(), WPlusJetsEventSelector::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), CaloJetSort::operator()(), L2TauJetsMerger::SorterByPt::operator()(), TtHadLRJetCombObservables::operator()(), TtSemiLepSignalSelMVATrainer::JetwithHigherPt::operator()(), WSelector::operator()(), WMuNuProducer::ComparePt::operator()(), TtSemiLRJetCombObservables::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), AlignmentMuonSelector::ComparePt::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), HLTTauDQMCaloPlotter::SorterByPt::operator()(), CalculateHLT::operator()(), HPSPFRecoTauAlgorithm::HPSTauPtSorter::operator()(), MuScleFitUtils::byPt::operator()(), reco::operator<<(), reco::tau::disc::OutlierPt(), muon::overlap(), PhotonSelectorAlgo::passPhotonSelection(), ZToMuMuGammaAnalyzer::photonSelection(), reco::tau::disc::PiZeroPt(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), reco::GenJet::print(), reco::Jet::print(), PFRootEventManager::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), DistortedPFCandProducer::produce(), MuonWithPFIsoProducer::produce(), QuarkoniaTrackSelector::produce(), DistortedMuonProducer::produce(), DistortedMuonProducerFromDB::produce(), L1HLTTauMatching::produce(), ISRWeightProducer::produce(), L2TauJetsProvider::produce(), CaloMuonMerger::produce(), MuonMETcorrInputProducer::produce(), cms::MuonMETValueMapProducer::produce(), InputGenJetsParticleSelector::produce(), MuonReSeeder::produce(), WMuNuProducer::produce(), AlCaHcalNoiseProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), OutsideInMuonSeeder::produce(), PileupJetIdProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::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(), GenericMVAJetTagComputer::taggingVariables(), reco::tau::disc::TrackPt(), PFMuonAlgo::tracksWithBetterMET(), pat::MET::uncorrectedPt(), PFMETAnalyzer::validateMET(), and CaloMETAnalyzer::validateMET().

153 { return pt_;}
float pt_
four-momentum Lorentz vector
virtual double reco::LeafCandidate::px ( ) const
inlinevirtual

x coordinate of momentum vector

Implements reco::Candidate.

Definition at line 147 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

147 { cacheCartesian(); return p4Cartesian_.Px(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual double reco::LeafCandidate::py ( ) const
inlinevirtual

y coordinate of momentum vector

Implements reco::Candidate.

Definition at line 149 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

149 { cacheCartesian(); return p4Cartesian_.Py(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual double reco::LeafCandidate::pz ( ) const
inlinevirtual

z coordinate of momentum vector

Implements reco::Candidate.

Definition at line 151 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

151 { cacheCartesian(); return p4Cartesian_.Pz(); }
LorentzVector p4Cartesian_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual double reco::LeafCandidate::rapidity ( ) const
inlinevirtual

rapidity

Implements reco::Candidate.

Definition at line 161 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by y().

161 { cachePolar(); return p4Polar_.Rapidity(); }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
virtual void reco::LeafCandidate::setCharge ( Charge  q)
inlinevirtual
virtual void reco::LeafCandidate::setLongLived ( )
inlinevirtual

set long lived flag

Implements reco::Candidate.

Definition at line 221 of file LeafCandidate.h.

References longLivedTag, and status_.

221 { status_ |= longLivedTag; }
static const unsigned int longLivedTag
long lived flag
int status_
status word
virtual void reco::LeafCandidate::setMass ( double  m)
inlinevirtual

set particle mass

Implements reco::Candidate.

Definition at line 186 of file LeafCandidate.h.

References clearCache(), m, and mass_.

Referenced by RecoTauPiZeroProducer::produce().

186  {
187  mass_ = m;
188  clearCache();
189  }
void clearCache() const
clear internal cache
virtual void reco::LeafCandidate::setMassConstraint ( )
inlinevirtual

set mass constraint flag

Implements reco::Candidate.

Definition at line 227 of file LeafCandidate.h.

References massConstraintTag, and status_.

static const unsigned int massConstraintTag
do mass constraint flag
int status_
status word
virtual void reco::LeafCandidate::setP4 ( const LorentzVector p4)
inlinevirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 165 of file LeafCandidate.h.

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

Referenced by EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), HPSPFRecoTauAlgorithm::buildPFTau(), PFMuonAlgo::changeTrack(), 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::Jet::initializeJEC(), pat::Tau::initializeJEC(), reco::tau::RecoTauPhotonFilter::operator()(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< pat::MET >::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), reco::PFTauDecayMode::PFTauDecayMode(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), DistortedMuonProducerFromDB::produce(), TCRecoTauProducer::produce(), GlobalMuonToMuonProducer::produce(), MuonProducer::produce(), ShiftedPFCandidateProducerForPFMEtMVA::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), TCTauAlgorithm::recalculateEnergy(), HPSPFRecoTauAlgorithm::refitThreeProng(), reco::PFCandidate::rescaleMomentum(), PFPhotonAlgo::RunPFPhoton(), reco::Jet::scaleEnergy(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), CandKinematicVertexFitter::set(), MEzCalculator::SetLepton(), MEzCalculator::SetMET(), METzCalculator::SetMET(), METzCalculator::SetMuon(), and SelectReplacementCandidates::transformMuMu2TauTau().

165  {
166  p4Cartesian_ = p4;
167  p4Polar_ = p4;
168  pt_ = p4Polar_.pt();
169  eta_ = p4Polar_.eta();
170  phi_ = p4Polar_.phi();
171  mass_ = p4Polar_.mass();
172  cachePolarFixed_ = true;
173  cacheCartesianFixed_ = true;
174  }
LorentzVector p4Cartesian_
internal cache for p4
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
bool cachePolarFixed_
has cache been set?
virtual void reco::LeafCandidate::setP4 ( const PolarLorentzVector p4)
inlinevirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 176 of file LeafCandidate.h.

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

176  {
177  p4Polar_ = p4;
178  pt_ = p4Polar_.pt();
179  eta_ = p4Polar_.eta();
180  phi_ = p4Polar_.phi();
181  mass_ = p4Polar_.mass();
182  cachePolarFixed_ = true;
183  cacheCartesianFixed_ = false;
184  }
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
bool cachePolarFixed_
has cache been set?
virtual void reco::LeafCandidate::setPdgId ( int  pdgId)
inlinevirtual
virtual void reco::LeafCandidate::setPz ( double  pz)
inlinevirtual

Implements reco::Candidate.

Definition at line 190 of file LeafCandidate.h.

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

Referenced by BoostedTopProducer::produce().

190  {
191  cacheCartesian();
192  p4Cartesian_.SetPz(pz);
194  pt_ = p4Polar_.pt();
195  eta_ = p4Polar_.eta();
196  phi_ = p4Polar_.phi();
197  mass_ = p4Polar_.mass();
198  }
LorentzVector p4Cartesian_
internal cache for p4
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
virtual double pz() const GCC11_FINAL
z coordinate of momentum vector
void cacheCartesian() const
set internal cache
virtual void reco::LeafCandidate::setStatus ( int  status)
inlinevirtual

set status word

Implements reco::Candidate.

Definition at line 217 of file LeafCandidate.h.

References status(), and status_.

Referenced by GenParticleProducer::convertParticle(), pat::GenericParticle::fillInFrom(), reco::PFTauDecayMode::PFTauDecayMode(), and SelectReplacementCandidates::transformMuMu2TauTau().

217 { status_ = status; }
virtual int status() const GCC11_FINAL
status word
int status_
status word
virtual void reco::LeafCandidate::setThreeCharge ( Charge  qx3)
inlinevirtual

set electric charge

Implements reco::Candidate.

Definition at line 121 of file LeafCandidate.h.

References qx3_.

Referenced by GenParticleProducer::convertParticle().

121 { qx3_ = qx3; }
Charge qx3_
electric charge
virtual void reco::LeafCandidate::setVertex ( const Point vertex)
inlinevirtual
virtual CandidatePtr reco::LeafCandidate::sourceCandidatePtr ( size_type  i) const
inlinevirtual

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

Reimplemented from reco::Candidate.

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

Definition at line 110 of file LeafCandidate.h.

110  {
111  return CandidatePtr();
112  }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
virtual int reco::LeafCandidate::status ( ) const
inlinevirtual

status word

Implements reco::Candidate.

Definition at line 215 of file LeafCandidate.h.

References status_.

Referenced by FBaseSimEvent::addParticles(), ZLONLOHistogrammer::analyze(), EWKSystUnc::analyze(), zPdfUnc::analyze(), ZMuPtScaleAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), ResolutionCreator::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), GeneratorTau::computeDecayMode(), GeneratorTau::computeStableDecayProducts(), GeneratorTau::decayToPDGClassification(), objMon< T >::fillMC(), doubleEMEnrichingFilterAlgo::filter(), HighETPhotonsFilterAlgo::filter(), BCToEFilterAlgo::filter(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), 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(), GenParticleCustomSelector::operator()(), WeakEffectsWeightProducer::produce(), MCTrackMatcher::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), InputGenJetsParticleSelector::produce(), PartonSelector::produce(), JetPartonMatcher::produce(), PFRootEventManager::reconstructGenJets(), and setStatus().

215 { return status_; }
int status_
status word
virtual double reco::LeafCandidate::theta ( ) const
inlinevirtual
virtual int reco::LeafCandidate::threeCharge ( ) const
inlinevirtual

electric charge

Implements reco::Candidate.

Definition at line 119 of file LeafCandidate.h.

References qx3_.

Referenced by TopDecaySubset::fillListing().

119 { return qx3_; }
Charge qx3_
electric charge
virtual const Point& reco::LeafCandidate::vertex ( ) const
inlinevirtual

vertex position (overwritten by PF...)

Implements reco::Candidate.

Reimplemented in reco::PFCandidate.

Definition at line 200 of file LeafCandidate.h.

References vertex_.

Referenced by ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), MultiTrackValidatorGenPs::analyze(), ElectronTagProbeAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), CorrectedPFMETProducer2::applyCorrection(), CorrectedCaloMETProducer2::applyCorrection(), PFTauExtractor::depositFromObject(), PFCandWithSuperClusterExtractor::depositFromObject(), reco::CaloJet::detectorP4(), ErsatzMEt::ersatzFabrik(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), TopDecaySubset::fillListing(), PF_PU_AssoMapAlgos::FindV0Vertex(), MuonMETAlgo::GetMuDepDeltas(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), fireworks::makeEveJetCone(), GenParticleCustomSelector::operator()(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::PFMET >::operator()(), CorrectJet::operator()(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::CaloMET >::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< pat::Jet >::operator()(), overlap(), EgammaHLTTrackIsolation::photonIsolation(), reco::CaloJet::physicsP4(), ParticleReplacerClass::produce(), Type1PFMET::run(), reco::Photon::setVertex(), and setVertex().

200 { return vertex_; }
Point vertex_
vertex position
double LeafCandidate::vertexChi2 ( ) const
virtual

chi-squares

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 83 of file LeafCandidate.cc.

83  {
84  return 0;
85 }
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 edm::hlt::Exception, and edm::errors::UnimplementedFeature.

95  {
97  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
98 }
CovarianceMatrix reco::LeafCandidate::vertexCovariance ( ) const
inlinevirtual

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 250 of file LeafCandidate.h.

References fillVertexCovariance(), and m.

250 { CovarianceMatrix m; fillVertexCovariance(m); return m; }
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
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.

87  {
88  return 0;
89 }
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.

91  {
92  return 0;
93 }
virtual double reco::LeafCandidate::vx ( ) const
inlinevirtual

x coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate.

Definition at line 202 of file LeafCandidate.h.

References vertex_.

Referenced by FBaseSimEvent::addParticles(), WenuPlots::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), reco::PFTau::dump(), and ParticleReplacerParticleGun::produce().

202 { return vertex_.X(); }
Point vertex_
vertex position
virtual double reco::LeafCandidate::vy ( ) const
inlinevirtual

y coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate.

Definition at line 204 of file LeafCandidate.h.

References vertex_.

Referenced by FBaseSimEvent::addParticles(), WenuPlots::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), reco::PFTau::dump(), and ParticleReplacerParticleGun::produce().

204 { return vertex_.Y(); }
Point vertex_
vertex position
virtual double reco::LeafCandidate::vz ( ) const
inlinevirtual
virtual double reco::LeafCandidate::y ( ) const
inlinevirtual

Friends And Related Function Documentation

friend class ::OverlapChecker
friend

Definition at line 364 of file LeafCandidate.h.

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

Definition at line 363 of file LeafCandidate.h.

friend class ShallowCloneCandidate
friend

Definition at line 365 of file LeafCandidate.h.

friend class ShallowClonePtrCandidate
friend

Definition at line 366 of file LeafCandidate.h.

Member Data Documentation

bool reco::LeafCandidate::cacheCartesianFixed_
mutableprotected

Definition at line 342 of file LeafCandidate.h.

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

bool reco::LeafCandidate::cachePolarFixed_
mutableprotected

has cache been set?

Definition at line 342 of file LeafCandidate.h.

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

float reco::LeafCandidate::eta_
protected

Definition at line 330 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 219 of file LeafCandidate.h.

Referenced by longLived(), and setLongLived().

float reco::LeafCandidate::mass_
protected

Definition at line 330 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 225 of file LeafCandidate.h.

Referenced by massConstraint(), and setMassConstraint().

LorentzVector reco::LeafCandidate::p4Cartesian_
mutableprotected

internal cache for p4

Definition at line 340 of file LeafCandidate.h.

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

PolarLorentzVector reco::LeafCandidate::p4Polar_
mutableprotected

internal cache for p4

Definition at line 338 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 334 of file LeafCandidate.h.

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

float reco::LeafCandidate::phi_
protected

Definition at line 330 of file LeafCandidate.h.

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

float reco::LeafCandidate::pt_
protected

four-momentum Lorentz vector

Definition at line 330 of file LeafCandidate.h.

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

Charge reco::LeafCandidate::qx3_
protected

electric charge

Definition at line 328 of file LeafCandidate.h.

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

int reco::LeafCandidate::status_
protected

status word

Definition at line 336 of file LeafCandidate.h.

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

Point reco::LeafCandidate::vertex_
protected