#include <PackedCandidate.h>
Public Member Functions | |
virtual const reco::Track * | bestTrack () const |
return a pointer to the track if present. otherwise, return a null pointer More... | |
virtual Vector | boostToCM () const |
virtual int | charge () const |
electric charge More... | |
virtual PackedCandidate * | clone () const |
returns a clone of the Candidate object More... | |
virtual const reco::Candidate * | daughter (size_type) const |
return daughter at a given position (throws an exception) More... | |
virtual reco::Candidate * | daughter (size_type) |
return daughter at a given position (throws an exception) More... | |
virtual reco::Candidate * | daughter (const std::string &s) |
return daughter with a specified role name More... | |
virtual const reco::Candidate * | daughter (const std::string &s) const |
return daughter with a specified role name More... | |
virtual float | dxy () const |
dxy with respect to the PV ref More... | |
virtual float | dxy (const Point &p) const |
dxy with respect to another point More... | |
virtual float | dxyError () const |
uncertainty on dxy More... | |
virtual float | dz (size_t ipv=0) const |
dz with respect to the PV[ipv] More... | |
virtual float | dz (const Point &p) const |
dz with respect to another point More... | |
virtual float | dzAssociatedPV () const |
dz with respect to the PV ref More... | |
virtual float | dzError () const |
uncertainty on dz More... | |
virtual double | energy () const |
energy More... | |
double | et () const |
transverse energy More... | |
double | et2 () const |
transverse energy squared (use this for cuts)! More... | |
virtual double | eta () const |
momentum pseudorapidity More... | |
virtual void | fillVertexCovariance (CovarianceMatrix &v) const |
fill SMatrix More... | |
const PVAssoc | fromPV (size_t ipv=0) const |
virtual bool | hasMasterClone () const |
virtual bool | hasMasterClonePtr () const |
float | hcalFraction () const |
Set the fraction of Ecal and Hcal needed for HF and neutral hadrons. More... | |
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 |
virtual bool | longLived () const |
is long lived? More... | |
LostInnerHits | lostInnerHits () const |
virtual double | mass () const |
mass More... | |
virtual bool | massConstraint () const |
do mass constraint? More... | |
virtual double | massSqr () const |
mass squared More... | |
virtual const reco::CandidateBaseRef & | masterClone () const |
virtual const reco::CandidatePtr & | masterClonePtr () 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 reco::Candidate * | mother (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... | |
virtual size_t | numberOfDaughters () const |
number of daughters More... | |
int | numberOfHits () const |
virtual size_t | numberOfMothers () const |
number of mothers More... | |
int | numberOfPixelHits () const |
virtual size_t | numberOfSourceCandidatePtrs () const |
PackedCandidate & | operator= (const PackedCandidate &iOther) |
PackedCandidate & | operator= (PackedCandidate &&iOther) |
virtual double | p () const |
magnitude of momentum vector More... | |
virtual const LorentzVector & | p4 () const |
four-momentum Lorentz vecto r More... | |
PackedCandidate () | |
default constructor More... | |
PackedCandidate (const reco::Candidate &c, const reco::VertexRefProd &pvRefProd, reco::VertexRef::key_type pvRefKey) | |
PackedCandidate (const PolarLorentzVector &p4, const Point &vtx, float phiAtVtx, int pdgId, const reco::VertexRefProd &pvRefProd, reco::VertexRef::key_type pvRefKey) | |
PackedCandidate (const LorentzVector &p4, const Point &vtx, float phiAtVtx, int pdgId, const reco::VertexRefProd &pvRefProd, reco::VertexRef::key_type pvRefKey) | |
PackedCandidate (const PackedCandidate &iOther) | |
PackedCandidate (PackedCandidate &&iOther) | |
virtual int | pdgId () const |
PDG identifier. More... | |
virtual double | phi () const |
momentum azimuthal angle More... | |
virtual float | phiAtVtx () const |
momentum azimuthal angle from the track (normally identical to phi()) More... | |
int | pixelLayersWithMeasurement () const |
virtual const PolarLorentzVector & | polarP4 () const |
four-momentum Lorentz vector More... | |
virtual const reco::Track & | pseudoTrack () const |
Return reference to a pseudo track made with candidate kinematics, parameterized error for eta,phi,pt and full IP covariance. More... | |
virtual double | pt () const |
transverse momentum More... | |
float | puppiWeight () const |
Set both weights at once (with option for only full PUPPI) More... | |
float | puppiWeightNoLep () const |
Weight from full PUPPI. More... | |
const PVAssociationQuality | pvAssociationQuality () const |
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... | |
void | setAssociationQuality (PVAssociationQuality q) |
virtual void | setCharge (int charge) |
set electric charge More... | |
void | setHcalFraction (float p) |
Weight from PUPPI removing leptons. More... | |
virtual void | setLongLived () |
set long lived flag More... | |
void | setLostInnerHits (LostInnerHits hits) |
virtual void | setMass (double m) |
set particle mass More... | |
virtual void | setMassConstraint () |
set mass constraint flag More... | |
void | setMuonID (bool isStandAlone, bool isGlobal) |
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) |
void | setPuppiWeight (float p, float p_nolep=0.0) |
virtual void | setPz (double pz) |
virtual void | setStatus (int status) |
set status word More... | |
virtual void | setThreeCharge (int threecharge) |
set electric charge More... | |
void | setTrackHighPurity (bool highPurity) |
set to true if the track had the highPurity quality bit More... | |
virtual void | setTrackProperties (const reco::Track &tk, const reco::Track::CovarianceMatrix &covariance) |
virtual void | setTrackProperties (const reco::Track &tk) |
virtual void | setVertex (const Point &vertex) |
set vertex More... | |
virtual reco::CandidatePtr | sourceCandidatePtr (size_type i) const |
virtual int | status () const |
status word More... | |
int | stripLayersWithMeasurement () const |
virtual double | theta () const |
momentum polar angle More... | |
virtual int | threeCharge () const |
electric charge More... | |
int | trackerLayersWithMeasurement () const |
bool | trackHighPurity () const |
true if the track had the highPurity quality bit More... | |
virtual const Point & | vertex () 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... | |
const reco::VertexRef | vertexRef () const |
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 | ~PackedCandidate () |
destructor More... | |
Public Member Functions inherited from reco::Candidate | |
const_iterator | begin () const |
first daughter const_iterator More... | |
iterator | begin () |
first daughter iterator More... | |
Candidate () | |
default constructor More... | |
const_iterator | end () const |
last daughter const_iterator More... | |
iterator | end () |
last daughter iterator 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... | |
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 | setP4 (const PolarLorentzVector &p4)=0 |
set 4-momentum More... | |
virtual void | setSourceCandidatePtr (const CandidatePtr &ptr) |
Set the ptr to the source Candidate. More... | |
virtual void | setVertex (const Point &vertex)=0 |
set vertex More... | |
virtual | ~Candidate () |
destructor More... | |
Static Public Attributes | |
static const unsigned int | longLivedTag = 0 |
long lived flag More... | |
static const unsigned int | massConstraintTag = 0 |
do mass constraint flag More... | |
Protected Types | |
enum | qualityFlagsShiftsAndMasks { assignmentQualityMask = 0x7, assignmentQualityShift = 0, trackHighPurityMask = 0x8, trackHighPurityShift =3, lostInnerHitsMask = 0x30, lostInnerHitsShift =4, muonFlagsMask = 0x0600, muonFlagsShift =9 } |
Protected Member Functions | |
void | maybeUnpackBoth () const |
virtual bool | overlap (const reco::Candidate &) const |
check overlap with another Candidate More... | |
void | pack (bool unpackAfterwards=true) |
void | packBoth () |
void | packVtx (bool unpackAfterwards=true) |
void | unpack () const |
void | unpackTrk () const |
void | unpackVtx () const |
Friends | |
class | ::OverlapChecker |
class | ::testPackedCandidate |
Fraction of Ecal and Hcal for HF and neutral hadrons. More... | |
template<typename , typename , typename > | |
struct | component |
class | ShallowCloneCandidate |
class | ShallowClonePtrCandidate |
Definition at line 20 of file PackedCandidate.h.
collection of daughter candidates
Definition at line 23 of file PackedCandidate.h.
typedef unsigned int pat::PackedCandidate::index |
Definition at line 33 of file PackedCandidate.h.
Lorentz vector.
Definition at line 25 of file PackedCandidate.h.
point in the space
Definition at line 29 of file PackedCandidate.h.
Lorentz vector.
Definition at line 27 of file PackedCandidate.h.
point in the space
Definition at line 31 of file PackedCandidate.h.
Enumerator specifying the.
Enumerator | |
---|---|
validHitInFirstPixelBarrelLayer | |
noLostInnerHits | |
oneLostInnerHit | |
moreLostInnerHits |
Definition at line 497 of file PackedCandidate.h.
This refers to the association to PV=ipv. >=PVLoose corresponds to JME definition, >=PVTight to isolation definition.
Enumerator | |
---|---|
NoPV | |
PVLoose | |
PVTight | |
PVUsedInFit |
Definition at line 443 of file PackedCandidate.h.
The following contains information about how the association to the PV, given in vertexRef, is obtained.
Enumerator | |
---|---|
NotReconstructedPrimary | |
OtherDeltaZ | |
CompatibilityBTag | |
CompatibilityDz | |
UsedInFitLoose | |
UsedInFitTight |
Definition at line 455 of file PackedCandidate.h.
|
protected |
Enumerator | |
---|---|
assignmentQualityMask | |
assignmentQualityShift | |
trackHighPurityMask | |
trackHighPurityShift | |
lostInnerHitsMask | |
lostInnerHitsShift | |
muonFlagsMask | |
muonFlagsShift |
Definition at line 648 of file PackedCandidate.h.
set impact parameters covariance
Enumerator | |
---|---|
trackPixelHitsMask | |
trackStripHitsMask | |
trackStripHitsShift |
Definition at line 390 of file PackedCandidate.h.
|
inline |
default constructor
Definition at line 36 of file PackedCandidate.h.
Referenced by clone().
|
inlineexplicit |
Definition at line 57 of file PackedCandidate.h.
References packBoth().
|
inlineexplicit |
Definition at line 70 of file PackedCandidate.h.
References packBoth().
|
inlineexplicit |
Definition at line 84 of file PackedCandidate.h.
References packBoth().
|
inline |
Definition at line 100 of file PackedCandidate.h.
|
inline |
Definition at line 126 of file PackedCandidate.h.
|
virtual |
destructor
Definition at line 137 of file PackedCandidate.cc.
|
inlinevirtual |
return a pointer to the track if present. otherwise, return a null pointer
Reimplemented from reco::Candidate.
Definition at line 482 of file PackedCandidate.h.
References packedHits_, packedLayers_, track_, and unpackTrk().
Referenced by Muon.Muon::ptErr().
|
inlinevirtual |
boost vector to boost a Lorentz vector to the particle center of mass system
Implements reco::Candidate.
Definition at line 319 of file PackedCandidate.h.
References p4c_, and unpack().
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 295 of file PackedCandidate.h.
References funct::abs(), and pdgId_.
Referenced by pat::PATPackedCandidateProducer::candsOrdering(), pat::PATTrackAndVertexUnpacker::produce(), and threeCharge().
|
inlinevirtual |
returns a clone of the Candidate object
Implements reco::Candidate.
Definition at line 539 of file PackedCandidate.h.
References PackedCandidate().
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 286 of file PackedCandidate.cc.
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 308 of file PackedCandidate.cc.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 300 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 294 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
dxy with respect to the PV ref
Definition at line 462 of file PackedCandidate.h.
References dxy_, and maybeUnpackBoth().
Referenced by Electron.Electron::cutBasedId(), and PuppiProducer::produce().
|
virtual |
dxy with respect to another point
Definition at line 145 of file PackedCandidate.cc.
References funct::cos(), phi(), and funct::sin().
Referenced by Electron.Electron::cutBasedId().
|
inlinevirtual |
uncertainty on dxy
Reimplemented from reco::Candidate.
Definition at line 475 of file PackedCandidate.h.
References dxydxy_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
dz with respect to the PV[ipv]
Definition at line 464 of file PackedCandidate.h.
References dz_, maybeUnpackBoth(), and pvRefKey_.
Referenced by reco::PFMETProducerMVA::chargedFracInCone(), PileupJetIdAlgo::computeIdVariables(), reco::PFMETProducerMVA::computePFCandidateInfo(), Electron.Electron::cutBasedId(), fromPV(), and PuppiProducer::produce().
|
virtual |
dz with respect to another point
Definition at line 150 of file PackedCandidate.cc.
References funct::cos(), phi(), and funct::sin().
Referenced by Electron.Electron::cutBasedId().
|
inlinevirtual |
dz with respect to the PV ref
Definition at line 466 of file PackedCandidate.h.
References dz_, and maybeUnpackBoth().
Referenced by fromPV().
|
inlinevirtual |
uncertainty on dz
Reimplemented from reco::Candidate.
Definition at line 473 of file PackedCandidate.h.
References dzdz_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
energy
Implements reco::Candidate.
Definition at line 323 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce(), and Jet.Jet::rawEnergy().
|
inlinevirtual |
transverse energy
Implements reco::Candidate.
Definition at line 325 of file PackedCandidate.h.
|
inlinevirtual |
transverse energy squared (use this for cuts)!
Implements reco::Candidate.
Definition at line 327 of file PackedCandidate.h.
|
inlinevirtual |
momentum pseudorapidity
Implements reco::Candidate.
Definition at line 358 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), pat::PATPackedCandidateProducer::candsOrdering(), METAnalyzer::fillMonitorElement(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
virtual |
fill SMatrix
Implements reco::Candidate.
Definition at line 329 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
Referenced by vertexCovariance().
|
inline |
Definition at line 444 of file PackedCandidate.h.
References funct::abs(), CompatibilityBTag, dz(), dzAssociatedPV(), edm::Ref< C, T, F >::key(), NoPV, or, pdgId(), pvAssociationQuality(), PVLoose, PVTight, PVUsedInFit, UsedInFitLoose, UsedInFitTight, and vertexRef().
Referenced by PileupJetIdAlgo::computeIdVariables(), pat::PATTrackAndVertexUnpacker::produce(), PuppiProducer::produce(), and BoostedDoubleSVProducer::setTracksPV().
|
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.
Definition at line 258 of file PackedCandidate.cc.
|
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.
Definition at line 262 of file PackedCandidate.cc.
|
inline |
Set the fraction of Ecal and Hcal needed for HF and neutral hadrons.
Definition at line 595 of file PackedCandidate.h.
References hcalFraction_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 581 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
Referenced by Muon.Muon::muonID().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 580 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
|
virtual |
|
inline |
Definition at line 503 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
mass
Implements reco::Candidate.
Definition at line 329 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().
|
virtual |
|
inlinevirtual |
mass squared
Implements reco::Candidate.
Definition at line 331 of file PackedCandidate.h.
References visualization-live-secondInstance_cfg::m, p4_, p4c_, and unpack().
|
virtual |
returns ptr to master clone, if existing. Throws an exception unless the concrete Candidate type is ShallowCloneCandidate
Implements reco::Candidate.
Definition at line 252 of file PackedCandidate.cc.
References Exception.
Referenced by masterRef().
|
virtual |
returns ptr to master clone, if existing. Throws an exception unless the concrete Candidate type is ShallowClonePtrCandidate
Implements reco::Candidate.
Definition at line 267 of file PackedCandidate.cc.
References Exception.
|
inline |
cast master clone reference to a concrete type
Definition at line 576 of file PackedCandidate.h.
References masterClone().
|
inlineprotected |
Definition at line 610 of file PackedCandidate.h.
References p4c_, unpack(), unpackVtx(), and vertex_.
Referenced by dxy(), dxyError(), dz(), dzAssociatedPV(), dzError(), phiAtVtx(), setP4(), setPz(), setVertex(), vertex(), vx(), vy(), and vz().
|
inlinevirtual |
spatial momentum vector
Implements reco::Candidate.
Definition at line 316 of file PackedCandidate.h.
References p4c_, and unpack().
|
virtual |
return mother at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 290 of file PackedCandidate.cc.
|
inlinevirtual |
transverse mass
Implements reco::Candidate.
Definition at line 334 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
inlinevirtual |
transverse mass squared
Implements reco::Candidate.
Definition at line 336 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
virtual |
|
inline |
Definition at line 426 of file PackedCandidate.h.
References numberOfPixelHits(), packedHits_, stripLayersWithMeasurement(), and trackStripHitsShift.
Referenced by pat::PATTrackAndVertexUnpacker::produce().
|
virtual |
|
inline |
Definition at line 425 of file PackedCandidate.h.
References packedHits_, pixelLayersWithMeasurement(), and trackPixelHitsMask.
Referenced by numberOfHits().
|
inlinevirtual |
return the number of source Candidates ( the candidates used to construct this Candidate)
Implements reco::Candidate.
Definition at line 287 of file PackedCandidate.h.
|
inline |
Definition at line 152 of file PackedCandidate.h.
References detadeta_, dlambdadz_, dphi_, dphidphi_, dphidxy_, dptdpt_, dxy_, dxydxy_, dxydz_, dz_, dzdz_, hcalFraction_, normalizedChi2_, p4(), p4_, p4c_, packedCovarianceDetaDeta_, packedCovarianceDlambdaDz_, packedCovarianceDphiDphi_, packedCovarianceDphiDxy_, packedCovarianceDptDpt_, packedCovarianceDxyDxy_, packedCovarianceDxyDz_, packedCovarianceDzDz_, packedDPhi_, packedDxy_, packedDz_, packedEta_, packedHits_, packedLayers_, packedM_, packedPhi_, packedPt_, packedPuppiweight_, packedPuppiweightNoLepDiff_, pdgId_, polarP4(), pvRefKey_, pvRefProd_, qualityFlags_, track_, vertex(), and vertex_.
|
inline |
Definition at line 222 of file PackedCandidate.h.
References detadeta_, dlambdadz_, dphi_, dphidphi_, dphidxy_, dptdpt_, dxy_, dxydxy_, dxydz_, dz_, dzdz_, hcalFraction_, normalizedChi2_, p4_, p4c_, packedCovarianceDetaDeta_, packedCovarianceDlambdaDz_, packedCovarianceDphiDphi_, packedCovarianceDphiDxy_, packedCovarianceDptDpt_, packedCovarianceDxyDxy_, packedCovarianceDxyDz_, packedCovarianceDzDz_, packedDPhi_, packedDxy_, packedDz_, packedEta_, packedHits_, packedLayers_, packedM_, packedPhi_, packedPt_, packedPuppiweight_, packedPuppiweightNoLepDiff_, pdgId_, pvRefKey_, pvRefProd_, qualityFlags_, track_, and vertex_.
|
protectedvirtual |
check overlap with another Candidate
Implements reco::Candidate.
Definition at line 281 of file PackedCandidate.cc.
References RecoTauCleanerPlugins::charge, reco::Candidate::charge(), reco::Candidate::p4(), p4, and reco::Candidate::vertex().
|
inlinevirtual |
magnitude of momentum vector
Implements reco::Candidate.
Definition at line 321 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by Electron.Electron::ptErr().
|
inlinevirtual |
four-momentum Lorentz vecto r
Implements reco::Candidate.
Definition at line 312 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), operator=(), Lepton.Lepton::p4WithFSR(), and setP4().
|
protected |
Definition at line 10 of file PackedCandidate.cc.
References MiniFloatConverter::float32to16(), bookConverter::max, and timeUnitHelper::unpack().
Referenced by pyrootRender.interactiveRender::draw(), packBoth(), and setMass().
|
inlineprotected |
Definition at line 611 of file PackedCandidate.h.
References p4_, p4c_, pack(), packVtx(), unpack(), unpackVtx(), and vertex_.
Referenced by PackedCandidate(), setP4(), setPz(), and setTrackProperties().
|
protected |
Definition at line 22 of file PackedCandidate.cc.
References EnergyCorrector::c, funct::cos(), f, MiniFloatConverter::float32to16(), edm::Ref< C, T, F >::isNonnull(), bookConverter::max, logintpack::pack8log(), logintpack::pack8logCeil(), MetAnalyzer::pv(), alignCSCRings::s, and funct::sin().
Referenced by packBoth(), and setVertex().
|
inlinevirtual |
PDG identifier.
Implements reco::Candidate.
Definition at line 518 of file PackedCandidate.h.
References pdgId_.
Referenced by Particle.Particle::__str__(), METAnalyzer::fillMonitorElement(), fromPV(), and setPdgId().
|
inlinevirtual |
momentum azimuthal angle
Implements reco::Candidate.
Definition at line 346 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), and METAnalyzer::fillMonitorElement().
|
inlinevirtual |
momentum azimuthal angle from the track (normally identical to phi())
Definition at line 348 of file PackedCandidate.h.
References dphi_, M_PI, maybeUnpackBoth(), p4_, and runTheMatrix::ret.
|
inline |
Definition at line 427 of file PackedCandidate.h.
References packedLayers_, and trackPixelHitsMask.
Referenced by numberOfPixelHits(), and trackerLayersWithMeasurement().
|
inlinevirtual |
four-momentum Lorentz vector
Implements reco::Candidate.
Definition at line 314 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by operator=().
|
inlinevirtual |
Return reference to a pseudo track made with candidate kinematics, parameterized error for eta,phi,pt and full IP covariance.
Definition at line 479 of file PackedCandidate.h.
References track_, and unpackTrk().
Referenced by PileupJetIdAlgo::computeIdVariables(), and pat::PATTrackAndVertexUnpacker::produce().
|
inlinevirtual |
transverse momentum
Implements reco::Candidate.
Definition at line 344 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), pat::PATPackedCandidateProducer::candsOrdering(), et(), et2(), METAnalyzer::fillMonitorElement(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), Electron.Electron::ptErr(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), and setTrackProperties().
float pat::PackedCandidate::puppiWeight | ( | ) | const |
Set both weights at once (with option for only full PUPPI)
Definition at line 346 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
Referenced by METAnalyzer::fillMonitorElement(), and PuppiProducer::produce().
float pat::PackedCandidate::puppiWeightNoLep | ( | ) | const |
Weight from full PUPPI.
Definition at line 348 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
Referenced by METAnalyzer::fillMonitorElement().
|
inline |
Definition at line 456 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
Referenced by fromPV().
|
inlinevirtual |
x coordinate of momentum vector
Implements reco::Candidate.
Definition at line 338 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce().
|
inlinevirtual |
y coordinate of momentum vector
Implements reco::Candidate.
Definition at line 340 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce().
|
inlinevirtual |
z coordinate of momentum vector
Implements reco::Candidate.
Definition at line 342 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce(), and setPz().
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 360 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
inline |
Definition at line 457 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
|
inlinevirtual |
void pat::PackedCandidate::setHcalFraction | ( | float | p | ) |
Weight from PUPPI removing leptons.
Definition at line 350 of file PackedCandidate.cc.
References AlCaHLTBitMon_ParallelJobs::p.
|
inlinevirtual |
|
inline |
Definition at line 506 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
set particle mass
Implements reco::Candidate.
Definition at line 376 of file PackedCandidate.h.
References visualization-live-secondInstance_cfg::m, p4_, p4c_, pack(), and unpack().
|
inlinevirtual |
set mass constraint flag
Implements reco::Candidate.
Definition at line 534 of file PackedCandidate.h.
|
inline |
Definition at line 512 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
set 4-momentum
Implements reco::Candidate.
Definition at line 364 of file PackedCandidate.h.
References maybeUnpackBoth(), p4_, and packBoth().
Referenced by Jet.Jet::setCorrP4().
|
inlinevirtual |
set 4-momentum
Definition at line 370 of file PackedCandidate.h.
References maybeUnpackBoth(), p4(), p4_, and packBoth().
Referenced by Jet.Jet::setCorrP4().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 520 of file PackedCandidate.h.
References pdgId(), and pdgId_.
void pat::PackedCandidate::setPuppiWeight | ( | float | p, |
float | p_nolep = 0.0 |
||
) |
Definition at line 340 of file PackedCandidate.cc.
References logintpack::pack8logClosed().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 381 of file PackedCandidate.h.
References maybeUnpackBoth(), p4_, p4c_, packBoth(), and pz().
|
inlinevirtual |
|
inlinevirtual |
|
inline |
set to true if the track had the highPurity quality bit
Definition at line 494 of file PackedCandidate.h.
References qualityFlags_, trackHighPurityMask, and trackHighPurityShift.
|
inlinevirtual |
Definition at line 394 of file PackedCandidate.h.
References detadeta_, dlambdadz_, dphidphi_, dphidxy_, dptdpt_, dxydxy_, dxydz_, dzdz_, reco::TrackBase::hitPattern(), reco::TrackBase::normalizedChi2(), normalizedChi2_, reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), packBoth(), packedHits_, packedLayers_, reco::HitPattern::pixelLayersWithMeasurement(), pt(), reco::HitPattern::stripLayersWithMeasurement(), trackPixelHitsMask, trackStripHitsMask, and trackStripHitsShift.
Referenced by setTrackProperties().
|
inlinevirtual |
Definition at line 421 of file PackedCandidate.h.
References reco::TrackBase::covariance(), and setTrackProperties().
|
inlinevirtual |
set vertex
Definition at line 440 of file PackedCandidate.h.
References maybeUnpackBoth(), packVtx(), vertex(), and vertex_.
|
inlinevirtual |
return a Ptr to one of the source Candidates ( the candidates used to construct this Candidate)
Reimplemented from reco::Candidate.
Definition at line 290 of file PackedCandidate.h.
|
inlinevirtual |
status word
Implements reco::Candidate.
Definition at line 522 of file PackedCandidate.h.
References qualityFlags_.
|
inline |
Definition at line 428 of file PackedCandidate.h.
References packedLayers_, and trackStripHitsShift.
Referenced by numberOfHits(), and trackerLayersWithMeasurement().
|
inlinevirtual |
momentum polar angle
Implements reco::Candidate.
Definition at line 356 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Tau.Tau::zImpact().
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 308 of file PackedCandidate.h.
References charge().
|
inline |
Definition at line 429 of file PackedCandidate.h.
References pixelLayersWithMeasurement(), and stripLayersWithMeasurement().
|
inline |
true if the track had the highPurity quality bit
Definition at line 492 of file PackedCandidate.h.
References qualityFlags_, trackHighPurityMask, and trackHighPurityShift.
|
protected |
Definition at line 71 of file PackedCandidate.cc.
References MiniFloatConverter::float16to32(), bookConverter::max, p4, phi(), EnergyCorrector::pt, edm::shift, and jetcorrextractor::sign().
Referenced by boostToCM(), energy(), eta(), mass(), massSqr(), maybeUnpackBoth(), momentum(), mt(), mtSqr(), p(), p4(), packBoth(), phi(), polarP4(), pt(), px(), py(), pz(), rapidity(), setMass(), theta(), and y().
|
protected |
Definition at line 156 of file PackedCandidate.cc.
References RecoTauCleanerPlugins::charge, reco::TrackBase::highPurity, AnalysisDataFormats_SUSYBSMObjects::hp, i, reco::TrackBase::loose, visualization-live-secondInstance_cfg::m, TrackingRecHit::missing_inner, ndof, p3, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, EnergyCorrector::pt, StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, reco::TrackBase::undefAlgorithm, and TrackingRecHit::valid.
Referenced by bestTrack(), and pseudoTrack().
|
protected |
Definition at line 93 of file PackedCandidate.cc.
References EnergyCorrector::c, funct::cos(), MiniFloatConverter::float16to32(), edm::Ref< C, T, F >::isNonnull(), bookConverter::max, phi(), MetAnalyzer::pv(), alignCSCRings::s, funct::sin(), and logintpack::unpack8log().
Referenced by maybeUnpackBoth(), and packBoth().
|
inlinevirtual |
vertex position
Implements reco::Candidate.
Definition at line 432 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
Referenced by Tau.Tau::dxy(), operator=(), and setVertex().
|
virtual |
|
virtual |
(i, j)-th element of error matrix, i, j = 0, ... 2
Implements reco::Candidate.
Definition at line 324 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
return SMatrix
Reimplemented from reco::Candidate.
Definition at line 557 of file PackedCandidate.h.
References fillVertexCovariance(), and visualization-live-secondInstance_cfg::m.
|
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.
Definition at line 316 of file PackedCandidate.cc.
|
virtual |
chi-squared divided by n.d.o.f.
Implements reco::Candidate.
Definition at line 320 of file PackedCandidate.cc.
|
inline |
Definition at line 459 of file PackedCandidate.h.
References pvRefKey_, and pvRefProd_.
Referenced by pat::PATPackedCandidateProducer::candsOrdering(), fromPV(), and PuppiProducer::produce().
|
inlinevirtual |
x coordinate of vertex position
Implements reco::Candidate.
Definition at line 434 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
y coordinate of vertex position
Implements reco::Candidate.
Definition at line 436 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
z coordinate of vertex position
Implements reco::Candidate.
Definition at line 438 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 362 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
friend |
Definition at line 644 of file PackedCandidate.h.
|
friend |
Fraction of Ecal and Hcal for HF and neutral hadrons.
Definition at line 599 of file PackedCandidate.h.
|
friend |
Definition at line 643 of file PackedCandidate.h.
|
friend |
Definition at line 645 of file PackedCandidate.h.
|
friend |
Definition at line 646 of file PackedCandidate.h.
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 623 of file PackedCandidate.h.
Referenced by operator=(), and phiAtVtx().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 623 of file PackedCandidate.h.
Referenced by dxy(), and operator=().
|
mutableprotected |
IP covariance.
Definition at line 634 of file PackedCandidate.h.
Referenced by dxyError(), operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 623 of file PackedCandidate.h.
Referenced by dz(), dzAssociatedPV(), and operator=().
|
mutableprotected |
Definition at line 634 of file PackedCandidate.h.
Referenced by dzError(), operator=(), and setTrackProperties().
|
protected |
Definition at line 616 of file PackedCandidate.h.
Referenced by hcalFraction(), and operator=().
|
static |
long lived flag
Definition at line 526 of file PackedCandidate.h.
|
static |
do mass constraint flag
Definition at line 532 of file PackedCandidate.h.
|
protected |
track quality information
Definition at line 637 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
the four vector
Definition at line 619 of file PackedCandidate.h.
Referenced by eta(), mass(), massSqr(), mt(), mtSqr(), operator=(), packBoth(), phi(), phiAtVtx(), polarP4(), pt(), rapidity(), setMass(), setP4(), setPz(), theta(), and y().
|
mutableprotected |
Definition at line 620 of file PackedCandidate.h.
Referenced by boostToCM(), energy(), et(), et2(), eta(), mass(), massSqr(), maybeUnpackBoth(), momentum(), mt(), mtSqr(), operator=(), p(), p4(), packBoth(), phi(), polarP4(), pt(), px(), py(), pz(), rapidity(), setMass(), setPz(), theta(), and y().
|
protected |
Definition at line 605 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 604 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 605 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 604 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 605 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 603 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 603 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 603 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 602 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 602 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 602 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 601 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 635 of file PackedCandidate.h.
Referenced by bestTrack(), numberOfHits(), numberOfPixelHits(), operator=(), and setTrackProperties().
|
protected |
Definition at line 635 of file PackedCandidate.h.
Referenced by bestTrack(), operator=(), pixelLayersWithMeasurement(), setTrackProperties(), and stripLayersWithMeasurement().
|
protected |
Definition at line 601 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 601 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 601 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 614 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 615 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
PDG identifier.
Definition at line 627 of file PackedCandidate.h.
Referenced by charge(), operator=(), pdgId(), and setPdgId().
|
protected |
Definition at line 631 of file PackedCandidate.h.
Referenced by dz(), operator=(), and vertexRef().
|
protected |
Use these to build a Ref to primary vertex.
Definition at line 630 of file PackedCandidate.h.
Referenced by operator=(), and vertexRef().
|
protected |
Definition at line 628 of file PackedCandidate.h.
Referenced by isGlobalMuon(), isStandAloneMuon(), lostInnerHits(), operator=(), pvAssociationQuality(), setAssociationQuality(), setLostInnerHits(), setMuonID(), setTrackHighPurity(), status(), and trackHighPurity().
|
mutableprotected |
Definition at line 625 of file PackedCandidate.h.
Referenced by bestTrack(), operator=(), and pseudoTrack().
|
mutableprotected |
vertex position
Definition at line 622 of file PackedCandidate.h.
Referenced by maybeUnpackBoth(), operator=(), packBoth(), setVertex(), vertex(), vx(), vy(), and vz().