CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Friends
reco::LeafCandidate Class Reference

#include <LeafCandidate.h>

Inheritance diagram for reco::LeafCandidate:
reco::Candidate CaloTower reco::CompositeRefCandidateT< GenParticleRefVector > l1extra::L1EmParticle l1extra::L1EtMissParticle l1extra::L1JetParticle l1extra::L1MuonParticle pat::TriggerObject pat::PATObject< reco::LeafCandidate > reco::CaloRecHitCandidate reco::CandidateWithRef< Ref > reco::CastorTower reco::CompositeCandidate reco::CompositePtrCandidate reco::CompositeRefBaseCandidate reco::CompositeRefCandidate reco::CompositeRefCandidateT< D > reco::EcalIsolatedParticleCandidate reco::RecoCandidate reco::ShallowCloneCandidate reco::ShallowClonePtrCandidate

Classes

struct  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 double 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)
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual double mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual double 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 double phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual double 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 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 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

edm::BoolCache cacheCartesianFixed_
 
edm::BoolCache 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
Version
Id:
LeafCandidate.h,v 1.22 2009/09/21 08:15:50 llista Exp

Definition at line 18 of file LeafCandidate.h.

Member Typedef Documentation

electric charge type

Definition at line 23 of file LeafCandidate.h.

Definition at line 352 of file LeafCandidate.h.

collection of daughter candidates

Definition at line 21 of file LeafCandidate.h.

typedef unsigned int reco::LeafCandidate::index

Definition at line 33 of file LeafCandidate.h.

Definition at line 354 of file LeafCandidate.h.

Lorentz vector.

Definition at line 25 of file LeafCandidate.h.

point in the space

Definition at line 29 of file LeafCandidate.h.

Lorentz vector.

Definition at line 27 of file LeafCandidate.h.

point in the space

Definition at line 31 of file LeafCandidate.h.

Constructor & Destructor Documentation

reco::LeafCandidate::LeafCandidate ( )
inline

default constructor

Definition at line 36 of file LeafCandidate.h.

Referenced by clone().

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

Definition at line 41 of file LeafCandidate.h.

41  :
42  qx3_( c.charge()*3 ), pt_( c.p4().pt() ), eta_( c.p4().eta() ), phi_( c.p4().phi() )\
43  , mass_( c.p4().mass() ),
44  vertex_( c.vertex() ), pdgId_( c.pdgId() ), status_( c.status() ),
45  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {}
int pdgId_
PDG identifier.
float pt_
four-momentum Lorentz vector
Point vertex_
vertex position
edm::BoolCache cachePolarFixed_
has cache been set?
int status_
status word
edm::BoolCache cacheCartesianFixed_
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 48 of file LeafCandidate.h.

References qx3_.

50  :
51  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
52  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
53  cachePolarFixed_( false ), cacheCartesianFixed_( false ) {
54  if ( integerCharge ) qx3_ *= 3;
55  }
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
edm::BoolCache cachePolarFixed_
has cache been set?
int status_
status word
edm::BoolCache cacheCartesianFixed_
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 57 of file LeafCandidate.h.

References qx3_.

59  :
60  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
61  vertex_( vtx ), pdgId_( pdgId ), status_( status ),
62  cachePolarFixed_( false ), cacheCartesianFixed_( false ){
63  if ( integerCharge ) qx3_ *= 3;
64  }
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
edm::BoolCache cachePolarFixed_
has cache been set?
int status_
status word
edm::BoolCache cacheCartesianFixed_
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Charge qx3_
electric charge
LeafCandidate::~LeafCandidate ( )
virtual

destructor

Definition at line 6 of file LeafCandidate.cc.

6 { }

Member Function Documentation

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

Definition at line 289 of file LeafCandidate.h.

References begin(), and end().

289  {
290  return boost::make_filter_iterator(s, begin(), end());
291  }
virtual const_iterator begin() const
first daughter const_iterator
Definition: LeafCandidate.cc:8
string s
Definition: asciidump.py:422
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 115 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

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

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

