#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 |
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 |
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) | |
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... | |
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 |
template<typename , typename , typename > | |
struct | component |
class | ShallowCloneCandidate |
class | ShallowClonePtrCandidate |
Definition at line 14 of file PackedCandidate.h.
collection of daughter candidates
Definition at line 17 of file PackedCandidate.h.
typedef unsigned int pat::PackedCandidate::index |
Definition at line 27 of file PackedCandidate.h.
Lorentz vector.
Definition at line 19 of file PackedCandidate.h.
point in the space
Definition at line 23 of file PackedCandidate.h.
Lorentz vector.
Definition at line 21 of file PackedCandidate.h.
point in the space
Definition at line 25 of file PackedCandidate.h.
Enumerator specifying the.
Enumerator | |
---|---|
validHitInFirstPixelBarrelLayer | |
noLostInnerHits | |
oneLostInnerHit | |
moreLostInnerHits |
Definition at line 287 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 233 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 245 of file PackedCandidate.h.
|
protected |
Enumerator | |
---|---|
assignmentQualityMask | |
assignmentQualityShift | |
trackHighPurityMask | |
trackHighPurityShift | |
lostInnerHitsMask | |
lostInnerHitsShift | |
muonFlagsMask | |
muonFlagsShift |
Definition at line 434 of file PackedCandidate.h.
|
inline |
default constructor
Definition at line 30 of file PackedCandidate.h.
Referenced by clone().
|
inlineexplicit |
Definition at line 37 of file PackedCandidate.h.
References packBoth().
|
inlineexplicit |
Definition at line 49 of file PackedCandidate.h.
References packBoth().
|
inlineexplicit |
Definition at line 62 of file PackedCandidate.h.
References packBoth().
|
virtual |
|
inlinevirtual |
return a pointer to the track if present. otherwise, return a null pointer
Reimplemented from reco::Candidate.
Definition at line 272 of file PackedCandidate.h.
References packedHits_, track_, unpackedTrk_, and unpackTrk().
|
inlinevirtual |
boost vector to boost a Lorentz vector to the particle center of mass system
Implements reco::Candidate.
Definition at line 125 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 101 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 329 of file PackedCandidate.h.
References PackedCandidate().
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 224 of file PackedCandidate.cc.
|
virtual |
return daughter at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 246 of file PackedCandidate.cc.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 238 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
virtual |
return daughter with a specified role name
Implements reco::Candidate.
Definition at line 232 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
dxy with respect to the PV ref
Definition at line 252 of file PackedCandidate.h.
References dxy_, and maybeUnpackBoth().
Referenced by PuppiProducer::produce().
|
virtual |
dxy with respect to another point
Definition at line 120 of file PackedCandidate.cc.
References funct::cos(), and funct::sin().
|
inlinevirtual |
uncertainty on dxy
Reimplemented from reco::Candidate.
Definition at line 265 of file PackedCandidate.h.
References dxydxy_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
dz with respect to the PV[ipv]
Definition at line 254 of file PackedCandidate.h.
References dz_, maybeUnpackBoth(), and pvRefKey_.
Referenced by reco::PFMETProducerMVA::chargedFracInCone(), reco::PFMETProducerMVA::computePFCandidateInfo(), fromPV(), and PuppiProducer::produce().
|
virtual |
dz with respect to another point
Definition at line 124 of file PackedCandidate.cc.
References funct::cos(), and funct::sin().
|
inlinevirtual |
dz with respect to the PV ref
Definition at line 256 of file PackedCandidate.h.
References dz_, and maybeUnpackBoth().
Referenced by fromPV().
|
inlinevirtual |
uncertainty on dz
Reimplemented from reco::Candidate.
Definition at line 263 of file PackedCandidate.h.
References dzdz_, maybeUnpackBoth(), and mathSSE::sqrt().
|
inlinevirtual |
energy
Implements reco::Candidate.
Definition at line 129 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
Referenced by PuppiProducer::produce().
|
inlinevirtual |
transverse energy
Implements reco::Candidate.
Definition at line 131 of file PackedCandidate.h.
|
inlinevirtual |
transverse energy squared (use this for cuts)!
Implements reco::Candidate.
Definition at line 133 of file PackedCandidate.h.
|
inlinevirtual |
momentum pseudorapidity
Implements reco::Candidate.
Definition at line 164 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
Referenced by Particle.Particle::__str__(), Muon.Muon::absEffAreaIso(), pat::PATPackedCandidateProducer::candsOrdering(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
virtual |
fill SMatrix
Implements reco::Candidate.
Definition at line 267 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
Referenced by vertexCovariance().
|
inline |
Definition at line 234 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 196 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 200 of file PackedCandidate.cc.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 371 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
Referenced by Muon.Muon::muonID().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 370 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
|
virtual |
|
inline |
Definition at line 293 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
mass
Implements reco::Candidate.
Definition at line 135 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().
|
virtual |
|
inlinevirtual |
mass squared
Implements reco::Candidate.
Definition at line 137 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
|
virtual |
returns ptr to master clone, if existing. Throws an exception unless the concrete Candidate type is ShallowCloneCandidate
Implements reco::Candidate.
Definition at line 190 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 205 of file PackedCandidate.cc.
References Exception.
|
inline |
cast master clone reference to a concrete type
Definition at line 366 of file PackedCandidate.h.
References masterClone().
|
inlineprotected |
Definition at line 393 of file PackedCandidate.h.
References unpack(), unpacked_, unpackedVtx_, and unpackVtx().
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 122 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
|
virtual |
return mother at a given position (throws an exception)
Implements reco::Candidate.
Definition at line 228 of file PackedCandidate.cc.
|
inlinevirtual |
transverse mass
Implements reco::Candidate.
Definition at line 140 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
|
inlinevirtual |
transverse mass squared
Implements reco::Candidate.
Definition at line 142 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
|
virtual |
|
inline |
Definition at line 219 of file PackedCandidate.h.
References numberOfPixelHits(), and packedHits_.
Referenced by pat::PATTrackAndVertexUnpacker::produce().
|
virtual |
|
inline |
Definition at line 218 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 93 of file PackedCandidate.h.
|
protectedvirtual |
check overlap with another Candidate
Implements reco::Candidate.
Definition at line 219 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 127 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
|
inlinevirtual |
four-momentum Lorentz vecto r
Implements reco::Candidate.
Definition at line 118 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), Jet.Jet::jetID(), 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 394 of file PackedCandidate.h.
References pack(), packVtx(), unpack(), and unpackVtx().
Referenced by PackedCandidate(), setP4(), setPz(), and setTrackProperties().
|
protected |
Definition at line 18 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 308 of file PackedCandidate.h.
References pdgId_.
Referenced by Particle.Particle::__str__(), fromPV(), and setPdgId().
|
inlinevirtual |
momentum azimuthal angle
Implements reco::Candidate.
Definition at line 152 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
Referenced by Particle.Particle::__str__().
|
inlinevirtual |
momentum azimuthal angle from the track (normally identical to phi())
Definition at line 154 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 120 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
|
inlinevirtual |
Return reference to a pseudo track made with candidate kinematics, parameterized error for eta,phi,pt and full IP covariance.
Definition at line 269 of file PackedCandidate.h.
References track_, unpackedTrk_, and unpackTrk().
Referenced by PileupJetIdAlgo::computeIdVariables(), and pat::PATTrackAndVertexUnpacker::produce().
|
inlinevirtual |
transverse momentum
Implements reco::Candidate.
Definition at line 150 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValue(), pat::PATPackedCandidateProducer::candsOrdering(), et(), et2(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDTight(), Lepton.Lepton::relEffAreaIso(), Lepton.Lepton::relIso(), and setTrackProperties().
float pat::PackedCandidate::puppiWeight | ( | ) | const |
Set both weights at once (with option for only full PUPPI)
Definition at line 284 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
Referenced by PuppiProducer::produce().
float pat::PackedCandidate::puppiWeightNoLep | ( | ) | const |
Weight from full PUPPI.
Definition at line 286 of file PackedCandidate.cc.
References logintpack::unpack8logClosed().
|
inline |
Definition at line 246 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
Referenced by fromPV().
|
inlinevirtual |
x coordinate of momentum vector
Implements reco::Candidate.
Definition at line 144 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
Referenced by PuppiProducer::produce().
|
inlinevirtual |
y coordinate of momentum vector
Implements reco::Candidate.
Definition at line 146 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
Referenced by PuppiProducer::produce().
|
inlinevirtual |
z coordinate of momentum vector
Implements reco::Candidate.
Definition at line 148 of file PackedCandidate.h.
References p4c_, unpack(), and unpacked_.
Referenced by PuppiProducer::produce(), and setPz().
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 166 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
|
inline |
Definition at line 247 of file PackedCandidate.h.
References assignmentQualityMask, assignmentQualityShift, and qualityFlags_.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Definition at line 296 of file PackedCandidate.h.
References lostInnerHitsMask, lostInnerHitsShift, and qualityFlags_.
|
inlinevirtual |
set particle mass
Implements reco::Candidate.
Definition at line 182 of file PackedCandidate.h.
References visualization-live-secondInstance_cfg::m, p4_, pack(), unpack(), and unpacked_.
|
inlinevirtual |
set mass constraint flag
Implements reco::Candidate.
Definition at line 324 of file PackedCandidate.h.
|
inline |
Definition at line 302 of file PackedCandidate.h.
References muonFlagsMask, muonFlagsShift, and qualityFlags_.
|
inlinevirtual |
set 4-momentum
Implements reco::Candidate.
Definition at line 170 of file PackedCandidate.h.
References maybeUnpackBoth(), p4_, and packBoth().
|
inlinevirtual |
set 4-momentum
Definition at line 176 of file PackedCandidate.h.
References maybeUnpackBoth(), p4(), p4_, and packBoth().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 310 of file PackedCandidate.h.
References pdgId(), and pdgId_.
void pat::PackedCandidate::setPuppiWeight | ( | float | p, |
float | p_nolep = 0.0 |
||
) |
Definition at line 278 of file PackedCandidate.cc.
References logintpack::pack8logClosed().
|
inlinevirtual |
Implements reco::Candidate.
Definition at line 187 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 284 of file PackedCandidate.h.
References qualityFlags_, trackHighPurityMask, and trackHighPurityShift.
|
inlinevirtual |
set impact parameters covariance
Definition at line 195 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 214 of file PackedCandidate.h.
References reco::TrackBase::covariance(), and setTrackProperties().
|
inlinevirtual |
set vertex
Definition at line 230 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 96 of file PackedCandidate.h.
|
inlinevirtual |
status word
Implements reco::Candidate.
Definition at line 312 of file PackedCandidate.h.
References qualityFlags_.
|
inlinevirtual |
momentum polar angle
Implements reco::Candidate.
Definition at line 162 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
Referenced by Tau.Tau::zImpact().
|
inlinevirtual |
electric charge
Implements reco::Candidate.
Definition at line 114 of file PackedCandidate.h.
References charge().
|
inline |
true if the track had the highPurity quality bit
Definition at line 282 of file PackedCandidate.h.
References qualityFlags_, trackHighPurityMask, and trackHighPurityShift.
|
protected |
Definition at line 64 of file PackedCandidate.cc.
References f, MiniFloatConverter::float16to32(), bookConverter::max, 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 129 of file PackedCandidate.cc.
References reco::TrackBase::appendHitPattern(), RecoTauCleanerPlugins::charge, reco::TrackBase::highPurity, AnalysisDataFormats_SUSYBSMObjects::hp, i, reco::TrackBase::loose, visualization-live-secondInstance_cfg::m, TrackingRecHit::missing_inner, ndof, p3, EnergyCorrector::pt, reco::TrackBase::undefAlgorithm, and TrackingRecHit::valid.
Referenced by bestTrack(), and pseudoTrack().
|
protected |
Definition at line 76 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 222 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
Referenced by Tau.Tau::dxy(), and setVertex().
|
virtual |
|
virtual |
(i, j)-th element of error matrix, i, j = 0, ... 2
Implements reco::Candidate.
Definition at line 262 of file PackedCandidate.cc.
References Exception, and edm::errors::UnimplementedFeature.
|
inlinevirtual |
return SMatrix
Reimplemented from reco::Candidate.
Definition at line 347 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 254 of file PackedCandidate.cc.
|
virtual |
chi-squared divided by n.d.o.f.
Implements reco::Candidate.
Definition at line 258 of file PackedCandidate.cc.
|
inline |
Definition at line 249 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 224 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
y coordinate of vertex position
Implements reco::Candidate.
Definition at line 226 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
z coordinate of vertex position
Implements reco::Candidate.
Definition at line 228 of file PackedCandidate.h.
References maybeUnpackBoth(), and vertex_.
|
inlinevirtual |
rapidity
Implements reco::Candidate.
Definition at line 168 of file PackedCandidate.h.
References p4_, unpack(), and unpacked_.
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 430 of file PackedCandidate.h.
|
friend |
Definition at line 429 of file PackedCandidate.h.
|
friend |
Definition at line 431 of file PackedCandidate.h.
|
friend |
Definition at line 432 of file PackedCandidate.h.
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 404 of file PackedCandidate.h.
Referenced by phiAtVtx().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 404 of file PackedCandidate.h.
Referenced by dxy().
|
mutableprotected |
IP covariance.
Definition at line 420 of file PackedCandidate.h.
Referenced by dxyError(), and setTrackProperties().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
Definition at line 404 of file PackedCandidate.h.
Referenced by dz(), and dzAssociatedPV().
|
mutableprotected |
Definition at line 420 of file PackedCandidate.h.
Referenced by dzError(), and setTrackProperties().
|
static |
long lived flag
Definition at line 316 of file PackedCandidate.h.
|
static |
do mass constraint flag
Definition at line 322 of file PackedCandidate.h.
|
protected |
track quality information
Definition at line 423 of file PackedCandidate.h.
Referenced by setTrackProperties().
|
mutableprotected |
|
mutableprotected |
Definition at line 401 of file PackedCandidate.h.
Referenced by boostToCM(), energy(), et(), et2(), momentum(), p(), p4(), px(), py(), pz(), and setPz().
|
protected |
Definition at line 388 of file PackedCandidate.h.
|
protected |
Definition at line 387 of file PackedCandidate.h.
|
protected |
Definition at line 388 of file PackedCandidate.h.
|
protected |
Definition at line 387 of file PackedCandidate.h.
|
protected |
Definition at line 388 of file PackedCandidate.h.
|
protected |
Definition at line 386 of file PackedCandidate.h.
|
protected |
Definition at line 386 of file PackedCandidate.h.
|
protected |
Definition at line 386 of file PackedCandidate.h.
|
protected |
Definition at line 385 of file PackedCandidate.h.
|
protected |
Definition at line 385 of file PackedCandidate.h.
|
protected |
Definition at line 385 of file PackedCandidate.h.
|
protected |
Definition at line 384 of file PackedCandidate.h.
|
protected |
Definition at line 421 of file PackedCandidate.h.
Referenced by bestTrack(), numberOfHits(), numberOfPixelHits(), and setTrackProperties().
|
protected |
Definition at line 384 of file PackedCandidate.h.
|
protected |
Definition at line 384 of file PackedCandidate.h.
|
protected |
Weight from PUPPI removing leptons.
Definition at line 384 of file PackedCandidate.h.
|
protected |
Definition at line 397 of file PackedCandidate.h.
|
protected |
Definition at line 398 of file PackedCandidate.h.
|
protected |
PDG identifier.
Definition at line 408 of file PackedCandidate.h.
Referenced by charge(), pdgId(), and setPdgId().
|
protected |
Definition at line 412 of file PackedCandidate.h.
Referenced by dz(), and vertexRef().
|
protected |
Use these to build a Ref to primary vertex.
Definition at line 411 of file PackedCandidate.h.
Referenced by vertexRef().
|
protected |
Definition at line 409 of file PackedCandidate.h.
Referenced by isGlobalMuon(), isStandAloneMuon(), lostInnerHits(), pvAssociationQuality(), setAssociationQuality(), setLostInnerHits(), setMuonID(), setTrackHighPurity(), status(), and trackHighPurity().
|
mutableprotected |
Definition at line 406 of file PackedCandidate.h.
Referenced by bestTrack(), and pseudoTrack().
|
mutableprotected |
Definition at line 414 of file PackedCandidate.h.
Referenced by boostToCM(), energy(), eta(), mass(), massSqr(), maybeUnpackBoth(), momentum(), mt(), mtSqr(), p(), p4(), phi(), polarP4(), pt(), px(), py(), pz(), rapidity(), setMass(), theta(), and y().
|
mutableprotected |
Definition at line 418 of file PackedCandidate.h.
Referenced by bestTrack(), and pseudoTrack().
|
mutableprotected |
Definition at line 416 of file PackedCandidate.h.
Referenced by maybeUnpackBoth().
|
mutableprotected |
vertex position
Definition at line 403 of file PackedCandidate.h.
Referenced by setVertex(), vertex(), vx(), vy(), and vz().