test
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 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 > reco::CompositeRefCandidateT< reco::edm::RefVector > l1extra::L1EmParticle l1extra::L1EtMissParticle l1extra::L1JetParticle l1extra::L1MuonParticle L1GObject l1t::L1Candidate 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  daughter_iterator
 

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
 
virtual int charge () const
 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
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual float eta () const
 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...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, bool massless, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, float imass, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual float mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual float massSqr () const
 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
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 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
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual float phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual float pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 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
 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
 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 Member Functions

static double dmass (GlobalVector v, double e)
 
static double magd (GlobalVector v)
 

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 21 of file LeafCandidate.h.

Member Typedef Documentation

electric charge type

Definition at line 26 of file LeafCandidate.h.

Definition at line 395 of file LeafCandidate.h.

collection of daughter candidates

Definition at line 24 of file LeafCandidate.h.

typedef unsigned int reco::LeafCandidate::index

Definition at line 36 of file LeafCandidate.h.

Definition at line 397 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.

Lorentz vector.

Definition at line 30 of file LeafCandidate.h.

point in the space

Definition at line 34 of file LeafCandidate.h.

Constructor & Destructor Documentation

reco::LeafCandidate::LeafCandidate ( )
inline

default constructor

Definition at line 42 of file LeafCandidate.h.

Referenced by clone().

42  :
43  qx3_(0), pt_(0), eta_(0), phi_(0), mass_(0),
44  vertex_(0, 0, 0), pdgId_(0), status_(0),
45  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 47 of file LeafCandidate.h.

47  :
48  qx3_( c.charge()*3 ), pt_( c.p4().pt() ), eta_( c.p4().eta() ), phi_( c.p4().phi() )
49  , mass_( c.p4().mass() ),
50  vertex_( c.vertex() ), pdgId_( c.pdgId() ), status_( c.status() ),
51  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 55 of file LeafCandidate.h.

56  :
57  qx3_(integerCharge ? 3*q : q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
58  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
59  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
virtual int pdgId() const
PDG identifier.
int pdgId_
PDG identifier.
virtual int status() const
status word
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
int status_
status word
bool cachePolarFixed_
has cache been set?
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
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 63 of file LeafCandidate.h.

64  :
65  qx3_(integerCharge ? 3*q : q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
66  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
67  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
virtual int pdgId() const
PDG identifier.
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 status() const
status word
float pt_
four-momentum Lorentz vector
float pt() const
transverse momentum
Definition: PtEtaPhiMass.h:26
Point vertex_
vertex position
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 70 of file LeafCandidate.h.

References qx3_.

71  :
72  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
73  vertex_( vtx ), pdgId_( pdgId ), status_( status ), p4Cartesian_(p4),
74  cachePolarFixed_( false ), cacheCartesianFixed_( true ) {
75  if ( integerCharge ) qx3_ *= 3;
76  }
virtual int pdgId() const
PDG identifier.
LorentzVector p4Cartesian_
internal cache for p4
int pdgId_
PDG identifier.
virtual int status() const
status word
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
int status_
status word
bool cachePolarFixed_
has cache been set?
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
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 78 of file LeafCandidate.h.

References qx3_.

79  :
80  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
81  vertex_( vtx ), pdgId_( pdgId ), status_( status ), p4Polar_(p4),
82  cachePolarFixed_( true ), cacheCartesianFixed_( false ){
83  if ( integerCharge ) qx3_ *= 3;
84  }
virtual int pdgId() const
PDG identifier.
int pdgId_
PDG identifier.
virtual int status() const
status word
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
Point vertex_
vertex position
int status_
status word
bool cachePolarFixed_
has cache been set?
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Charge qx3_
electric charge
reco::LeafCandidate::LeafCandidate ( Charge  q,
const GlobalVector p3,
float  iEnergy,
bool  massless,
const Point vtx = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 87 of file LeafCandidate.h.

References qx3_.

88  :
89  qx3_( q ), pt_( p3.perp() ), eta_( p3.eta() ), phi_( p3.phi() ), mass_(massless ? 0. : dmass(p3,iEnergy) ),
90  vertex_( vtx ), pdgId_( pdgId ), status_( status ), p4Polar_(pt_,eta_,phi_,mass_), p4Cartesian_(p3.x(),p3.y(),p3.z(), massless ? magd(p3) : iEnergy),
92  if ( integerCharge ) qx3_ *= 3;
93  }
virtual int pdgId() const
PDG identifier.
LorentzVector p4Cartesian_
internal cache for p4
T perp() const
Definition: PV3DBase.h:72
int pdgId_
PDG identifier.
virtual int status() const
status word
float pt_
four-momentum Lorentz vector
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
T y() const
Definition: PV3DBase.h:63
PolarLorentzVector p4Polar_
internal cache for p4
Point vertex_
vertex position
static double magd(GlobalVector v)
Definition: LeafCandidate.h:38
T z() const
Definition: PV3DBase.h:64
int status_
status word
static double dmass(GlobalVector v, double e)
Definition: LeafCandidate.h:39
T eta() const
Definition: PV3DBase.h:76
bool cachePolarFixed_
has cache been set?
T x() const
Definition: PV3DBase.h:62
Charge qx3_
electric charge
reco::LeafCandidate::LeafCandidate ( Charge  q,
const GlobalVector p3,
float  iEnergy,
float  imass,
const Point vtx = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 97 of file LeafCandidate.h.

References qx3_.

98  :
99  qx3_( q ), pt_( p3.perp() ), eta_( p3.eta() ), phi_( p3.phi() ), mass_(imass),
100  vertex_( vtx ), pdgId_( pdgId ), status_( status ), p4Polar_(pt_,eta_,phi_,mass_), p4Cartesian_(p3.x(),p3.y(),p3.z(), iEnergy),
101  cachePolarFixed_( true ), cacheCartesianFixed_( true ) {
102  if ( integerCharge ) qx3_ *= 3;
103  }
virtual int pdgId() const
PDG identifier.
LorentzVector p4Cartesian_
internal cache for p4
T perp() const
Definition: PV3DBase.h:72
int pdgId_
PDG identifier.
virtual int status() const
status word
float pt_
four-momentum Lorentz vector
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
T y() const
Definition: PV3DBase.h:63
PolarLorentzVector p4Polar_
internal cache for p4
Point vertex_
vertex position
T z() const
Definition: PV3DBase.h:64
int status_
status word
T eta() const
Definition: PV3DBase.h:76
bool cachePolarFixed_
has cache been set?
T x() const
Definition: PV3DBase.h:62
Charge qx3_
electric charge
LeafCandidate::~LeafCandidate ( )
virtual

destructor

Definition at line 5 of file LeafCandidate.cc.

5 { }

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 332 of file LeafCandidate.h.

References begin(), and end().

332  {
333  return boost::make_filter_iterator(s, begin(), end());
334  }
virtual const_iterator begin() const
first daughter const_iterator
Definition: LeafCandidate.cc:7
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 155 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

155 { 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 375 of file LeafCandidate.h.

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

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

375  {
376  if ( cacheCartesianFixed_ ) return;
377  cachePolar();
379  cacheCartesianFixed_ = true;
380  }
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 369 of file LeafCandidate.h.

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

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

369  {
370  if ( cachePolarFixed_ ) return;
372  cachePolarFixed_ = true;
373  }
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:30
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 140 of file LeafCandidate.h.

References qx3_.

Referenced by PFTester::analyze(), ElectronMcSignalValidator::analyze(), GenMuonRadCorrAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), AcceptanceHistoProducer::analyze(), ElectronMcFakeValidator::analyze(), AnaL1CaloCleaner::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), AnaMuonCaloCleaner::analyze(), TestMuonCaloCleaner::analyze(), HLTMuonMatchAndPlot::analyze(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWPFCandidateWithHitsProxyBuilder::build(), FWPFCandidate3DProxyBuilder::build(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), 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(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), reco::tau::disc::mainTrack(), GenParticleCustomSelector::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), reco::operator<<(), overlap(), reco::PFTauDecayMode::PFTauDecayMode(), reco::PFRecoTauChargedHadron::print(), PFAlgo::processBlock(), QuarkoniaTrackSelector::produce(), RegressionEnergyPatElectronProducer::produce(), pat::PATLostTracks::produce(), pat::L1MuonMatcher::produce(), ClassBasedElectronID::result(), MuScleFitMuonSelector::selectMuons(), FWMuonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), reco::PFCandidate::setTrackRef(), reco::tau::sumPFCandCharge(), and reco::PFCandidate::translateTypeToPdgId().

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

clear internal cache

Definition at line 382 of file LeafCandidate.h.

References cacheCartesianFixed_, and cachePolarFixed_.

Referenced by setMass().

382  {
383  cachePolarFixed_ = false;
384  cacheCartesianFixed_ = false;
385  }
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, pat::Tau, reco::SiStripElectron, l1extra::L1JetParticle, l1extra::L1EmParticle, pat::Electron, pat::Muon, reco::PFTauDecayMode, pat::Photon, reco::IsolatedPixelTrackCandidate, pat::MET, reco::PFTau, pat::GenericParticle, reco::CompositeCandidate, reco::MET, pat::PFParticle, reco::NamedCompositeCandidate, reco::Photon, pat::CompositeCandidate, pat::Particle, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::CompositeRefCandidateT< D >, reco::ShallowCloneCandidate, reco::TrackJet, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::CompositeRefCandidateT< reco::edm::RefVector >, pat::Lepton< reco::BaseTau >, pat::Lepton< reco::GsfElectron >, pat::Lepton< reco::Muon >, reco::PFClusterJet, reco::ShallowClonePtrCandidate, reco::CompositeRefBaseCandidate, reco::VertexCompositeCandidate, reco::VertexCompositePtrCandidate, reco::GenParticle, reco::EcalIsolatedParticleCandidate, reco::RecoCandidate, reco::BasicJet, reco::Muon, reco::IsolatedPFCandidate, reco::PileUpPFCandidate, reco::CaloRecHitCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::CandidateWithRef< Ref >, reco::RecoCaloTowerCandidate, reco::Electron, reco::BaseTau, and reco::CaloTau.

Definition at line 257 of file LeafCandidate.h.

References LeafCandidate().

257  {
258  return new LeafCandidate( *this );
259  }
LeafCandidate()
default constructor
Definition: LeafCandidate.h:42
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 70 of file LeafCandidate.cc.

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

70  {
72  << "This Candidate type does not implement daughter(std::string). "
73  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
74 }
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 64 of file LeafCandidate.cc.

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

64  {
66  << "This Candidate type does not implement daughter(std::string). "
67  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
68 }
static double reco::LeafCandidate::dmass ( GlobalVector  v,
double  e 
)
inlinestatic

Definition at line 39 of file LeafCandidate.h.

References magd(), and mathSSE::sqrt().

39 { double m2 = e*e-magd(v); return m2>0 ? std::sqrt(m2) : 0;}
static double magd(GlobalVector v)
Definition: LeafCandidate.h:38
T sqrt(T t)
Definition: SSEVec.h:48
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 336 of file LeafCandidate.h.

References end().

336  {
337  return boost::make_filter_iterator(s, end(), end());
338  }
virtual const_iterator end() const
last daughter const_iterator
virtual double reco::LeafCandidate::energy ( ) const
inlinevirtual

energy

Implements reco::Candidate.

Definition at line 159 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), JetValidation::analyze(), PatTauAnalyzer::analyze(), EwkElecDQM::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), PFCandidateChecker::analyze(), QcdHighPtDQM::analyze(), DQMHcalDiJetsAlCaReco::analyze(), IsolatedParticlesGeneratedJets::analyze(), SimplePhotonAnalyzer::analyze(), ResolutionCreator::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::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(), compGenParticleP4afterRad(), TauElementsOperators::computeConeSize(), PileupJetIdAlgo::computeIdVariables(), JetPlusTrackCorrector::correctAA(), L1FastjetCorrector::correction(), L1OffsetCorrector::correction(), 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(), PFPhotonAlgo::EvaluateResMVA(), SoftPFElectronTagInfoProducer::fillElecProperties(), SoftPFMuonTagInfoProducer::fillMuonProperties(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), findGenParticleForMCEmbedding(), PFJetIDSelectionFunctor::firstDataCuts(), TtSemiLepKinFitter::fit(), TtFullHadKinFitter::fit(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), NjettinessAdder::getTau(), PFJetBenchmark::gettrue(), CaloTower::hadP4(), reco::PFJet::HFEMEnergyFraction(), pat::Jet::HFEMEnergyFraction(), reco::PFJet::HFHadronEnergyFraction(), pat::Jet::HFHadronEnergyFraction(), HPSPFRecoTauAlgorithm::isNarrowTau(), TauValidation::leadingPionP4(), main(), reco::tau::RecoTauIsolationMasking::mask(), MatchJet::matchCollections(), TauValidation::motherP4(), reco::PFJet::muonEnergyFraction(), pat::Jet::muonEnergyFraction(), reco::JPTJet::neutralEmEnergyFraction(), reco::PFJet::neutralEmEnergyFraction(), pat::Jet::neutralEmEnergyFraction(), reco::JPTJet::neutralHadronEnergyFraction(), reco::PFJet::neutralHadronEnergyFraction(), pat::Jet::neutralHadronEnergyFraction(), AcceptJet::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< reco::PFJet >::operator()(), TtSemiLRSignalSelObservables::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< pat::Jet >::operator()(), reco::operator<<(), CaloTower::p4(), passPFLooseId(), reco::PFJet::photonEnergyFraction(), pat::Jet::photonEnergyFraction(), PFAlgo::processBlock(), FSRWeightProducer::produce(), CaloTowerCandidateCreator::produce(), EgammaHLTCaloTowerProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), CaloTowerCreatorForTauHLT::produce(), pf2pat::PFMETAlgo::produce(), GenParticlesFromZsSelectorForMCEmbedding::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(), TauValidation::spinEffectsZH(), reco::SoftLeptonTagInfo::taggingVariables(), and TauValidation::visibleTauEnergy().