332  {
333  if ( cacheCartesianFixed_ ) return;
334  cachePolar();
336  cacheCartesianFixed_ = true;
337  }
LorentzVector p4Cartesian_
internal cache for p4
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
edm::BoolCache cacheCartesianFixed_
void reco::LeafCandidate::cachePolar ( ) const
inlineprotected

set internal cache

Definition at line 326 of file LeafCandidate.h.

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

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

326  {
327  if ( cachePolarFixed_ ) return;
329  cachePolarFixed_ = true;
330  }
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:27
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
edm::BoolCache cachePolarFixed_
has cache been set?
virtual int reco::LeafCandidate::charge ( ) const
inlinevirtual

electric charge

Implements reco::Candidate.

Definition at line 100 of file LeafCandidate.h.

References qx3_.

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

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

clear internal cache

Definition at line 339 of file LeafCandidate.h.

References cacheCartesianFixed_, and cachePolarFixed_.

Referenced by setMass().

339  {
340  cachePolarFixed_ = false;
341  cacheCartesianFixed_ = false;
342  }
edm::BoolCache cachePolarFixed_
has cache been set?
edm::BoolCache cacheCartesianFixed_
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::SiStripElectron, reco::GsfElectron, pat::Jet, l1extra::L1MuonParticle, reco::GenJet, l1extra::L1JetParticle, l1extra::L1EmParticle, pat::Tau, pat::Electron, pat::Muon, reco::PFTauDecayMode, reco::IsolatedPixelTrackCandidate, pat::Photon, pat::GenericParticle, pat::MET, reco::PFTau, reco::CompositeCandidate, pat::PFParticle, pat::CompositeCandidate, reco::NamedCompositeCandidate, reco::Photon, pat::Particle, reco::MET, pat::Lepton< reco::BaseTau >, pat::Lepton< reco::GsfElectron >, pat::Lepton< reco::Muon >, reco::CompositePtrCandidate, reco::CompositeRefCandidate, reco::CompositeRefCandidateT< D >, reco::ShallowCloneCandidate, reco::TrackJet, reco::CompositeRefCandidateT< GenParticleRefVector >, reco::PFClusterJet, reco::ShallowClonePtrCandidate, reco::CompositeRefBaseCandidate, reco::VertexCompositeCandidate, reco::RecoCandidate, reco::GenParticle, reco::BasicJet, reco::EcalIsolatedParticleCandidate, reco::CaloRecHitCandidate, reco::Muon, reco::IsolatedPFCandidate, reco::PileUpPFCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::CandidateWithRef< Ref >, reco::RecoCaloTowerCandidate, reco::Electron, reco::BaseTau, and reco::CaloTau.

Definition at line 214 of file LeafCandidate.h.

References LeafCandidate().

214  {
215  return new LeafCandidate( *this );
216  }
LeafCandidate()
default constructor
Definition: LeafCandidate.h:36
const Candidate * LeafCandidate::daughter ( size_type  ) const
virtual
Candidate * LeafCandidate::daughter ( size_type  )
virtual
Candidate * LeafCandidate::daughter ( const std::string &  s)
virtual

return daughter with a specified role name

Implements reco::Candidate.

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

Definition at line 71 of file LeafCandidate.cc.

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

71  {
73  << "This Candidate type does not implement daughter(std::string). "
74  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
75 }
const Candidate * LeafCandidate::daughter ( const std::string &  s) const
virtual

return daughter with a specified role name

Implements reco::Candidate.

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

Definition at line 65 of file LeafCandidate.cc.

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

65  {
67  << "This Candidate type does not implement daughter(std::string). "
68  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
69 }
Candidate::const_iterator LeafCandidate::end ( void  ) const
virtual
Candidate::iterator LeafCandidate::end ( void  )
virtual
template<typename S >
daughter_iterator<S>::type reco::LeafCandidate::endFilter ( const S &  s) const
inline

Definition at line 293 of file LeafCandidate.h.

References end().

