CMS 3D CMS Logo

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

#include <PackedCandidate.h>

Inheritance diagram for pat::PackedCandidate:
reco::Candidate

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
}
 
enum  trackHitShiftsAndMasks { trackPixelHitsMask = 7, trackStripHitsMask = 31, trackStripHitsShift = 3 }
 set impact parameters covariance More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

virtual const reco::TrackbestTrack () 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 PackedCandidateclone () const
 returns a clone of the Candidate object More...
 
virtual const reco::Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual reco::Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual reco::Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const reco::Candidatedaughter (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::CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const reco::Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
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
 
PackedCandidateoperator= (const PackedCandidate &iOther)
 
PackedCandidateoperator= (PackedCandidate &&iOther)
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () 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 PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual const reco::TrackpseudoTrack () 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 Pointvertex () const
 vertex position More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
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
 

Protected Attributes

float detadeta_
 
float dlambdadz_
 
float dphi_
 
float dphidphi_
 
float dphidxy_
 
float dptdpt_
 
float dxy_
 
float dxydxy_
 IP covariance. More...
 
float dxydz_
 
float dz_
 
float dzdz_
 
int8_t hcalFraction_
 
uint8_t normalizedChi2_
 track quality information More...
 
std::atomic< PolarLorentzVector * > p4_
 the four vector More...
 
std::atomic< LorentzVector * > p4c_
 
int8_t packedCovarianceDetaDeta_
 
int8_t packedCovarianceDlambdaDz_
 
int8_t packedCovarianceDphiDphi_
 
int8_t packedCovarianceDphiDxy_
 
int8_t packedCovarianceDptDpt_
 
uint16_t packedCovarianceDxyDxy_
 
uint16_t packedCovarianceDxyDz_
 
uint16_t packedCovarianceDzDz_
 
uint16_t packedDPhi_
 
uint16_t packedDxy_
 
uint16_t packedDz_
 
uint16_t packedEta_
 
uint8_t packedHits_
 
uint8_t packedLayers_
 
uint16_t packedM_
 
uint16_t packedPhi_
 
uint16_t packedPt_
 
int8_t packedPuppiweight_
 
int8_t packedPuppiweightNoLepDiff_
 
int pdgId_
 PDG identifier. More...
 
reco::VertexRef::key_type pvRefKey_
 
reco::VertexRefProd pvRefProd_
 Use these to build a Ref to primary vertex. More...
 
uint16_t qualityFlags_
 
std::atomic< reco::Track * > track_
 reco::Track More...
 
std::atomic< Point * > vertex_
 vertex position More...
 

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
 

Detailed Description

Definition at line 20 of file PackedCandidate.h.

Member Typedef Documentation

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.

Member Enumeration Documentation

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.

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.

Constructor & Destructor Documentation

pat::PackedCandidate::PackedCandidate ( )
inline

default constructor

Definition at line 36 of file PackedCandidate.h.

pat::PackedCandidate::PackedCandidate ( const reco::Candidate c,
const reco::VertexRefProd pvRefProd,
reco::VertexRef::key_type  pvRefKey 
)
inlineexplicit

Definition at line 57 of file PackedCandidate.h.

pat::PackedCandidate::PackedCandidate ( const PolarLorentzVector p4,
const Point vtx,
float  phiAtVtx,
int  pdgId,
const reco::VertexRefProd pvRefProd,
reco::VertexRef::key_type  pvRefKey 
)
inlineexplicit

Definition at line 70 of file PackedCandidate.h.

pat::PackedCandidate::PackedCandidate ( const LorentzVector p4,
const Point vtx,
float  phiAtVtx,
int  pdgId,
const reco::VertexRefProd pvRefProd,
reco::VertexRef::key_type  pvRefKey 
)
inlineexplicit

Definition at line 84 of file PackedCandidate.h.

pat::PackedCandidate::PackedCandidate ( const PackedCandidate iOther)
inline

Definition at line 100 of file PackedCandidate.h.

pat::PackedCandidate::PackedCandidate ( PackedCandidate &&  iOther)
inline

Definition at line 126 of file PackedCandidate.h.

pat::PackedCandidate::~PackedCandidate ( )
virtual

destructor

Definition at line 137 of file PackedCandidate.cc.

Member Function Documentation

virtual const reco::Track* pat::PackedCandidate::bestTrack ( ) const
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.

virtual Vector pat::PackedCandidate::boostToCM ( ) const
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.

virtual int pat::PackedCandidate::charge ( ) const
inlinevirtual

electric charge

Implements reco::Candidate.

Definition at line 295 of file PackedCandidate.h.

Referenced by pat::PATTrackAndVertexUnpacker::produce().

virtual PackedCandidate* pat::PackedCandidate::clone ( void  ) const
inlinevirtual

returns a clone of the Candidate object

Implements reco::Candidate.

Definition at line 539 of file PackedCandidate.h.

const reco::Candidate * pat::PackedCandidate::daughter ( size_type  ) const
virtual

return daughter at a given position (throws an exception)

Implements reco::Candidate.

Definition at line 286 of file PackedCandidate.cc.

reco::Candidate * pat::PackedCandidate::daughter ( size_type  )
virtual

return daughter at a given position (throws an exception)

Implements reco::Candidate.

Definition at line 308 of file PackedCandidate.cc.

reco::Candidate * pat::PackedCandidate::daughter ( const std::string &  s)
virtual

return daughter with a specified role name

Implements reco::Candidate.

Definition at line 300 of file PackedCandidate.cc.

const reco::Candidate * pat::PackedCandidate::daughter ( const std::string &  s) const
virtual

return daughter with a specified role name

Implements reco::Candidate.

Definition at line 294 of file PackedCandidate.cc.

virtual float pat::PackedCandidate::dxy ( ) const
inlinevirtual

dxy with respect to the PV ref

Definition at line 462 of file PackedCandidate.h.

float pat::PackedCandidate::dxy ( const Point p) const
virtual

dxy with respect to another point

Definition at line 145 of file PackedCandidate.cc.

virtual float pat::PackedCandidate::dxyError ( ) const
inlinevirtual

uncertainty on dxy

Reimplemented from reco::Candidate.

Definition at line 475 of file PackedCandidate.h.

virtual float pat::PackedCandidate::dz ( size_t  ipv = 0) const
inlinevirtual

dz with respect to the PV[ipv]

Definition at line 464 of file PackedCandidate.h.

float pat::PackedCandidate::dz ( const Point p) const
virtual

dz with respect to another point

Definition at line 150 of file PackedCandidate.cc.

virtual float pat::PackedCandidate::dzAssociatedPV ( ) const
inlinevirtual

dz with respect to the PV ref

Definition at line 466 of file PackedCandidate.h.

virtual float pat::PackedCandidate::dzError ( ) const
inlinevirtual

uncertainty on dz

Reimplemented from reco::Candidate.

Definition at line 473 of file PackedCandidate.h.

virtual double pat::PackedCandidate::energy ( ) const
inlinevirtual

energy

Implements reco::Candidate.

Definition at line 323 of file PackedCandidate.h.

double pat::PackedCandidate::et ( ) const
inlinevirtual

transverse energy

Implements reco::Candidate.

Definition at line 325 of file PackedCandidate.h.

double pat::PackedCandidate::et2 ( ) const
inlinevirtual

transverse energy squared (use this for cuts)!

Implements reco::Candidate.

Definition at line 327 of file PackedCandidate.h.

virtual double pat::PackedCandidate::eta ( ) const
inlinevirtual

momentum pseudorapidity

Implements reco::Candidate.

Definition at line 358 of file PackedCandidate.h.

Referenced by Particle.Particle::__str__().

void pat::PackedCandidate::fillVertexCovariance ( CovarianceMatrix v) const
virtual

fill SMatrix

Implements reco::Candidate.

Definition at line 329 of file PackedCandidate.cc.

const PVAssoc pat::PackedCandidate::fromPV ( size_t  ipv = 0) const
inline

Definition at line 444 of file PackedCandidate.h.

Referenced by pat::PATTrackAndVertexUnpacker::produce().

bool pat::PackedCandidate::hasMasterClone ( ) const
virtual

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

Implements reco::Candidate.

Definition at line 258 of file PackedCandidate.cc.

bool pat::PackedCandidate::hasMasterClonePtr ( ) const
virtual

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

Implements reco::Candidate.

Definition at line 262 of file PackedCandidate.cc.

float pat::PackedCandidate::hcalFraction ( ) const
inline

Set the fraction of Ecal and Hcal needed for HF and neutral hadrons.

Definition at line 595 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isCaloMuon ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 583 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isConvertedPhoton ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 585 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isElectron ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 578 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isGlobalMuon ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 581 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isJet ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 586 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isMuon ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 579 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isPhoton ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 584 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isStandAloneMuon ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 580 of file PackedCandidate.h.

virtual bool pat::PackedCandidate::isTrackerMuon ( ) const
inlinevirtual

Implements reco::Candidate.

Definition at line 582 of file PackedCandidate.h.

bool pat::PackedCandidate::longLived ( ) const
virtual

is long lived?

Implements reco::Candidate.

Definition at line 335 of file PackedCandidate.cc.

LostInnerHits pat::PackedCandidate::lostInnerHits ( ) const
inline

Definition at line 503 of file PackedCandidate.h.

virtual double pat::PackedCandidate::mass ( ) const
inlinevirtual

mass

Implements reco::Candidate.

Definition at line 329 of file PackedCandidate.h.

Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().

bool pat::PackedCandidate::massConstraint ( ) const
virtual

do mass constraint?

Implements reco::Candidate.

Definition at line 337 of file PackedCandidate.cc.

virtual double pat::PackedCandidate::massSqr ( ) const
inlinevirtual

mass squared

Implements reco::Candidate.

Definition at line 331 of file PackedCandidate.h.

const reco::CandidateBaseRef & pat::PackedCandidate::masterClone ( ) const
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.

const reco::CandidatePtr & pat::PackedCandidate::masterClonePtr ( ) const
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.

template<typename Ref >
Ref pat::PackedCandidate::masterRef ( ) const
inline

cast master clone reference to a concrete type

Definition at line 576 of file PackedCandidate.h.

void pat::PackedCandidate::maybeUnpackBoth ( ) const
inlineprotected

Definition at line 610 of file PackedCandidate.h.

virtual Vector pat::PackedCandidate::momentum ( ) const
inlinevirtual

spatial momentum vector

Implements reco::Candidate.

Definition at line 316 of file PackedCandidate.h.

const reco::Candidate * pat::PackedCandidate::mother ( size_type  ) const
virtual

return mother at a given position (throws an exception)

Implements reco::Candidate.

Definition at line 290 of file PackedCandidate.cc.

virtual double pat::PackedCandidate::mt ( ) const
inlinevirtual

transverse mass

Implements reco::Candidate.

Definition at line 334 of file PackedCandidate.h.

virtual double pat::PackedCandidate::mtSqr ( ) const
inlinevirtual

transverse mass squared

Implements reco::Candidate.

Definition at line 336 of file PackedCandidate.h.

size_t pat::PackedCandidate::numberOfDaughters ( ) const
virtual

number of daughters

Implements reco::Candidate.

Definition at line 273 of file PackedCandidate.cc.

int pat::PackedCandidate::numberOfHits ( ) const
inline

Definition at line 426 of file PackedCandidate.h.

Referenced by pat::PATTrackAndVertexUnpacker::produce().

size_t pat::PackedCandidate::numberOfMothers ( ) const
virtual

number of mothers

Implements reco::Candidate.

Definition at line 277 of file PackedCandidate.cc.

int pat::PackedCandidate::numberOfPixelHits ( ) const
inline

Definition at line 425 of file PackedCandidate.h.

virtual size_t pat::PackedCandidate::numberOfSourceCandidatePtrs ( ) const
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.

PackedCandidate& pat::PackedCandidate::operator= ( const PackedCandidate iOther)
inline

Definition at line 152 of file PackedCandidate.h.

PackedCandidate& pat::PackedCandidate::operator= ( PackedCandidate &&  iOther)
inline

Definition at line 222 of file PackedCandidate.h.

bool pat::PackedCandidate::overlap ( const reco::Candidate o) const
protectedvirtual

check overlap with another Candidate

Implements reco::Candidate.

Definition at line 281 of file PackedCandidate.cc.

virtual double pat::PackedCandidate::p ( ) const
inlinevirtual

magnitude of momentum vector

Implements reco::Candidate.

Definition at line 321 of file PackedCandidate.h.

virtual const LorentzVector& pat::PackedCandidate::p4 ( ) const
inlinevirtual

four-momentum Lorentz vecto r

Implements reco::Candidate.

Definition at line 312 of file PackedCandidate.h.

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), and Lepton.Lepton::p4WithFSR().