159 { 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 161 of file LeafCandidate.h.

References cachePolar(), p4Polar_, and pt_.

Referenced by StKinFitter::addKinFitInfo(), PFTester::analyze(), EwkElecDQM::analyze(), EwkMuDQM::analyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), DQMHcalDiJetsAlCaReco::analyze(), TopElectronHLTOfflineSource::analyze(), PatPhotonSimpleAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), EwkDQM::analyze(), L2TauAnalyzer::analyze(), WenuPlots::analyze(), SimplePi0DiscAnalyzer::analyze(), L25TauAnalyzer::analyze(), PhotonValidator::analyze(), EgammaObjects::analyzeElectrons(), ExoticaDQM::analyzeEventInterpretation(), ExoticaDQM::analyzeMultiJets(), EgammaObjects::analyzePhotons(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWMETGlimpseProxyBuilder::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_cand(), l1extra::L1EtMissParticle::etMiss(), TopDiLeptonOffline::MonitorEnsemble::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), TopElectronHLTOfflineSource::EleMEs::fill(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), WMuNuValidator::filter(), doubleEMEnrichingFilterAlgo::filter(), BCToEFilterAlgo::filter(), HighETPhotonsFilterAlgo::filter(), HeavyChHiggsToTauNuSkim::filter(), WMuNuSelector::filter(), PhotonEnrichmentFilter::filter(), reco::tau::RecoTauQualityCuts::filterGammaCand(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), reco::tau::RecoTauQualityCuts::filterNeutralHadronCand(), 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()(), CombinedSVComputerV2::operator()(), CombinedSVSoftLeptonComputer::operator()(), TtDilepLRSignalSelObservables::operator()(), TtSemiLRSignalSelObservables::operator()(), TtHadLRSignalSelObservables::CompareET::operator()(), TtSemiLRSignalSelObservables::CompareET::operator()(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), DistortedMETProducer::produce(), L2TauIsolationSelector::produce(), L2TauModularIsolationSelector::produce(), L2TauRelaxingIsolationSelector::produce(), ParticleTowerProducer::produce(), JetEnergyShift::produce(), HiL1Subtractor::produce(), JetPlusTrackCorrector::rebuildJta(), L1GObject::setEt(), l1t::CaloTower::setEtEm(), l1t::CaloTower::setEtHad(), l1t::CaloTower::setHwEtEm(), l1t::CaloTower::setHwEtHad(), FWPhotonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), PFElectronSelector::spring11Cuts(), and reco::SoftLeptonTagInfo::taggingVariables().