293  {
294  return boost::make_filter_iterator(s, end(), end());
295  }
string s
Definition: asciidump.py:422
virtual const_iterator end() const
last daughter const_iterator
virtual double reco::LeafCandidate::energy ( ) const
inlinevirtual

energy

Implements reco::Candidate.

Reimplemented in reco::CastorTower.

Definition at line 119 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

119 { 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 121 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

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

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

momentum pseudorapidity

Implements reco::Candidate.

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

Definition at line 143 of file LeafCandidate.h.

References eta_.

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

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

fill SMatrix

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 100 of file LeafCandidate.cc.

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

Referenced by vertexCovariance().

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

get a component

Definition at line 253 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__(), PFTauDiscriminants::PFTauDiscriminantManager::fillOutlierObjects(), and cms::HICFTSfromL1orL2::FTSfromL2().

253  {
254  if ( hasMasterClone() ) return masterClone()->get<T>();
255  else return reco::get<T>( * this );
256  }
virtual bool hasMasterClone() const
virtual const CandidateBaseRef & masterClone() const
T get() const
get a component
Definition: Candidate.h:217
long double T
template<typename T , typename Tag >
T reco::LeafCandidate::get ( void  ) const
inline

get a component

Definition at line 258 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__().

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

get a component

Definition at line 263 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__().

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

get a component

Definition at line 268 of file LeafCandidate.h.

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

Referenced by Options.Options::__getitem__().

268  {
269  if ( hasMasterClone() ) return masterClone()->get<T, Tag>( i );
270  else return reco::get<T, Tag>( * this, i );
271  }
int i
Definition: DBlmapReader.cc:9
virtual bool hasMasterClone() const
virtual const CandidateBaseRef & masterClone() const
T get() const
get a component
Definition: Candidate.h:217
long double T
bool LeafCandidate::hasMasterClone ( ) const
virtual

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

Implements reco::Candidate.

Reimplemented in reco::ShallowCloneCandidate.

Definition at line 30 of file LeafCandidate.cc.

Referenced by get(), and numberOf().

30  {
31  return false;
32 }
bool LeafCandidate::hasMasterClonePtr ( ) const
virtual

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

Implements reco::Candidate.

Reimplemented in reco::ShallowClonePtrCandidate.

Definition at line 34 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 115 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 119 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 105 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 109 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 121 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 107 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 117 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 111 of file LeafCandidate.cc.

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

Implements reco::Candidate.

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

Definition at line 113 of file LeafCandidate.cc.

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

is long lived?

Implements reco::Candidate.

Definition at line 206 of file LeafCandidate.h.

References longLivedTag, and status_.

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

do mass constraint?

Implements reco::Candidate.

Definition at line 212 of file LeafCandidate.h.

References massConstraintTag, and status_.

Referenced by CandKinematicVertexFitter::fill().

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

mass squared

Implements reco::Candidate.

Definition at line 125 of file LeafCandidate.h.

References mass_.

Referenced by EwkElecDQM::analyze().

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

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

Implements reco::Candidate.

Reimplemented in reco::ShallowCloneCandidate.

Definition at line 24 of file LeafCandidate.cc.

References edm::hlt::Exception.

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

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

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

Implements reco::Candidate.

Reimplemented in reco::ShallowClonePtrCandidate.

Definition at line 39 of file LeafCandidate.cc.

References edm::hlt::Exception.

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

cast master clone reference to a concrete type

Definition at line 250 of file LeafCandidate.h.

References masterClone().

250 { 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 127 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

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

127 { 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 129 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

129 { 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 273 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

273  {
274  if ( hasMasterClone() ) return masterClone()->numberOf<T>();
275  else return reco::numberOf<T>( * this );
276  }
virtual bool hasMasterClone() const
size_type numberOf() const
number of components
Definition: Candidate.h:237
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 278 of file LeafCandidate.h.

References hasMasterClone(), and masterClone().

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

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

Implements reco::Candidate.

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

Definition at line 92 of file LeafCandidate.h.

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

check overlap with another Candidate

Implements reco::Candidate.

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

Definition at line 53 of file LeafCandidate.cc.

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

53  {
54  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
55 }
virtual const Point & vertex() const
vertex position
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
virtual const LorentzVector& reco::LeafCandidate::p4 ( ) const
inlinevirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 108 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

108 { 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 194 of file LeafCandidate.h.

References pdgId_.

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

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

momentum azimuthal angle

Implements reco::Candidate.

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

Definition at line 139 of file LeafCandidate.h.

References phi_.

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

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

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 110 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

110 { cachePolar(); return p4Polar_; }
PolarLorentzVector p4Polar_
internal cache for p4
void cachePolar() const
set internal cache
double LeafCandidate::pt ( ) const
virtual

transverse momentum

Implements reco::Candidate.

Reimplemented in reco::SiStripElectron.

Definition at line 127 of file LeafCandidate.cc.

References pt_.

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

127 { 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 131 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

131 { 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 133 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

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

Reimplemented in reco::SiStripElectron.

Definition at line 135 of file LeafCandidate.h.

References cacheCartesian(), and p4Cartesian_.

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

135 { 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 145 of file LeafCandidate.h.

References cachePolar(), and p4Polar_.

Referenced by y().

145 { 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 204 of file LeafCandidate.h.

References longLivedTag, and status_.

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

References clearCache(), m, and mass_.

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

170  {
171  mass_ = m;
172  clearCache();
173  }
void clearCache() const
clear internal cache
virtual void reco::LeafCandidate::setMassConstraint ( )
inlinevirtual

set mass constraint flag

Implements reco::Candidate.

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

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

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

149  {
150  p4Cartesian_ = p4;
151  p4Polar_ = p4;
152  pt_ = p4Polar_.pt();
153  eta_ = p4Polar_.eta();
154  phi_ = p4Polar_.phi();
155  mass_ = p4Polar_.mass();
156  cachePolarFixed_ = true;
157  cacheCartesianFixed_ = true;
158  }
LorentzVector p4Cartesian_
internal cache for p4
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
edm::BoolCache cachePolarFixed_
has cache been set?
edm::BoolCache cacheCartesianFixed_
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 160 of file LeafCandidate.h.

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

160  {
161  p4Polar_ = p4;
162  pt_ = p4Polar_.pt();
163  eta_ = p4Polar_.eta();
164  phi_ = p4Polar_.phi();
165  mass_ = p4Polar_.mass();
166  cachePolarFixed_ = true;
167  cacheCartesianFixed_ = false;
168  }
float pt_
four-momentum Lorentz vector
PolarLorentzVector p4Polar_
internal cache for p4
edm::BoolCache cachePolarFixed_
has cache been set?
edm::BoolCache cacheCartesianFixed_
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 174 of file LeafCandidate.h.

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

174  {
175  cacheCartesian();
176  p4Cartesian_.SetPz(pz);
178  pt_ = p4Polar_.pt();
179  eta_ = p4Polar_.eta();
180  phi_ = p4Polar_.phi();
181  mass_ = p4Polar_.mass();
182  }
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

set status word

Implements reco::Candidate.

Definition at line 200 of file LeafCandidate.h.

References status(), and status_.

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

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

set electric charge

Implements reco::Candidate.

Definition at line 106 of file LeafCandidate.h.

References qx3_.

Referenced by GenParticleProducer::convertParticle().

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

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

Reimplemented from reco::Candidate.

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

Definition at line 95 of file LeafCandidate.h.

95  {
96  return CandidatePtr();
97  }
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 198 of file LeafCandidate.h.

References status_.

Referenced by FBaseSimEvent::addParticles(), ZLONLOHistogrammer::analyze(), zPdfUnc::analyze(), EWKSystUnc::analyze(), ZMuPtScaleAnalyzer::analyze(), JetAnaPythia< Jet >::analyze(), ResolutionCreator::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(), GenParticlesHelper::findParticles(), InputGenJetsParticleSelector::fromResonance(), pat::PATObject< ObjectType >::genParticleById(), GenParticlesHelper::hasAncestor(), HiGammaJetSignalDef::IsIsolated(), HiGammaJetSignalDef::IsIsolatedJP(), HiGammaJetSignalDef::IsIsolatedPP(), McSelector::isSelected(), objMon< T >::monitorL1(), objMon< T >::monitorOffline(), objMon< T >::monitorOnline(), PartonQualifier::operator()(), WeakEffectsWeightProducer::produce(), ISRGammaWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), FSRWeightProducer::produce(), InputGenJetsParticleSelector::produce(), PartonSelector::produce(), JetPartonMatcher::produce(), PFRootEventManager::reconstructGenJets(), and setStatus().

198 { 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 104 of file LeafCandidate.h.

References qx3_.

Referenced by TopDecaySubset::fillListing().

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

chi-squares

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 83 of file LeafCandidate.cc.

83  {
84  return 0;
85 }
double LeafCandidate::vertexCovariance ( int  i,
int  j 
) const
virtual

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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 95 of file LeafCandidate.cc.

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

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

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 232 of file LeafCandidate.h.

References fillVertexCovariance(), and m.

232 { CovarianceMatrix m; fillVertexCovariance(m); return m; }
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
double LeafCandidate::vertexNdof ( ) const
virtual

Number of degrees of freedom Meant to be Double32_t for soft-assignment fitters: tracks may contribute to the vertex with fractional weights. The ndof is then = to the sum of the track weights. see e.g. CMS NOTE-2006/032, CMS NOTE-2004/002

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 87 of file LeafCandidate.cc.

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

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

Implements reco::Candidate.

Reimplemented in reco::VertexCompositeCandidate.

Definition at line 91 of file LeafCandidate.cc.

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

x coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate.

Definition at line 186 of file LeafCandidate.h.

References vertex_.

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

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

y coordinate of vertex position

Implements reco::Candidate.

Reimplemented in reco::PFCandidate.

Definition at line 188 of file LeafCandidate.h.

References vertex_.

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

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

Friends And Related Function Documentation

friend class ::OverlapChecker
friend

Definition at line 346 of file LeafCandidate.h.

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

Definition at line 345 of file LeafCandidate.h.

friend class ShallowCloneCandidate
friend

Definition at line 347 of file LeafCandidate.h.

friend class ShallowClonePtrCandidate
friend

Definition at line 348 of file LeafCandidate.h.

Member Data Documentation

edm::BoolCache reco::LeafCandidate::cacheCartesianFixed_
mutableprotected

Definition at line 324 of file LeafCandidate.h.

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

edm::BoolCache reco::LeafCandidate::cachePolarFixed_
mutableprotected

has cache been set?

Definition at line 324 of file LeafCandidate.h.

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

float reco::LeafCandidate::eta_
protected

Definition at line 312 of file LeafCandidate.h.

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

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

long lived flag

Definition at line 202 of file LeafCandidate.h.

Referenced by longLived(), and setLongLived().

float reco::LeafCandidate::mass_
protected

Definition at line 312 of file LeafCandidate.h.

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

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

do mass constraint flag

Definition at line 208 of file LeafCandidate.h.

Referenced by massConstraint(), and setMassConstraint().

LorentzVector reco::LeafCandidate::p4Cartesian_
mutableprotected

internal cache for p4

Definition at line 322 of file LeafCandidate.h.

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

PolarLorentzVector reco::LeafCandidate::p4Polar_
mutableprotected

internal cache for p4

Definition at line 320 of file LeafCandidate.h.

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

int reco::LeafCandidate::pdgId_
protected

PDG identifier.

Definition at line 316 of file LeafCandidate.h.

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

float reco::LeafCandidate::phi_
protected

Definition at line 312 of file LeafCandidate.h.

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

float reco::LeafCandidate::pt_
protected

four-momentum Lorentz vector

Definition at line 312 of file LeafCandidate.h.

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

Charge reco::LeafCandidate::qx3_
protected

electric charge

Definition at line 310 of file LeafCandidate.h.

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

int reco::LeafCandidate::status_
protected

status word

Definition at line 318 of file LeafCandidate.h.

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

Point reco::LeafCandidate::vertex_
protected