void pat::PackedCandidate::pack ( bool  unpackAfterwards = true)
protected

Definition at line 10 of file PackedCandidate.cc.

Referenced by pyrootRender.interactiveRender::draw().

void pat::PackedCandidate::packBoth ( )
inlineprotected

Definition at line 611 of file PackedCandidate.h.

void pat::PackedCandidate::packVtx ( bool  unpackAfterwards = true)
protected

Definition at line 22 of file PackedCandidate.cc.

virtual int pat::PackedCandidate::pdgId ( ) const
inlinevirtual

PDG identifier.

Implements reco::Candidate.

Definition at line 518 of file PackedCandidate.h.

Referenced by Particle.Particle::__str__().

virtual double pat::PackedCandidate::phi ( ) const
inlinevirtual

momentum azimuthal angle

Implements reco::Candidate.

Definition at line 346 of file PackedCandidate.h.

Referenced by Particle.Particle::__str__().

virtual float pat::PackedCandidate::phiAtVtx ( ) const
inlinevirtual

momentum azimuthal angle from the track (normally identical to phi())

Definition at line 348 of file PackedCandidate.h.

int pat::PackedCandidate::pixelLayersWithMeasurement ( ) const
inline

Definition at line 427 of file PackedCandidate.h.

virtual const PolarLorentzVector& pat::PackedCandidate::polarP4 ( ) const
inlinevirtual