161 { cachePolar(); return (pt_<=0) ? 0 : p4Polar_.Et(); }
float pt_
four-momentum Lorentz vector
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 184 of file LeafCandidate.h.

References eta_.

Referenced by reco::tau::disc::AbsEta(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), StKinFitter::addKinFitInfo(), reco::tau::RecoTauConstructor::addPiZero(), FWMuonDetailView::addSceneInfo(), FWElectronDetailView::addSceneInfo(), reco::tau::RecoTauConstructor::addTauChargedHadron(), GlbMuQualityCutsAnalysis::analyze(), ZMuPtScaleAnalyzer::analyze(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), PatTauAnalyzer::analyze(), PatZjetsJetAnalyzer::analyze(), PFTester::analyze(), EwkElecDQM::analyze(), ElectronMcSignalValidator::analyze(), RPCRecHitProbability::analyze(), ElectronTagProbeAnalyzer::analyze(), EwkMuDQM::analyze(), RPCMonitorDigi::analyze(), testAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), AcceptanceHistoProducer::analyze(), HLTMonBTagMuSource::analyze(), PFCandidateChecker::analyze(), HLTMonBTagIPSource::analyze(), ElectronMcFakeValidator::analyze(), ZMuMuIsolationAnalyzer::analyze(), DQMHcalDiJetsAlCaReco::analyze(), TopElectronHLTOfflineSource::analyze(), PatPhotonSimpleAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), SimplePhotonAnalyzer::analyze(), QcdPhotonsDQM::analyze(), AnaL1CaloCleaner::analyze(), EwkDQM::analyze(), L2TauAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), WenuPlots::analyze(), GsfElectronFakeAnalyzer::analyze(), JetTester::analyze(), GsfElectronMCAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), TopSingleLeptonHLTValidation::analyze(), AnaMuonCaloCleaner::analyze(), DQMExample_Step1::analyze(), TopDiLeptonHLTValidation::analyze(), L25TauAnalyzer::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::analyze(), HLTMuonMatchAndPlot::analyze(), JetAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), JetTagPlotter::analyzeTag(), EMEnrichingFilterAlgo::applyBFieldCurv(), doubleEMEnrichingFilterAlgo::applyBFieldCurv(), reco::tau::RecoTauVertexAssociator::associatedVertex(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWJetLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWPhotonLegoProxyBuilder::build(), FWMuonDetailView::build(), FWMuonLegoProxyBuilder::build(), FWGenParticleLegoProxyBuilder::build(), FWElectronDetailView::build(), FWPFCandidatesLegoProxyBuilder::build(), FWMET3DProxyBuilder::build(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), FWMETProxyBuilder::buildViewType(), reco::helper::JetMuonHitsIDHelper::calculate(), JetPlusTrackProducerAA::calculateBGtracksJet(), FWMuonBuilder::calculateField(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), 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(), ElectronMaker::electronIsoValuePF(), 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(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), PFCandidateManager::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), BPhysicsValidation::ParticleMonitor::Fill(), L1ValidatorHists::Fill(), TopElectronHLTOfflineSource::EleMEs::fill(), RecoMuonValidator::MuonME::fill(), ZeePlots::fillEleClassesPlots(), ZeeCalibration::fillEleInfo(), PFMuonCaloCleaner::fillEnergyDepositMap(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), objMon< T >::fillMC(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), METBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), FastL1Region::FillTower(), FastL1Region::FillTower_Scaled(), WMuNuValidator::filter(), doubleEMEnrichingFilterAlgo::filter(), BCToEFilterAlgo::filter(), WMuNuSelector::filter(), HeavyChHiggsToTauNuSkim::filter(), PhotonEnrichmentFilter::filter(), WZInterestingEventSelector::filter(), reco::CentralityProducer::filter(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), L1Validator::FindBest(), CalibratableTest::findCandidatesInDeltaR(), TtFullLepHypGenMatch::findMatchingLepton(), PFJetIDSelectionFunctor::firstDataCuts(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), calib::CalibElectron::getCalibModulesWeights(), TxCalculator::getCTx(), dRxyCalculator::getDRxy(), TxyCalculator::getHollSxy(), TxCalculator::getJct(), TxCalculator::getJt(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), ParticleTowerProducer::getNearestTower(), TxyCalculator::getNumLocalTracks(), getTheTauJet(), TxCalculator::getTx(), TxyCalculator::getTxy(), objMon< T >::hasBPartonInCone(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), EtaPtBin::inBin(), CosmicSplitterValidation::is_gold_muon(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), PFEGammaFilters::isElectronSafeForJetMET(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), MuonIdProducer::isGoodRPCMuon(), MuonIdProducer::isGoodTrackerMuon(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), BPhysicsOniaDQM::isMuonInAccept(), BTagHLTOfflineSource::isMuonJet(), PFPhotonIsolationCalculator::isNeutralParticleVetoed(), PFIsolationEstimator::isNeutralParticleVetoed(), EGammaMvaEleEstimator::isoMvaValue(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), McSelector::isSelected(), BTagHLTOfflineSource::isVBTFMuon(), main(), JetVertexMain::Main(), fireworks::makeEveJetCone(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), L1MuonMatcherAlgo::match(), reco::modules::HICaloCompatibleTrackSelector::matchByDrAllowReuse(), FWCaloTowerSliceSelector::matchCell(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), reco::RecoTauPiZero::maxDeltaEta(), DQMExample_Step1::MediumEle(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), ZToMuMuGammaAnalyzer::muonSelection(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), AntiElectronIDMVA5GBR::MVAValue(), muonisolation::CaloExtractor::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseEcal(), muonisolation::CaloExtractorByAssociator::noiseHcal(), AcceptJet::operator()(), GenParticleCustomSelector::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), WPlusJetsEventSelector::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), hitfit::JetTranslatorBase< AJet >::operator()(), reco::operator<<(), operator<<(), PFEGammaFilters::passElectronSelection(), passesElectronId(), passesElectronPreId(), passPFLooseId(), ElectronMaker::PFIsolation2012(), reco::tau::disc::PiZeroEta(), reco::GenericJet::print(), reco::PFRecoTauChargedHadron::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), PFAlgo::processBlock(), JetTracksAssociationDRVertex::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetTracksAssociationDRCalo::produce(), JetVetoedTracksAssociationDRVertex::produce(), DistortedMuonProducerFromDB::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), QuarkoniaTrackSelector::produce(), RegressionEnergyPatElectronProducer::produce(), CaloMuonMerger::produce(), PileupJPTJetIdProducer::produce(), CaloTowerCandidateCreator::produce(), EgammaHLTCaloTowerProducer::produce(), MuonReSeeder::produce(), ParticleTowerProducer::produce(), CaloTowerCreatorForTauHLT::produce(), GenParticlesFromZsSelectorForMCEmbedding::produce(), pat::PATPackedGenParticleProducer::produce(), OutsideInMuonSeeder::produce(), BoostedTauSeedsProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), HiL1Subtractor::produce(), PileupJetIdProducer::produce(), CastorClusterProducer::produce(), JetIdSelector< T >::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), reco::tau::RecoTauIsolationMasking::resolution(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), PFPhotonAlgo::RunPFPhoton(), pf2pat::PFIsoDepositAlgo::sameParticle(), L1GObject::setEta(), FWCaloTowerDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), MVAJetIdMaker::SetVars(), cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed(), GenericMVAJetTagComputer::taggingVariables(), reco::SoftLeptonTagInfo::taggingVariables(), reco::tau::disc::TrackEta(), and CaloSpecificAlgo::update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF().

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

