#include <PackedCandidate.h>
Public Types | |
typedef reco::CandidateCollection | daughters |
collection of daughter candidates More... | |
typedef unsigned int | index |
typedef math::XYZTLorentzVector | LorentzVector |
Lorentz vector. More... | |
enum | LostInnerHits { validHitInFirstPixelBarrelLayer =-1, noLostInnerHits =0, oneLostInnerHit =1, moreLostInnerHits =2 } |
Enumerator specifying the. More... | |
typedef math::XYZPoint | Point |
point in the space More... | |
typedef math::PtEtaPhiMLorentzVector | PolarLorentzVector |
Lorentz vector. More... | |
enum | PVAssoc { NoPV =0, PVLoose =1, PVTight =2, PVUsedInFit =3 } |
This refers to the association to PV=ipv. >=PVLoose corresponds to JME definition, >=PVTight to isolation definition. More... | |
enum | PVAssociationQuality { NotReconstructedPrimary =0, OtherDeltaZ =1, CompatibilityBTag =4, CompatibilityDz =5, UsedInFitLoose =6, UsedInFitTight =7 } |
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 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... | |
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) |
set impact parameters covariance More... | |
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... | |
virtual double | theta () const |
momentum polar angle More... | |
virtual int | threeCharge () const |
electric charge More... | |
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 479 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 425 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 437 of file PackedCandidate.h.
|
protected |
Enumerator | |
---|---|
assignmentQualityMask | |
assignmentQualityShift | |
trackHighPurityMask | |
trackHighPurityShift | |
lostInnerHitsMask | |
lostInnerHitsShift | |
muonFlagsMask | |
muonFlagsShift |
Definition at line 630 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 464 of file PackedCandidate.h.
References packedHits_, track_, and unpackTrk().
|
inlinevirtual |
boost vector to boost a Lorentz vector to the particle center of mass system
Implements reco::Candidate.
Definition at line 317 of file PackedCandidate.h.
References p4c_, and unpack().
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 293 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 521 of file PackedCandidate.h.
References PackedCandidate().
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 255 of file PackedCandidate.cc.
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 277 of file PackedCandidate.cc.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 269 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 263 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
dxy with respect to the PV ref
Definition at line 444 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 457 of file PackedCandidate.h.
References dxydxy_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
dz with respect to the PV[ipv]
Definition at line 446 of file PackedCandidate.h.
References dz_, maybeUnpackBoth(), and pvRefKey_.
Referenced by reco::PFMETProducerMVA::chargedFracInCone(), 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 448 of file PackedCandidate.h.
References dz_, and maybeUnpackBoth().
Referenced by fromPV().
|
inlinevirtual |
uncertainty on dz
Reimplemented from reco::Candidate.
Definition at line 455 of file PackedCandidate.h.
References dzdz_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
energy
Implements reco::Candidate.
Definition at line 321 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce().
|
inlinevirtual |
transverse energy
Implements reco::Candidate.
Definition at line 323 of file PackedCandidate.h.
|
inlinevirtual |
transverse energy squared (use this for cuts)!
Implements reco::Candidate.
Definition at line 325 of file PackedCandidate.h.
|
inlinevirtual |
momentum pseudorapidity
Implements reco::Candidate.
Definition at line 356 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), pat::PATPackedCandidateProducer::candsOrdering(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
virtual |
fill SMatrix
Implements reco::Candidate.
Definition at line 298 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
Referenced by vertexCovariance().
|
inline |
Definition at line 426 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 CandidateBoostedDoubleSecondaryVertexComputer::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 227 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 231 of file PackedCandidate.cc.
|
inline |
Set the fraction of Ecal and Hcal needed for HF and neutral hadrons.
Definition at line 577 of file PackedCandidate.h.
References hcalFraction_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 563 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
Referenced by Muon.Muon::muonID().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 562 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
|
virtual |
|
inline |
Definition at line 485 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
mass
Implements reco::Candidate.
Definition at line 327 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 329 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 221 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 236 of file PackedCandidate.cc.
References Exception.
|
inline |
cast master clone reference to a concrete type
Definition at line 558 of file PackedCandidate.h.
References masterClone().
|
inlineprotected |
Definition at line 592 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 314 of file PackedCandidate.h.
References p4c_, and unpack().
|
virtual |
return mother at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 259 of file PackedCandidate.cc.
|
inlinevirtual |
transverse mass
Implements reco::Candidate.
Definition at line 332 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
inlinevirtual |
transverse mass squared
Implements reco::Candidate.
Definition at line 334 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
virtual |
|
inline |
Definition at line 411 of file PackedCandidate.h.
References numberOfPixelHits(), and packedHits_.
Referenced by pat::PATTrackAndVertexUnpacker::produce().
|
virtual |
|
inline |
Definition at line 410 of file PackedCandidate.h.
References packedHits_.
Referenced by numberOfHits().
|
inlinevirtual |
return the number of source Candidates ( the candidates used to construct this Candidate)
Implements reco::Candidate.
Definition at line 285 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_, packedM_, packedPhi_, packedPt_, packedPuppiweight_, packedPuppiweightNoLepDiff_, pdgId_, polarP4(), pvRefKey_, pvRefProd_, qualityFlags_, track_, vertex(), and vertex_.
|
inline |
Definition at line 221 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_, packedM_, packedPhi_, packedPt_, packedPuppiweight_, packedPuppiweightNoLepDiff_, pdgId_, pvRefKey_, pvRefProd_, qualityFlags_, track_, and vertex_.
|
protectedvirtual |
check overlap with another Candidate
Implements reco::Candidate.
Definition at line 250 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 319 of file PackedCandidate.h.
References p4c_, and unpack().
|
inlinevirtual |
four-momentum Lorentz vecto r
Implements reco::Candidate.
Definition at line 310 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), Jet.Jet::jetID(), operator=(), 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 593 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 500 of file PackedCandidate.h.
References pdgId_.
Referenced by Particle.Particle::__str__(), fromPV(), and setPdgId().
|
inlinevirtual |
momentum azimuthal angle
Implements reco::Candidate.
Definition at line 344 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__().
|
inlinevirtual |
momentum azimuthal angle from the track (normally identical to phi())
Definition at line 346 of file PackedCandidate.h.
References dphi_, M_PI, maybeUnpackBoth(), p4_, and run_regression::ret.
|
inlinevirtual |
four-momentum Lorentz vector
Implements reco::Candidate.
Definition at line 312 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 461 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 342 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), pat::PATPackedCandidateProducer::candsOrdering(), et(), et2(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), 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 315 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
Referenced by PuppiProducer::produce().
float pat::PackedCandidate::puppiWeightNoLep | ( | ) | const |
Weight from full PUPPI.
Definition at line 317 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
|
inline |
Definition at line 438 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
Referenced by fromPV().
|
inlinevirtual |
x coordinate of momentum vector
Implements reco::Candidate.
Definition at line 336 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce().
|
inlinevirtual |
y coordinate of momentum vector
Implements reco::Candidate.
Definition at line 338 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce().
|
inlinevirtual |
z coordinate of momentum vector
Implements reco::Candidate.
Definition at line 340 of file PackedCandidate.h.
References p4c_, and unpack().
Referenced by PuppiProducer::produce(), and setPz().
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 358 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
|
inline |
Definition at line 439 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
|
inlinevirtual |
void pat::PackedCandidate::setHcalFraction | ( | float | p | ) |
Weight from PUPPI removing leptons.
Definition at line 319 of file PackedCandidate.cc.
References AlCaHLTBitMon_ParallelJobs::p.
|
inlinevirtual |
|
inline |
Definition at line 488 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
set particle mass
Implements reco::Candidate.
Definition at line 374 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 516 of file PackedCandidate.h.
|
inline |
Definition at line 494 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
set 4-momentum
Implements reco::Candidate.
Definition at line 362 of file PackedCandidate.h.
References maybeUnpackBoth(), p4_, and packBoth().
Referenced by Jet.Jet::setCorrP4().
|
inlinevirtual |
set 4-momentum
Definition at line 368 of file PackedCandidate.h.
References maybeUnpackBoth(), p4(), p4_, and packBoth().
Referenced by Jet.Jet::setCorrP4().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 502 of file PackedCandidate.h.
References pdgId(), and pdgId_.
void pat::PackedCandidate::setPuppiWeight | ( | float | p, |
float | p_nolep = 0.0 |
||
) |
Definition at line 309 of file PackedCandidate.cc.
References logintpack::pack8logClosed().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 379 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 476 of file PackedCandidate.h.
References qualityFlags_, trackHighPurityMask, and trackHighPurityShift.
|
inlinevirtual |
set impact parameters covariance
Definition at line 387 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_, and pt().
Referenced by setTrackProperties().
|
inlinevirtual |
Definition at line 406 of file PackedCandidate.h.
References reco::TrackBase::covariance(), and setTrackProperties().
|
inlinevirtual |
set vertex
Definition at line 422 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 288 of file PackedCandidate.h.
|
inlinevirtual |
status word
Implements reco::Candidate.
Definition at line 504 of file PackedCandidate.h.
References qualityFlags_.
|
inlinevirtual |
momentum polar angle
Implements reco::Candidate.
Definition at line 354 of file PackedCandidate.h.
References p4_, p4c_, and unpack().
Referenced by Tau.Tau::zImpact().
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 306 of file PackedCandidate.h.
References charge().
|
inline |
true if the track had the highPurity quality bit
Definition at line 474 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, EnergyCorrector::pt, StripSubdetector::TIB, 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 414 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 293 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
return SMatrix
Reimplemented from reco::Candidate.
Definition at line 539 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 285 of file PackedCandidate.cc.
|
virtual |
chi-squared divided by n.d.o.f.
Implements reco::Candidate.
Definition at line 289 of file PackedCandidate.cc.
|
inline |
Definition at line 441 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 416 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
y coordinate of vertex position
Implements reco::Candidate.
Definition at line 418 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
z coordinate of vertex position
Implements reco::Candidate.
Definition at line 420 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 360 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 626 of file PackedCandidate.h.
|
friend |
Fraction of Ecal and Hcal for HF and neutral hadrons.
Definition at line 581 of file PackedCandidate.h.
|
friend |
Definition at line 625 of file PackedCandidate.h.
|
friend |
Definition at line 627 of file PackedCandidate.h.
|
friend |
Definition at line 628 of file PackedCandidate.h.
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 605 of file PackedCandidate.h.
Referenced by operator=(), and phiAtVtx().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 605 of file PackedCandidate.h.
Referenced by dxy(), and operator=().
|
mutableprotected |
IP covariance.
Definition at line 616 of file PackedCandidate.h.
Referenced by dxyError(), operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
Definition at line 605 of file PackedCandidate.h.
Referenced by dz(), dzAssociatedPV(), and operator=().
|
mutableprotected |
Definition at line 616 of file PackedCandidate.h.
Referenced by dzError(), operator=(), and setTrackProperties().
|
protected |
Definition at line 598 of file PackedCandidate.h.
Referenced by hcalFraction(), and operator=().
|
static |
long lived flag
Definition at line 508 of file PackedCandidate.h.
|
static |
do mass constraint flag
Definition at line 514 of file PackedCandidate.h.
|
protected |
track quality information
Definition at line 619 of file PackedCandidate.h.
Referenced by operator=(), and setTrackProperties().
|
mutableprotected |
the four vector
Definition at line 601 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 602 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 587 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 586 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 587 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 586 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 587 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 585 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 585 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 585 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 584 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 584 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 584 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 583 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 617 of file PackedCandidate.h.
Referenced by bestTrack(), numberOfHits(), numberOfPixelHits(), operator=(), and setTrackProperties().
|
protected |
Definition at line 583 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 583 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 583 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 596 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
Definition at line 597 of file PackedCandidate.h.
Referenced by operator=().
|
protected |
PDG identifier.
Definition at line 609 of file PackedCandidate.h.
Referenced by charge(), operator=(), pdgId(), and setPdgId().
|
protected |
Definition at line 613 of file PackedCandidate.h.
Referenced by dz(), operator=(), and vertexRef().
|
protected |
Use these to build a Ref to primary vertex.
Definition at line 612 of file PackedCandidate.h.
Referenced by operator=(), and vertexRef().
|
protected |
Definition at line 610 of file PackedCandidate.h.
Referenced by isGlobalMuon(), isStandAloneMuon(), lostInnerHits(), operator=(), pvAssociationQuality(), setAssociationQuality(), setLostInnerHits(), setMuonID(), setTrackHighPurity(), status(), and trackHighPurity().
|
mutableprotected |
Definition at line 607 of file PackedCandidate.h.
Referenced by bestTrack(), operator=(), and pseudoTrack().
|
mutableprotected |
vertex position
Definition at line 604 of file PackedCandidate.h.
Referenced by maybeUnpackBoth(), operator=(), packBoth(), setVertex(), vertex(), vx(), vy(), and vz().