four-momentum Lorentz vector

Implements reco::Candidate.

Definition at line 314 of file PackedCandidate.h.

virtual const reco::Track& pat::PackedCandidate::pseudoTrack ( ) const
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.

Referenced by pat::PATTrackAndVertexUnpacker::produce().

virtual double pat::PackedCandidate::pt ( void  ) const
inlinevirtual
float pat::PackedCandidate::puppiWeight ( ) const

Set both weights at once (with option for only full PUPPI)

Definition at line 346 of file PackedCandidate.cc.

float pat::PackedCandidate::puppiWeightNoLep ( ) const

Weight from full PUPPI.

Definition at line 348 of file PackedCandidate.cc.

const PVAssociationQuality pat::PackedCandidate::pvAssociationQuality ( ) const
inline

Definition at line 456 of file PackedCandidate.h.

virtual double pat::PackedCandidate::px ( ) const
inlinevirtual

x coordinate of momentum vector

Implements reco::Candidate.

Definition at line 338 of file PackedCandidate.h.

virtual double pat::PackedCandidate::py ( ) const
inlinevirtual

y coordinate of momentum vector

Implements reco::Candidate.

Definition at line 340 of file PackedCandidate.h.

virtual double pat::PackedCandidate::pz ( ) const
inlinevirtual