fill SMatrix

Implements reco::Candidate.

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

Definition at line 99 of file LeafCandidate.cc.

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

Referenced by vertexCovariance().

99  {
101  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
102 }
template<typename T >
T reco::LeafCandidate::get ( void  ) const
inline
template<typename T , typename Tag >
T reco::LeafCandidate::get ( void  ) const
inline
template<typename T >
T reco::LeafCandidate::get ( size_type  i) const
inline
template<typename T , typename Tag >
T reco::LeafCandidate::get ( size_type  i) const
inline
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 29 of file LeafCandidate.cc.

Referenced by get(), and numberOf().

29  {
30  return false;
31 }
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 33 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 114 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 118 of file LeafCandidate.cc.

118 { 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 104 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 108 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 120 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 106 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 116 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 110 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 112 of file LeafCandidate.cc.

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

is long lived?

Implements reco::Candidate.

Definition at line 248 of file LeafCandidate.h.

References longLivedTag, and status_.

248 { return status_ & longLivedTag; }
static const unsigned int longLivedTag
long lived flag
int status_
status word
static double reco::LeafCandidate::magd ( GlobalVector  v)
inlinestatic

Definition at line 38 of file LeafCandidate.h.

References mathSSE::sqrt().

Referenced by dmass().

38 { return std::sqrt(double(v.x())*double(v.x()) + double(v.y())*double(v.y()) + double(v.z())*double(v.z()) );}
T y() const
Definition: PV3DBase.h:63
T sqrt(T t)
Definition: SSEVec.h:48
T z() const
Definition: PV3DBase.h:64
T x() const
Definition: PV3DBase.h:62
virtual float reco::LeafCandidate::mass ( ) const
inlinevirtual
virtual bool reco::LeafCandidate::massConstraint ( ) const
inlinevirtual

do mass constraint?

Implements reco::Candidate.

Definition at line 254 of file LeafCandidate.h.

References massConstraintTag, and status_.

Referenced by CandKinematicVertexFitter::fill().

254 { 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 165 of file LeafCandidate.h.

References mass_.

Referenced by EwkElecDQM::analyze().

165 { 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 23 of file LeafCandidate.cc.

References edm::hlt::Exception.

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

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

References edm::hlt::Exception.

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

cast master clone reference to a concrete type

Definition at line 293 of file LeafCandidate.h.

References masterClone().

293 { 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 168 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

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

168 { 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 170 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

170 { 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 316 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

316  {
317  if ( hasMasterClone() ) return masterClone()->numberOf<T>();
318  else return reco::numberOf<T>( * this );
319  }
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 321 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

321  {
322  if ( hasMasterClone() ) return masterClone()->numberOf<T, Tag>();
323  else return reco::numberOf<T, Tag>( * this );
324  }
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 pat::Photon, pat::Tau, reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, and reco::CompositePtrCandidate.

Definition at line 132 of file LeafCandidate.h.

132 { 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::CompositeRefCandidateT< reco::edm::RefVector >, reco::CompositeCandidate, reco::GenJet, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::GenMET, reco::CaloMET, reco::ShallowCloneCandidate, reco::ShallowClonePtrCandidate, reco::MET, reco::CompositeRefBaseCandidate, reco::TrackJet, reco::CaloTau, reco::PFClusterJet, reco::Electron, reco::BaseTau, reco::GenParticle, reco::BasicJet, reco::CaloRecHitCandidate, reco::CandidateWithRef< Ref >, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::RecoCaloTowerCandidate, and reco::RecoCandidate.

Definition at line 52 of file LeafCandidate.cc.

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

52  {
53  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
54 }
virtual const Point & vertex() const
vertex position (overwritten by PF...)
virtual int charge() const
electric charge
virtual const Point & vertex() const =0
vertex position
virtual int charge() const =0
electric charge
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
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 157 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), ElectronMcFakeValidator::analyze(), AnaL1CaloCleaner::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), HiggsDQM::analyze(), AnaMuonCaloCleaner::analyze(), JetTagPlotter::analyzeTag(), AlignmentMuonSelector::basicCuts(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), PFMuonAlgo::cleanPunchThroughAndFakes(), reco::Jet::detectorP4(), CaloTower::emP4(), RecoMuonValidator::MuonME::fill(), HLTOniaSource::fillOniaTriggerMEs(), GreedyMuonPFCandidateFilter::filter(), HSCPTreeBuilder::filter(), CaloTower::hadP4(), HLTMuonTrackMassFilter::hltFilter(), BPhysicsOniaDQM::isMuonInAccept(), pat::Tau::isolationCands(), pat::Tau::isolationChargedHadrCands(), pat::Tau::isolationGammaCands(), pat::Tau::isolationNeutrHadrCands(), RecoSelector::isSelected(), pat::Tau::leadChargedHadrCand(), TauValidation::leadingPionP4(), pat::Tau::leadNeutralCand(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimator::mvaValue(), AcceptJet::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(), RegressionEnergyPatElectronProducer::produce(), CalibratedElectronProducer::produce(), reco::PFCandidate::setVertex(), pat::Tau::signalCands(), pat::Tau::signalChargedHadrCands(), pat::Tau::signalGammaCands(), and pat::Tau::signalNeutrHadrCands().

157 { 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 148 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by reco::tau::RecoTauConstructor::addPiZero(), reco::tau::RecoTauConstructor::addTauChargedHadron(), PFCandConnector::analyseNuclearWPrim(), PFCandConnector::analyseNuclearWSec(), CMSDAS11DijetAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), GenMuonRadCorrAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), EmbeddingKineReweightNtupleProducer::analyze(), QcdHighPtDQM::analyze(), ResolutionCreator::analyze(), AnaL1CaloCleaner::analyze(), MuonPFAnalyzer::analyze(), MuTriggerAnalyzer::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), L25TauAnalyzer::analyze(), HLTMuonMatchAndPlot::analyze(), TtSemiLepJetComb::bOverLightQPt(), TtSemiLepJetComb::bQuarkVar(), CaloRecoTauAlgorithm::buildCaloTau(), pf2pat::PFIsoDepositAlgo::buildIsoDeposit(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::tau::disc::ChargedOutlierAngle(), TtSemiLepJetComb::compareBNeutrino(), TtSemiLepJetComb::compareLeptonNeutrino(), TtSemiLepJetComb::compareTopNeutrino(), TtSemiLepJetComb::compareWNeutrino(), compGenParticleP4afterRad(), 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(), CaloTower::emEt(), ErsatzMEt::ersatzFabrik(), CaloTower::et(), JetPartonMatcher::fillAlgoritDefinition(), SoftPFElectronTagInfoProducer::fillElecProperties(), PFMuonCaloCleaner::fillEnergyDepositMap(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), SoftPFMuonTagInfoProducer::fillMuonProperties(), JetPartonMatcher::fillPhysicsDefinition(), VBFGenJetFilter::filter(), pat::CaloJetSelector::filter(), GenMuonRadiationFilter::filter(), HLTRHemisphere::filter(), VBFGenJetFilter::filterGenJets(), L2TauModularIsolationProducer::getECALHits(), L2TauNarrowConeIsolationProducer::getECALHits(), L2TauModularIsolationProducer::getHCALHits(), L2TauNarrowConeIsolationProducer::getHCALHits(), GeneratorTau::getOpeningAngle(), L2TauModularIsolationProducer::getPFClusters(), TauSpinnerCMS::GetRecoDaughters(), 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(), ZToMuMuGammaAnalyzer::mumuGammaInvMass(), ZToMuMuGammaAnalyzer::mumuInvMass(), MuonMETAlgo::MuonMETAlgo_run(), reco::tau::disc::NeutralOutlierAngle(), TtSemiLepJetComb::neutrinoVar(), reco::tau::disc::OpeningAngle3D(), reco::tau::disc::OpeningDeltaR(), reco::tau::RecoTauPhotonFilter::operator()(), TtDilepLRSignalSelObservables::operator()(), PFJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), CaloJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >::operator()(), CorrectJet::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), TtHadLRJetCombObservables::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), reco::tau::RecoTauEnergyRecoveryPlugin2::operator()(), TtSemiLRJetCombObservables::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< pat::Jet >::operator()(), Calculate::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(), DeltaBetaWeights::produce(), Type0PFMETcorrInputProducer::produce(), HLTMETCleanerUsingJetID::produce(), TruthTauDecayModeProducer::produce(), MuonProducer::produce(), TauSpinnerCMS::readParticlesfromReco(), 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(), reco::tau::disc::TrackAngle(), SelectReplacementCandidates::transformMuMu2TauTau(), and pat::TriggerObjectStandAlone::triggerObject().

148 { 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 236 of file LeafCandidate.h.

References pdgId_.

Referenced by FBaseSimEvent::addParticles(), TauDecay_GenParticle::AddRadInfo(), EWKSystUnc::analyze(), ZLONLOHistogrammer::analyze(), zPdfUnc::analyze(), ZMuPtScaleAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), PFTester::analyze(), TauDecay_GenParticle::Analyze(), AcceptanceHistoProducer::analyze(), ResolutionCreator::analyze(), AnaL1CaloCleaner::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), ZdcSimHitStudy::analyze(), L1Validator::analyze(), TauDecay_GenParticle::AnalyzeTau(), TopDecaySubset::checkShowerModel(), compGenParticleP4afterRad(), GeneratorTau::computeDecayMode(), TauValidation::countParticles(), TopGenEvent::daughterQuarkOfTop(), GeneratorTau::decayToPDGClassification(), PFIsolationEstimator::fGetIsolationInRings(), CandKinematicVertexFitter::fill(), BPhysicsValidation::ParticleMonitor::Fill(), BPhysicsValidation::FillDaughters(), TopDecaySubset::fillListing(), objMon< T >::fillMC(), doubleEMEnrichingFilterAlgo::filter(), HighETPhotonsFilterAlgo::filter(), BCToEFilterAlgo::filter(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), TauValidation::findFSRandBrem(), GenHFHadronMatcher::findHadronJets(), TauValidation::findMother(), TauValidation::FindPhotosFSR(), TauValidation::findTauList(), InputGenJetsParticleSelector::fromResonance(), pat::PATObject< ObjectType >::genParticleById(), TauSpinnerCMS::GetLastSelf(), TauValidation::GetMother(), TauValidation::GetMothers(), TauSpinnerCMS::GetRecoDaughters(), ttHFGenFilter::GetTops(), PFJetBenchmark::gettrue(), GenParticlesHelper::hasAncestor(), objMon< T >::hasBPartonInCone(), BCToEFilterAlgo::isBCBaryon(), doubleEMEnrichingFilterAlgo::isBCBaryon(), BCToEFilterAlgo::isBCMeson(), doubleEMEnrichingFilterAlgo::isBCMeson(), TauSpinnerCMS::isFirst(), HiGammaJetSignalDef::IsIsolated(), TauValidation::isLastTauinChain(), HiPhotonType::IsPrompt(), McSelector::isSelected(), TauValidation::leadingPionP4(), BasicGenParticleValidation::matchParticles(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), reco::RecoTauPiZero::numberOfElectrons(), reco::RecoTauPiZero::numberOfGammas(), GenParticleCustomSelector::operator()(), TtDilepLRSignalSelObservables::operator()(), reco::PFRecoTauChargedHadron::print(), reco::GenJet::print(), PFJetBenchmark::printGenJet(), WeakEffectsWeightProducer::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), pat::PATPackedCandidateProducer::produce(), InputGenJetsParticleSelector::produce(), PartonSelector::produce(), JetPartonMatcher::produce(), TauSpinnerCMS::readParticlesfromReco(), setPdgId(), TauValidation::spinEffectsZH(), TauValidation::tauMother(), SelectReplacementCandidates::transformMuMu2TauTau(), pat::TriggerObjectStandAlone::triggerObject(), and TauValidation::visibleTauEnergy().

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

momentum azimuthal angle

Implements reco::Candidate.

Definition at line 180 of file LeafCandidate.h.

References phi_.

Referenced by reco::WMuNuCandidate::acop(), reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), ZIterativeAlgorithmWithFit::addEvent(), reco::tau::RecoTauConstructor::addPiZero(), FWMuonDetailView::addSceneInfo(), FWElectronDetailView::addSceneInfo(), reco::tau::RecoTauConstructor::addTauChargedHadron(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), PatZjetsJetAnalyzer::analyze(), PatTauAnalyzer::analyze(), PFTester::analyze(), EwkElecDQM::analyze(), RPCRecHitProbability::analyze(), ElectronMcSignalValidator::analyze(), CaloTowerAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), HLTMonBTagMuSource::analyze(), PFCandidateChecker::analyze(), HLTMonBTagIPSource::analyze(), ZMuMuIsolationAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), DQMHcalDiJetsAlCaReco::analyze(), PatPhotonSimpleAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), SimplePhotonAnalyzer::analyze(), QcdPhotonsDQM::analyze(), EwkDQM::analyze(), AnaL1CaloCleaner::analyze(), WenuPlots::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), JetTester::analyze(), SimplePi0DiscAnalyzer::analyze(), myJetAna::analyze(), ZMuMu_Radiative_analyzer::analyze(), METTester::analyze(), AnaMuonCaloCleaner::analyze(), DQMExample_Step1::analyze(), L25TauAnalyzer::analyze(), ZdcSimHitStudy::analyze(), PhotonValidator::analyze(), HLTMuonMatchAndPlot::analyze(), JetAnalyzer::analyze(), ErsatzMEt::analyze(), ExoticaDQM::analyzeMultiJets(), JetTagPlotter::analyzeTag(), reco::tau::RecoTauVertexAssociator::associatedVertex(), JetTracksAssociationXtrpCalo::associateInputTracksToJet(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), AlignmentMuonSelector::basicCuts(), FWJetLegoProxyBuilder::build(), FWCaloTowerDetailView::build(), FWL1EtMissParticleGlimpseProxyBuilder::build(), FWL1EtMissParticleLegoProxyBuilder::build(), FWL1JetParticleLegoProxyBuilder::build(), FWL1MuonParticleLegoProxyBuilder::build(), FWMETGlimpseProxyBuilder::build(), FWMETLegoProxyBuilder::build(), FWPhotonLegoProxyBuilder::build(), FWMuonDetailView::build(), FWMuonLegoProxyBuilder::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(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), AlignmentTwoBodyDecayTrackSelector::checkMETAcoplanarity(), L6SLBCorrector::correction(), JetPlusTrackCorrector::correction(), EMEnrichingFilterAlgo::deltaRxyAtEE(), doubleEMEnrichingFilterAlgo::deltaRxyAtEE(), PFCandWithSuperClusterExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), EcalDeadCellDeltaRFilter::dPhiToMETfunc(), ElectronMaker::electronIsoValuePF(), reco::Jet::etaphiMoment(), reco::Jet::etaPhiStatistics(), metsig::SignAlgoResolutions::evalPF(), metsig::SignAlgoResolutions::evalPFJet(), ZGlobalVsSAIsolationAnalyzer::evaluate(), pat::JetCorrFactorsProducer::evaluate(), PFPhotonAlgo::EvaluateGCorrMVA(), TauDiscriminationAgainstMuon< TauType, TauDiscriminator >::evaluateMuonVeto(), PFPhotonAlgo::EvaluateResMVA(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), PFCandidateManager::fill(), BPhysicsValidation::ParticleMonitor::Fill(), L1ValidatorHists::Fill(), TopElectronHLTOfflineSource::EleMEs::fill(), RecoMuonValidator::MuonME::fill(), ZeeCalibration::fillEleInfo(), PFMuonCaloCleaner::fillEnergyDepositMap(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), METAnalyzer::fillMonitorElement(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), WMuNuValidator::filter(), HeavyChHiggsToTauNuSkim::filter(), WZInterestingEventSelector::filter(), HSCPTreeBuilder::filter(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), L1Validator::FindBest(), CalibratableTest::findCandidatesInDeltaR(), TtFullLepHypGenMatch::findMatchingLepton(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), TxCalculator::getCTx(), dRxyCalculator::getDRxy(), TxyCalculator::getHollSxy(), TxCalculator::getJct(), TxCalculator::getJt(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), ParticleTowerProducer::getNearestTower(), TxyCalculator::getNumLocalTracks(), TxCalculator::getTx(), TxyCalculator::getTxy(), objMon< T >::hasBPartonInCone(), HLTMuonTrackMassFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), BTagHLTOfflineSource::isMuonJet(), PFPhotonIsolationCalculator::isNeutralParticleVetoed(), PFIsolationEstimator::isNeutralParticleVetoed(), EGammaMvaEleEstimator::isoMvaValue(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), main(), JetVertexMain::Main(), fireworks::makeEveJetCone(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), L1MuonMatcherAlgo::match(), FWCaloTowerSliceSelector::matchCell(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), AntiElectronIDMVA5GBR::MVAValue(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), WPlusJetsEventSelector::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), JetIDStudiesSelector::operator()(), reco::operator<<(), operator<<(), ElectronMaker::PFIsolation2012(), egHLT::OffPho::phi(), egHLT::OffEle::phi(), MuonIdProducer::phiOfMuonIneteractionRegion(), reco::Jet::phiphiMoment(), reco::GenericJet::print(), reco::PFRecoTauChargedHadron::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), L25TauAnalyzer::printInfo(), reco::JPTJet::printJet(), PFCandidateChecker::printJets(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), PFAlgo::processBlock(), JetTracksAssociationDRVertex::produce(), JetTracksAssociationDRVertexAssigned::produce(), JetTracksAssociationDRCalo::produce(), DistortedMETProducer::produce(), JetVetoedTracksAssociationDRVertex::produce(), DistortedMuonProducerFromDB::produce(), DistortedMuonProducer::produce(), DistortedPFCandProducer::produce(), RegressionEnergyPatElectronProducer::produce(), FSRWeightProducer::produce(), CaloTowerCandidateCreator::produce(), PileupJPTJetIdProducer::produce(), EgammaHLTCaloTowerProducer::produce(), MuonReSeeder::produce(), ParticleTowerProducer::produce(), pf2pat::PFMETAlgo::produce(), CaloTowerCreatorForTauHLT::produce(), pat::PATPackedCandidateProducer::produce(), GenParticlesFromZsSelectorForMCEmbedding::produce(), cms::AlCaDiJetsProducer::produce(), OutsideInMuonSeeder::produce(), BoostedTauSeedsProducer::produce(), PileupJetIdProducer::produce(), CastorClusterProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::produce(), AcceptJet::ratio(), JetPlusTrackCorrector::rebuildJta(), reco::tau::RecoTauIsolationMasking::resolution(), L1GObject::setPhi(), FWCaloTowerDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), pat::LeptonJetIsolationAngle::spaceAngle(), reco::SoftLeptonTagInfo::taggingVariables(), pat::MET::uncorrectedPhi(), and CaloSpecificAlgo::update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF().

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

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 150 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by pat::L1MuonMatcher::produce(), and pat::PATPackedCandidateProducer::produce().