z coordinate of momentum vector

Implements reco::Candidate.

Definition at line 342 of file PackedCandidate.h.

virtual double pat::PackedCandidate::rapidity ( ) const
inlinevirtual

rapidity

Implements reco::Candidate.

Definition at line 360 of file PackedCandidate.h.

void pat::PackedCandidate::setAssociationQuality ( PVAssociationQuality  q)
inline

Definition at line 457 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setCharge ( int  charge)
inlinevirtual

set electric charge

Implements reco::Candidate.

Definition at line 306 of file PackedCandidate.h.

void pat::PackedCandidate::setHcalFraction ( float  p)

Weight from PUPPI removing leptons.

Definition at line 350 of file PackedCandidate.cc.

virtual void pat::PackedCandidate::setLongLived ( )
inlinevirtual

set long lived flag

Implements reco::Candidate.

Definition at line 528 of file PackedCandidate.h.

void pat::PackedCandidate::setLostInnerHits ( LostInnerHits  hits)
inline

Definition at line 506 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setMass ( double  m)
inlinevirtual

set particle mass

Implements reco::Candidate.

Definition at line 376 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setMassConstraint ( )
inlinevirtual

set mass constraint flag

Implements reco::Candidate.

Definition at line 534 of file PackedCandidate.h.

void pat::PackedCandidate::setMuonID ( bool  isStandAlone,
bool  isGlobal 
)
inline

Definition at line 512 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setP4 ( const LorentzVector p4)
inlinevirtual

set 4-momentum

Implements reco::Candidate.

Definition at line 364 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setP4 ( const PolarLorentzVector p4)
inlinevirtual

set 4-momentum

Definition at line 370 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setPdgId ( int  pdgId)
inlinevirtual

Implements reco::Candidate.

Definition at line 520 of file PackedCandidate.h.

void pat::PackedCandidate::setPuppiWeight ( float  p,
float  p_nolep = 0.0 
)

Definition at line 340 of file PackedCandidate.cc.