150 { 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 178 of file LeafCandidate.h.

References pt_.

Referenced by StKinFitter::addKinFitInfo(), reco::tau::RecoTauConstructor::addPiZero(), reco::tau::RecoTauConstructor::addTauChargedHadron(), GlbMuQualityCutsAnalysis::analyze(), FlavorJetCorrectionExample::analyze(), PartonJetCorrectionExample::analyze(), CMSDAS11DijetAnalyzer::analyze(), JetValidation::analyze(), PatZjetsJetAnalyzer::analyze(), PatTauAnalyzer::analyze(), EwkElecDQM::analyze(), ElectronMcSignalValidator::analyze(), RPCRecHitProbability::analyze(), ElectronTagProbeAnalyzer::analyze(), SUSYDQMAnalyzer::analyze(), EwkMuDQM::analyze(), RPCMonitorDigi::analyze(), testAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), AcceptanceHistoProducer::analyze(), ElectronMcFakeValidator::analyze(), QcdHighPtDQM::analyze(), ZMuMuIsolationAnalyzer::analyze(), IsolatedParticlesGeneratedJets::analyze(), QcdPhotonsDQM::analyze(), EwkDQM::analyze(), AnaL1CaloCleaner::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), MuonPFAnalyzer::analyze(), JetTester::analyze(), GsfElectronMCAnalyzer::analyze(), myJetAna::analyze(), MuTriggerAnalyzer::analyze(), gamma_radiative_analyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), METTester::analyze(), TopSingleLeptonHLTValidation::analyze(), HiggsDQM::analyze(), DQMExample_Step1::analyze(), AnaMuonCaloCleaner::analyze(), TopDiLeptonHLTValidation::analyze(), HLTMuonMatchAndPlot::analyze(), JetAnalyzer::analyze(), ErsatzMEt::analyze(), ZToMuMuGammaAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), TrackIPTagPlotter::analyzeTag(), JetTagPlotter::analyzeTag(), reco::tau::RecoTauVertexAssociator::associatedVertex(), 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(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), reco::tau::disc::ChargedOutlierPt(), PFAlgo::checkCleaning(), 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(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), PFCandWithSuperClusterExtractor::depositFromObject(), reco::PFTau::dump(), WZInterestingEventSelector::electronSelection(), reco::tau::disc::EMFraction(), metsig::SignAlgoResolutions::evalPFJet(), pat::JetCorrFactorsProducer::evaluate(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), PFIsolationEstimator::fGetIsolationInRings(), PFJetMonitor::fill(), PFCandidateManager::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), BPhysicsValidation::ParticleMonitor::Fill(), L1ValidatorHists::Fill(), RecoMuonValidator::MuonME::fill(), PFMuonCaloCleaner::fillEnergyDepositMap(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), objMon< T >::fillL1MCMatch(), objMon< T >::fillMC(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), METAnalyzer::fillMonitorElement(), objMon< T >::fillOffMCMatch(), MatchMETBenchmark::fillOne(), PFCandidateBenchmark::fillOne(), METBenchmark::fillOne(), PFMETMonitor::fillOne(), HLTOniaSource::fillOniaTriggerMEs(), objMon< T >::fillOnMCMatch(), GEDPhotonProducer::fillPhotonCollection(), myFilter::filter(), reco::tau::RecoTauPhotonFilter::filter(), WMuNuValidator::filter(), InconsistentMuonPFCandidateFilter::filter(), WMuNuSelector::filter(), NJetsMC::filter(), WZInterestingEventSelector::filter(), LeptonRecoSkim::filter(), reco::CentralityProducer::filter(), HSCPTreeBuilder::filter(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), reco::tau::RecoTauVertexAssociator::getLeadTrack(), getTheElectron(), getTheMuon(), getTheTauJet(), PFCandidateChecker::greaterPt(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTHcalNoiseFilter::hltFilter(), HLTMuonTrackMassFilter::hltFilter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), EtaPtBin::inBin(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), 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(), EGammaMvaEleEstimator::isoMvaValue(), PFEGammaFilters::isPhotonSafeForJetMET(), GsfElectronAlgo::isPreselected(), McSelector::isSelected(), RecoSelector::isSelected(), BTagHLTOfflineSource::isVBTFMuon(), JetAnalyzer::jetSortingRule(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), main(), reco::modules::HICaloCompatibleTrackSelector::matchByDrAllowReuse(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), DQMExample_Step1::MediumEle(), pat::MHT::mht(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), EwkMuLumiMonitorDQM::muIso(), ElectronMVAEstimator::mva(), SoftElectronMVAEstimator::mva(), EGammaMvaEleEstimator::mvaValue(), AntiElectronIDMVA5GBR::MVAValue(), reco::tau::disc::NeutralOutlierPt(), GenJetSort::operator()(), reco::TrackSelector::operator()(), AcceptJet::operator()(), GenParticleCustomSelector::operator()(), BasicJetSort::operator()(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), CaloJetSort::operator()(), TtHadLRJetCombObservables::operator()(), L2TauJetsMerger::SorterByPt::operator()(), WSelector::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), TtSemiLepSignalSelMVATrainer::JetwithHigherPt::operator()(), WPlusJetsEventSelector::operator()(), TtSemiLRJetCombObservables::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), WMuNuProducer::ComparePt::operator()(), reco::tau::PFRecoTauChargedHadronFromTrackPlugin::operator()(), AlignmentMuonSelector::ComparePt::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), HPSPFRecoTauAlgorithm::HPSTauPtSorter::operator()(), MuScleFitUtils::byPt::operator()(), reco::operator<<(), reco::tau::disc::OutlierPt(), muon::overlap(), PFEGammaFilters::passElectronSelection(), PhotonSelectorAlgo::passPhotonSelection(), PFEGammaFilters::passPhotonSelection(), EgammaCutBasedEleId::PassTriggerCuts(), reco::tau::disc::PiZeroPt(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), PatJetAnalyzer::print(), reco::PFRecoTauChargedHadron::print(), reco::GenJet::print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), PFJetBenchmark::process(), PFAlgo::processBlock(), MuonWithPFIsoProducerCopy::produce(), DistortedMuonProducerFromDB::produce(), MuonWithPFIsoProducer::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), QuarkoniaTrackSelector::produce(), L1HLTTauMatching::produce(), RegressionEnergyPatElectronProducer::produce(), L2TauJetsProvider::produce(), ISRWeightProducer::produce(), CaloMuonMerger::produce(), PileupJPTJetIdProducer::produce(), QjetsAdder::produce(), EgammaHLTPFChargedIsolationProducer::produce(), MuonReSeeder::produce(), MuonMETcorrInputProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), InputGenJetsParticleSelector::produce(), GenParticlesFromZsSelectorForMCEmbedding::produce(), WMuNuProducer::produce(), OutsideInMuonSeeder::produce(), BoostedTauSeedsProducer::produce(), AlCaHcalNoiseProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), PileupJetIdProducer::produce(), JetPartonMatcher::produce(), SmearedJetProducerT< T, Textractor >::produce(), reco::tau::disc::Pt(), egHLT::OffPho::pt(), reco::tau::qcuts::ptMin_cand(), MuonIsolationDQM::RecordData(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), reco::tau::disc::ScaledOpeningDeltaR(), FWMuonDetailView::setTextInfo(), MVAJetIdMaker::SetVars(), cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed(), reco::tau::disc::SignalPtFraction(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), MuonVPlusJetsIDSelectionFunctor::summer08Cuts(), reco::tau::sumPFCandPt(), GenericMVAJetTagComputer::taggingVariables(), EgammaCutBasedEleId::TestWP(), PFMuonSelector::TopPag12LjetsCuts(), reco::tau::disc::TrackPt(), PFMuonAlgo::tracksWithBetterMET(), and pat::MET::uncorrectedPt().

178 { 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 172 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), EwkElecDQM::analyze(), EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), myJetAna::analyze(), METTester::analyze(), HiggsDQM::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(), AddCorrectionsToPFMET::constructP4From(), AddCorrectionsToCaloMET::constructP4From(), L1JPTOffsetCorrector::correction(), JetPlusTrackCorrector::correction(), SoftPFElectronTagInfoProducer::fillElecProperties(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), METAnalyzer::fillMonitorElement(), 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(), NjettinessAdder::getTau(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TauValidation::motherP4(), TtSemiLRSignalSelObservables::operator()(), hitfit::METTranslatorBase< AMet >::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), Calculate::operator()(), CalculateHLT::operator()(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), MEzCalculator::Print(), METzCalculator::Print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), L1ExtraMEtMixerPlugin::produce(), MuonMETcorrInputProducer::produce(), WMuNuProducer::produce(), JetEnergyShift::produce(), JetPlusTrackProducer::produce(), JetPlusTrackProducerAA::produce(), BoostedTopProducer::produce(), pat::PATMETSlimmer::OneMETShift::readAndSet(), TCTauAlgorithm::recalculateEnergy(), Type1PFMET::run(), pat::MET::setPtPhi_(), pat::MET::setShift(), pat::MET::shiftedP2(), pat::MET::shiftedP3(), pat::MET::shiftedP4(), reco::MET::significance(), TauValidation::spinEffectsZH(), ImpactParameterAlgorithm::tag(), PFMuonAlgo::tracksWithBetterMET(), TauValidation::visibleTauEnergy(), and reco::WMuNuCandidatePtr::WMuNuCandidatePtr().