virtual void pat::PackedCandidate::setPz ( double  pz)
inlinevirtual

Implements reco::Candidate.

Definition at line 381 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setStatus ( int  status)
inlinevirtual

set status word

Implements reco::Candidate.

Definition at line 524 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setThreeCharge ( int  threecharge)
inlinevirtual

set electric charge

Implements reco::Candidate.

Definition at line 310 of file PackedCandidate.h.

void pat::PackedCandidate::setTrackHighPurity ( bool  highPurity)
inline

set to true if the track had the highPurity quality bit

Definition at line 494 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setTrackProperties ( const reco::Track tk,
const reco::Track::CovarianceMatrix covariance 
)
inlinevirtual

Definition at line 394 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setTrackProperties ( const reco::Track tk)
inlinevirtual

Definition at line 421 of file PackedCandidate.h.

virtual void pat::PackedCandidate::setVertex ( const Point vertex)
inlinevirtual

set vertex

Definition at line 440 of file PackedCandidate.h.

virtual reco::CandidatePtr pat::PackedCandidate::sourceCandidatePtr ( size_type  i) const
inlinevirtual

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

Reimplemented from reco::Candidate.

Definition at line 290 of file PackedCandidate.h.

virtual int pat::PackedCandidate::status ( ) const
inlinevirtual

status word

Implements reco::Candidate.

Definition at line 522 of file PackedCandidate.h.

int pat::PackedCandidate::stripLayersWithMeasurement ( ) const
inline

Definition at line 428 of file PackedCandidate.h.

virtual double pat::PackedCandidate::theta ( ) const
inlinevirtual

momentum polar angle

Implements reco::Candidate.

Definition at line 356 of file PackedCandidate.h.

Referenced by Tau.Tau::zImpact().

virtual int pat::PackedCandidate::threeCharge ( ) const
inlinevirtual

electric charge

Implements reco::Candidate.

Definition at line 308 of file PackedCandidate.h.

int pat::PackedCandidate::trackerLayersWithMeasurement ( ) const
inline

Definition at line 429 of file PackedCandidate.h.

bool pat::PackedCandidate::trackHighPurity ( ) const
inline

true if the track had the highPurity quality bit

Definition at line 492 of file PackedCandidate.h.

void pat::PackedCandidate::unpack ( ) const
protected

Definition at line 71 of file PackedCandidate.cc.

void pat::PackedCandidate::unpackTrk ( ) const
protected

Definition at line 156 of file PackedCandidate.cc.

void pat::PackedCandidate::unpackVtx ( ) const
protected

Definition at line 93 of file PackedCandidate.cc.

virtual const Point& pat::PackedCandidate::vertex ( ) const
inlinevirtual

vertex position

Implements reco::Candidate.

Definition at line 432 of file PackedCandidate.h.

Referenced by Tau.Tau::dxy().

double pat::PackedCandidate::vertexChi2 ( ) const
virtual

chi-squares

Implements reco::Candidate.

Definition at line 312 of file PackedCandidate.cc.

double pat::PackedCandidate::vertexCovariance ( int  i,
int  j 
) const
virtual

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

Implements reco::Candidate.

Definition at line 324 of file PackedCandidate.cc.

CovarianceMatrix pat::PackedCandidate::vertexCovariance ( ) const
inlinevirtual

return SMatrix

Reimplemented from reco::Candidate.

Definition at line 557 of file PackedCandidate.h.

double pat::PackedCandidate::vertexNdof ( ) const
virtual

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

Implements reco::Candidate.

Definition at line 316 of file PackedCandidate.cc.

double pat::PackedCandidate::vertexNormalizedChi2 ( ) const
virtual

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

Implements reco::Candidate.

Definition at line 320 of file PackedCandidate.cc.

const reco::VertexRef pat::PackedCandidate::vertexRef ( ) const
inline

Definition at line 459 of file PackedCandidate.h.

virtual double pat::PackedCandidate::vx ( ) const
inlinevirtual

x coordinate of vertex position

Implements reco::Candidate.

Definition at line 434 of file PackedCandidate.h.

virtual double pat::PackedCandidate::vy ( ) const
inlinevirtual

y coordinate of vertex position

Implements reco::Candidate.

Definition at line 436 of file PackedCandidate.h.

virtual double pat::PackedCandidate::vz ( ) const
inlinevirtual

z coordinate of vertex position

Implements reco::Candidate.