172 { 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 174 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), EwkElecDQM::analyze(), ElectronMcSignalValidator::analyze(), EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronMcFakeValidator::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), myJetAna::analyze(), METTester::analyze(), HiggsDQM::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(), AddCorrectionsToPFMET::constructP4From(), AddCorrectionsToCaloMET::constructP4From(), L1JPTOffsetCorrector::correction(), JetPlusTrackCorrector::correction(), SoftPFElectronTagInfoProducer::fillElecProperties(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), METAnalyzer::fillMonitorElement(), 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(), NjettinessAdder::getTau(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), reco::WMuNuCandidate::massT(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TauValidation::motherP4(), TtSemiLRSignalSelObservables::operator()(), hitfit::METTranslatorBase< AMet >::operator()(), hitfit::LeptonTranslatorBase< ALepton >::operator()(), Calculate::operator()(), CalculateHLT::operator()(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::GenericJet::print(), MEzCalculator::Print(), METzCalculator::Print(), reco::Jet::print(), PFJetBenchmark::printGenJet(), PFJetBenchmark::printPFJet(), L1ExtraMEtMixerPlugin::produce(), MuonMETcorrInputProducer::produce(), WMuNuProducer::produce(), JetEnergyShift::produce(), JetPlusTrackProducer::produce(), JetPlusTrackProducerAA::produce(), BoostedTopProducer::produce(), pat::PATMETSlimmer::OneMETShift::readAndSet(), TCTauAlgorithm::recalculateEnergy(), Type1PFMET::run(), pat::MET::setPtPhi_(), pat::MET::setShift(), pat::MET::shiftedP2(), pat::MET::shiftedP3(), pat::MET::shiftedP4(), reco::MET::significance(), TauValidation::spinEffectsZH(), ImpactParameterAlgorithm::tag(), PFMuonAlgo::tracksWithBetterMET(), and TauValidation::visibleTauEnergy().

174 { 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 176 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by StKinFitter::addKinFitInfo(), TtFullLepKinSolver::addKinSolInfo(), FBaseSimEvent::addParticles(), EwkElecDQM::analyze(), EwkMuDQM::analyze(), HiggsDQM::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(), NjettinessAdder::getTau(), TauValidation::leadingPionP4(), reco::IsolatedTauTagInfo::leadingSignalTrack(), main(), MatchJet::matchCollections(), BasicGenParticleValidation::matchParticles(), TauValidation::motherP4(), TtSemiLRSignalSelObservables::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(), BoostedTopProducer::produce(), TCTauAlgorithm::recalculateEnergy(), setPz(), TauValidation::spinEffectsZH(), ImpactParameterAlgorithm::tag(), and TauValidation::visibleTauEnergy().

176 { 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 186 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by y().

186 { 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 246 of file LeafCandidate.h.

References longLivedTag, and status_.

246 { 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 211 of file LeafCandidate.h.

References clearCache(), m, and mass_.

Referenced by RecoTauPiZeroProducer::produce().

211  {
212  mass_ = m;
213  clearCache();
214  }
void clearCache() const
clear internal cache
virtual void reco::LeafCandidate::setMassConstraint ( )
inlinevirtual

set mass constraint flag

Implements reco::Candidate.

Definition at line 252 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 190 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::TrackToCandidate::convert(), converter::StandAloneMuonTrackToCandidate::convert(), GenParticleProducer::convertParticle(), TtFullHadKinFitter::KinFit::corJet(), pat::Jet::correctedJet(), pat::Tau::correctedTauJet(), pat::GenericParticle::fillInFrom(), pat::PATMuonProducer::fillMuon(), PFEGammaAlgo::fillPFCandidates(), MuScleFitFilter::filter(), L1GObject::initialize(), pat::Jet::initializeJEC(), pat::Tau::initializeJEC(), reco::tau::RecoTauPhotonFilter::operator()(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< pat::MET >::operator()(), reco::tau::RecoTauTwoProngFilter::operator()(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), reco::PFTauDecayMode::PFTauDecayMode(), PFAlgo::processBlock(), DistortedMuonProducerFromDB::produce(), DistortedMuonProducer::produce(), DistortedPFCandProducer::produce(), TCRecoTauProducer::produce(), GlobalMuonToMuonProducer::produce(), DeltaBetaWeights::produce(), HLTMETCleanerUsingJetID::produce(), ShiftedPFCandidateProducerForPFMEtMVA::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), MuonProducer::produce(), TCTauAlgorithm::recalculateEnergy(), HPSPFRecoTauAlgorithm::refitThreeProng(), reco::PFCandidate::rescaleMomentum(), PFPhotonAlgo::RunPFPhoton(), reco::Jet::scaleEnergy(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), CandKinematicVertexFitter::set(), reco::tau::setChargedHadronP4(), MEzCalculator::SetLepton(), MEzCalculator::SetMET(), METzCalculator::SetMET(), METzCalculator::SetMuon(), and SelectReplacementCandidates::transformMuMu2TauTau().

190  {
191  p4Cartesian_ = p4;
192  p4Polar_ = p4;
193  pt_ = p4Polar_.pt();
194  eta_ = p4Polar_.eta();
195  phi_ = p4Polar_.phi();
196  mass_ = p4Polar_.mass();
197  cachePolarFixed_ = true;
198  cacheCartesianFixed_ = true;
199  }
LorentzVector p4Cartesian_
internal cache for p4
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
bool cachePolarFixed_
has cache been set?
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual void reco::LeafCandidate::setP4 ( const PolarLorentzVector p4)
inlinevirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 201 of file LeafCandidate.h.

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

201  {
202  p4Polar_ = p4;
203  pt_ = p4Polar_.pt();
204  eta_ = p4Polar_.eta();
205  phi_ = p4Polar_.phi();
206  mass_ = p4Polar_.mass();
207  cachePolarFixed_ = true;
208  cacheCartesianFixed_ = false;
209  }
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
bool cachePolarFixed_
has cache been set?
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual void reco::LeafCandidate::setPdgId ( int  pdgId)
inlinevirtual
virtual void reco::LeafCandidate::setPz ( double  pz)
inlinevirtual

Implements reco::Candidate.

Definition at line 215 of file LeafCandidate.h.

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

Referenced by BoostedTopProducer::produce().

215  {
216  cacheCartesian();
217  p4Cartesian_.SetPz(pz);
219  pt_ = p4Polar_.pt();
220  eta_ = p4Polar_.eta();
221  phi_ = p4Polar_.phi();
222  mass_ = p4Polar_.mass();
223  }
LorentzVector p4Cartesian_
internal cache for p4
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
void cacheCartesian() const
set internal cache
virtual double pz() const
z coordinate of momentum vector
virtual void reco::LeafCandidate::setStatus ( int  status)
inlinevirtual
virtual void reco::LeafCandidate::setThreeCharge ( Charge  qx3)
inlinevirtual

set electric charge

Implements reco::Candidate.

Definition at line 146 of file LeafCandidate.h.

References qx3_.

Referenced by GenParticleProducer::convertParticle().

146 { 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 pat::Photon, pat::Tau, reco::PFTau, pat::Electron, pat::Muon, reco::PFCandidate, and reco::CompositePtrCandidate.

Definition at line 135 of file LeafCandidate.h.

135  {
136  return CandidatePtr();
137  }
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 240 of file LeafCandidate.h.

References status_.

Referenced by FBaseSimEvent::addParticles(), TauDecay_GenParticle::AddPi0Info(), ZLONLOHistogrammer::analyze(), EWKSystUnc::analyze(), zPdfUnc::analyze(), ZMuPtScaleAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), AcceptanceHistoProducer::analyze(), TauDecay_GenParticle::Analyze(), AnaL1CaloCleaner::analyze(), ResolutionCreator::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), L1Validator::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(), ISRWeightProducer::produce(), FSRWeightProducer::produce(), PdfWeightProducer::produce(), InputGenJetsParticleSelector::produce(), PartonSelector::produce(), pat::PATPackedGenParticleProducer::produce(), JetPartonMatcher::produce(), setStatus(), and TauValidation::tauDecayChannel().

240 { 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 144 of file LeafCandidate.h.

References qx3_.

Referenced by TopDecaySubset::fillListing().

144 { 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 225 of file LeafCandidate.h.

References vertex_.

Referenced by MultiTrackValidatorGenPs::analyze(), ElectronMcSignalValidator::analyze(), ElectronTagProbeAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), AddCorrectionsToPFMET::applyCorrection(), AddCorrectionsToCaloMET::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()(), CorrectedMETProducer_namespace::CorrectedMETFactoryT< reco::CaloMET >::operator()(), CorrectJet::operator()(), SmearedJetProducer_namespace::JetResolutionExtractorT< pat::Jet >::operator()(), overlap(), EgammaHLTTrackIsolation::photonIsolation(), reco::CaloJet::physicsP4(), pat::PATTrackAndVertexUnpacker::produce(), Type1PFMET::run(), reco::Photon::setVertex(), and setVertex().

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

chi-squares

Implements reco::Candidate.

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

Definition at line 82 of file LeafCandidate.cc.

82  {
83  return 0;
84 }
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, and reco::VertexCompositePtrCandidate.

Definition at line 94 of file LeafCandidate.cc.

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

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

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 275 of file LeafCandidate.h.

References fillVertexCovariance(), and m.

275 { 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, and reco::VertexCompositePtrCandidate.

Definition at line 86 of file LeafCandidate.cc.

86  {
87  return 0;
88 }
double LeafCandidate::vertexNormalizedChi2 ( ) const
virtual

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

Implements reco::Candidate.

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

Definition at line 90 of file LeafCandidate.cc.

90  {
91  return 0;
92 }
virtual double reco::LeafCandidate::vx ( ) const
inlinevirtual
virtual double reco::LeafCandidate::vy ( ) const
inlinevirtual
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 389 of file LeafCandidate.h.

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

Definition at line 388 of file LeafCandidate.h.

friend class ShallowCloneCandidate
friend

Definition at line 390 of file LeafCandidate.h.

friend class ShallowClonePtrCandidate
friend

Definition at line 391 of file LeafCandidate.h.

Member Data Documentation

bool reco::LeafCandidate::cacheCartesianFixed_
mutableprotected

Definition at line 367 of file LeafCandidate.h.

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

bool reco::LeafCandidate::cachePolarFixed_
mutableprotected

has cache been set?

Definition at line 367 of file LeafCandidate.h.

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

float reco::LeafCandidate::eta_
protected

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

Referenced by longLived(), and setLongLived().

float reco::LeafCandidate::mass_
protected

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

Referenced by massConstraint(), and setMassConstraint().

LorentzVector reco::LeafCandidate::p4Cartesian_
mutableprotected

internal cache for p4

Definition at line 365 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 363 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 359 of file LeafCandidate.h.

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

float reco::LeafCandidate::phi_
protected

Definition at line 355 of file LeafCandidate.h.

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

float reco::LeafCandidate::pt_
protected

four-momentum Lorentz vector

Definition at line 355 of file LeafCandidate.h.

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

Charge reco::LeafCandidate::qx3_
protected

electric charge

Definition at line 353 of file LeafCandidate.h.

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

int reco::LeafCandidate::status_
protected

status word

Definition at line 361 of file LeafCandidate.h.

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

Point reco::LeafCandidate::vertex_
protected