Definition at line 438 of file PackedCandidate.h.

virtual double pat::PackedCandidate::y ( ) const
inlinevirtual

rapidity

Implements reco::Candidate.

Definition at line 362 of file PackedCandidate.h.

Friends And Related Function Documentation

friend class ::OverlapChecker
friend

Definition at line 644 of file PackedCandidate.h.

friend class ::testPackedCandidate
friend

Fraction of Ecal and Hcal for HF and neutral hadrons.

Definition at line 599 of file PackedCandidate.h.

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

Definition at line 643 of file PackedCandidate.h.

friend class ShallowCloneCandidate
friend

Definition at line 645 of file PackedCandidate.h.

friend class ShallowClonePtrCandidate
friend

Definition at line 646 of file PackedCandidate.h.

Member Data Documentation

float pat::PackedCandidate::detadeta_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dlambdadz_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dphi_
mutableprotected

Definition at line 623 of file PackedCandidate.h.

float pat::PackedCandidate::dphidphi_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dphidxy_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dptdpt_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dxy_
mutableprotected

Definition at line 623 of file PackedCandidate.h.

float pat::PackedCandidate::dxydxy_
mutableprotected

IP covariance.

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dxydz_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

float pat::PackedCandidate::dz_
mutableprotected

Definition at line 623 of file PackedCandidate.h.

float pat::PackedCandidate::dzdz_
mutableprotected

Definition at line 634 of file PackedCandidate.h.

int8_t pat::PackedCandidate::hcalFraction_
protected

Definition at line 616 of file PackedCandidate.h.

const unsigned int pat::PackedCandidate::longLivedTag = 0
static

long lived flag

Definition at line 526 of file PackedCandidate.h.

const unsigned int pat::PackedCandidate::massConstraintTag = 0
static

do mass constraint flag

Definition at line 532 of file PackedCandidate.h.

uint8_t pat::PackedCandidate::normalizedChi2_
protected

track quality information

Definition at line 637 of file PackedCandidate.h.

std::atomic<PolarLorentzVector*> pat::PackedCandidate::p4_
mutableprotected

the four vector

Definition at line 619 of file PackedCandidate.h.

std::atomic<LorentzVector*> pat::PackedCandidate::p4c_
mutableprotected

Definition at line 620 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedCovarianceDetaDeta_
protected

Definition at line 605 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedCovarianceDlambdaDz_
protected

Definition at line 604 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedCovarianceDphiDphi_
protected

Definition at line 605 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedCovarianceDphiDxy_
protected

Definition at line 604 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedCovarianceDptDpt_
protected

Definition at line 605 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedCovarianceDxyDxy_
protected

Definition at line 603 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedCovarianceDxyDz_
protected

Definition at line 603 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedCovarianceDzDz_
protected

Definition at line 603 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedDPhi_
protected

Definition at line 602 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedDxy_
protected

Definition at line 602 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedDz_
protected

Definition at line 602 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedEta_
protected

Definition at line 601 of file PackedCandidate.h.

uint8_t pat::PackedCandidate::packedHits_
protected

Definition at line 635 of file PackedCandidate.h.

uint8_t pat::PackedCandidate::packedLayers_
protected

Definition at line 635 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedM_
protected

Definition at line 601 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedPhi_
protected

Definition at line 601 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::packedPt_
protected

Definition at line 601 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedPuppiweight_
protected

Definition at line 614 of file PackedCandidate.h.

int8_t pat::PackedCandidate::packedPuppiweightNoLepDiff_
protected

Definition at line 615 of file PackedCandidate.h.

int pat::PackedCandidate::pdgId_
protected

PDG identifier.

Definition at line 627 of file PackedCandidate.h.

reco::VertexRef::key_type pat::PackedCandidate::pvRefKey_
protected

Definition at line 631 of file PackedCandidate.h.

reco::VertexRefProd pat::PackedCandidate::pvRefProd_
protected

Use these to build a Ref to primary vertex.

Definition at line 630 of file PackedCandidate.h.

uint16_t pat::PackedCandidate::qualityFlags_
protected

Definition at line 628 of file PackedCandidate.h.

std::atomic<reco::Track*> pat::PackedCandidate::track_
mutableprotected

reco::Track

Definition at line 625 of file PackedCandidate.h.

std::atomic<Point*> pat::PackedCandidate::vertex_
mutableprotected

vertex position

Definition at line 622 of file PackedCandidate.h.