CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
pat::IsolatedTrack Class Reference

#include <IsolatedTrack.h>

Inheritance diagram for pat::IsolatedTrack:
reco::LeafCandidate reco::Candidate

Public Member Functions

const std::vector< uint16_t > & crossedEcalStatus () const
 just the status code part of an EcalChannelStatusCode for all crossed Ecal cells More...
 
const std::vector< uint32_t > & crossedHcalStatus () const
 just the status code part of an HcalChannelStatus for all crossed Hcal cells More...
 
float dEdxPixel () const
 
float dEdxStrip () const
 
float deltaEta () const
 
float deltaPhi () const
 
float dxy () const
 
float dxyError () const
 uncertainty on dxy More...
 
float dz () const
 
float dzError () const
 uncertainty on dz More...
 
int fromPV () const
 
const reco::HitPatternhitPattern () const
 
bool isHighPurityTrack () const
 
bool isLooseTrack () const
 
 IsolatedTrack ()
 
 IsolatedTrack (const PFIsolation &iso, const PFIsolation &miniiso, float caloJetEm, float caloJetHad, const LorentzVector &p4, int charge, int id, float dz, float dxy, float dzError, float dxyError, const reco::HitPattern &hp, float dEdxS, float dEdxP, int fromPV, int tkQual, const std::vector< uint16_t > &ecalst, const std::vector< uint32_t > &hcalst, int dEta, int dPhi, const PackedCandidateRef &pcref)
 
bool isTightTrack () const
 
float matchedCaloJetEmEnergy () const
 
float matchedCaloJetHadEnergy () const
 
const PFIsolationminiPFIsolation () const
 
const PackedCandidateRefpackedCandRef () const
 
const PFIsolationpfIsolationDR03 () const
 
 ~IsolatedTrack ()
 
- Public Member Functions inherited from reco::LeafCandidate
virtual Vector boostToCM () const final
 
virtual int charge () const final
 electric charge More...
 
virtual LeafCandidateclone () const
 returns a clone of the Candidate object More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual double energy () const final
 energy More...
 
virtual double et () const final
 transverse energy More...
 
virtual double et2 () const final
 transverse energy squared (use this for cut!) More...
 
virtual double eta () const final
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
virtual bool longLived () const final
 is long lived? More...
 
virtual double mass () const final
 mass More...
 
virtual bool massConstraint () const final
 do mass constraint? More...
 
virtual double massSqr () const final
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const final
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const final
 transverse mass More...
 
virtual double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
virtual double p () const final
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
virtual int pdgId () const final
 PDG identifier. More...
 
virtual double phi () const final
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
virtual double pt () const final
 transverse momentum More...
 
virtual double px () const final
 x coordinate of momentum vector More...
 
virtual double py () const final
 y coordinate of momentum vector More...
 
virtual double pz () const final
 z coordinate of momentum vector More...
 
virtual double rapidity () const final
 rapidity More...
 
virtual void setCharge (Charge q) final
 set electric charge More...
 
virtual void setLongLived () final
 
virtual void setMass (double m) final
 set particle mass More...
 
virtual void setMassConstraint () final
 
virtual void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) final
 
virtual void setPz (double pz) final
 
virtual void setStatus (int status) final
 set status word More...
 
virtual void setThreeCharge (Charge qx3) final
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const final
 status word More...
 
virtual double theta () const final
 momentum polar angle More...
 
virtual int threeCharge () const final
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) 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 final
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const final
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 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 setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Protected Attributes

std::vector< uint16_t > crossedEcalStatus_
 
std::vector< uint32_t > crossedHcalStatus_
 
float dEdxPixel_
 
float dEdxStrip_
 
int deltaEta_
 
int deltaPhi_
 
float dxy_
 
float dxyError_
 
float dz_
 
float dzError_
 
int fromPV_
 
reco::HitPattern hitPattern_
 
float matchedCaloJetEmEnergy_
 
float matchedCaloJetHadEnergy_
 
PFIsolation miniIsolation_
 
PackedCandidateRef packedCandRef_
 
PFIsolation pfIsolationDR03_
 
int trackQuality_
 

Additional Inherited Members

- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Detailed Description

Definition at line 21 of file IsolatedTrack.h.

Constructor & Destructor Documentation

pat::IsolatedTrack::IsolatedTrack ( )
inline

Definition at line 25 of file IsolatedTrack.h.

25  :
26  LeafCandidate(0, LorentzVector(0,0,0,0)),
30  dz_(0.), dxy_(0.), dzError_(0.), dxyError_(0.), fromPV_(-1), trackQuality_(0),
32  crossedEcalStatus_(std::vector<uint16_t>()),
33  crossedHcalStatus_(std::vector<uint32_t>()),
34  deltaEta_(0), deltaPhi_(0),
PFIsolation pfIsolationDR03_
Definition: IsolatedTrack.h:95
std::vector< uint32_t > crossedHcalStatus_
reco::HitPattern hitPattern_
edm::Ref< pat::PackedCandidateCollection > PackedCandidateRef
PackedCandidateRef packedCandRef_
float matchedCaloJetEmEnergy_
Definition: IsolatedTrack.h:97
float matchedCaloJetHadEnergy_
Definition: IsolatedTrack.h:98
PFIsolation miniIsolation_
Definition: IsolatedTrack.h:96
std::vector< uint16_t > crossedEcalStatus_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: LeafCandidate.h:23
pat::IsolatedTrack::IsolatedTrack ( const PFIsolation iso,
const PFIsolation miniiso,
float  caloJetEm,
float  caloJetHad,
const LorentzVector p4,
int  charge,
int  id,
float  dz,
float  dxy,
float  dzError,
float  dxyError,
const reco::HitPattern hp,
float  dEdxS,
float  dEdxP,
int  fromPV,
int  tkQual,
const std::vector< uint16_t > &  ecalst,
const std::vector< uint32_t > &  hcalst,
int  dEta,
int  dPhi,
const PackedCandidateRef pcref 
)
inlineexplicit

Definition at line 37 of file IsolatedTrack.h.

43  :
44  LeafCandidate(charge, p4, Point(0.,0.,0.), id),
45  pfIsolationDR03_(iso), miniIsolation_(miniiso),
46  matchedCaloJetEmEnergy_(caloJetEm), matchedCaloJetHadEnergy_(caloJetHad),
48  fromPV_(fromPV), trackQuality_(tkQual), dEdxStrip_(dEdxS), dEdxPixel_(dEdxP),
49  hitPattern_(hp),
50  crossedEcalStatus_(ecalst), crossedHcalStatus_(hcalst),
51  deltaEta_(dEta), deltaPhi_(dPhi),
52  packedCandRef_(pcref) {}
float dzError() const
uncertainty on dz
Definition: IsolatedTrack.h:64
PFIsolation pfIsolationDR03_
Definition: IsolatedTrack.h:95
std::vector< uint32_t > crossedHcalStatus_
float dxy() const
Definition: IsolatedTrack.h:65
float dz() const
Definition: IsolatedTrack.h:63
virtual int charge() const final
electric charge
Definition: LeafCandidate.h:91
reco::HitPattern hitPattern_
PackedCandidateRef packedCandRef_
int fromPV() const
Definition: IsolatedTrack.h:68
float matchedCaloJetEmEnergy_
Definition: IsolatedTrack.h:97
float matchedCaloJetHadEnergy_
Definition: IsolatedTrack.h:98
PFIsolation miniIsolation_
Definition: IsolatedTrack.h:96
std::vector< uint16_t > crossedEcalStatus_
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
float dxyError() const
uncertainty on dxy
Definition: IsolatedTrack.h:66
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
pat::IsolatedTrack::~IsolatedTrack ( )
inline

Definition at line 54 of file IsolatedTrack.h.

54 {}

Member Function Documentation

const std::vector<uint16_t>& pat::IsolatedTrack::crossedEcalStatus ( ) const
inline

just the status code part of an EcalChannelStatusCode for all crossed Ecal cells

Definition at line 83 of file IsolatedTrack.h.

References crossedEcalStatus_.

83 { return crossedEcalStatus_; }
std::vector< uint16_t > crossedEcalStatus_
const std::vector<uint32_t>& pat::IsolatedTrack::crossedHcalStatus ( ) const
inline

just the status code part of an HcalChannelStatus for all crossed Hcal cells

Definition at line 85 of file IsolatedTrack.h.

References crossedHcalStatus_.

85 { return crossedHcalStatus_; }
std::vector< uint32_t > crossedHcalStatus_
float pat::IsolatedTrack::dEdxPixel ( ) const
inline

Definition at line 80 of file IsolatedTrack.h.

References dEdxPixel_.

80 { return dEdxPixel_; }
float pat::IsolatedTrack::dEdxStrip ( ) const
inline

Definition at line 79 of file IsolatedTrack.h.

References dEdxStrip_.

79 { return dEdxStrip_; }
float pat::IsolatedTrack::deltaEta ( ) const
inline

difference in eta/phi between initial traj and intersection w/ ecal Values are between +-0.5 with a precision of 0.002

Definition at line 89 of file IsolatedTrack.h.

References deltaEta_, and objects.autophobj::float.

89 { return float(deltaEta_)/500.f; }
float pat::IsolatedTrack::deltaPhi ( ) const
inline

Definition at line 90 of file IsolatedTrack.h.

References deltaPhi_, and objects.autophobj::float.

90 { return float(deltaPhi_)/500.f; }
float pat::IsolatedTrack::dxy ( ) const
inline

Definition at line 65 of file IsolatedTrack.h.

References dxy_.

Referenced by Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dxyPull().

65 { return dxy_; }
float pat::IsolatedTrack::dxyError ( ) const
inlinevirtual

uncertainty on dxy

Reimplemented from reco::Candidate.

Definition at line 66 of file IsolatedTrack.h.

References dxyError_.

66 { return dxyError_; }
float pat::IsolatedTrack::dz ( ) const
inline

Definition at line 63 of file IsolatedTrack.h.

References dz_.

Referenced by Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dzPull().

63 { return dz_; }
float pat::IsolatedTrack::dzError ( ) const
inlinevirtual

uncertainty on dz

Reimplemented from reco::Candidate.

Definition at line 64 of file IsolatedTrack.h.

References dzError_.

64 { return dzError_; }
int pat::IsolatedTrack::fromPV ( ) const
inline

Definition at line 68 of file IsolatedTrack.h.

References fromPV_.

68 { return fromPV_; }
const reco::HitPattern& pat::IsolatedTrack::hitPattern ( ) const
inline

Definition at line 77 of file IsolatedTrack.h.

References hitPattern_.

77 { return hitPattern_; }
reco::HitPattern hitPattern_
bool pat::IsolatedTrack::isHighPurityTrack ( ) const
inline
bool pat::IsolatedTrack::isLooseTrack ( ) const
inline
bool pat::IsolatedTrack::isTightTrack ( ) const
inline
float pat::IsolatedTrack::matchedCaloJetEmEnergy ( ) const
inline

Definition at line 60 of file IsolatedTrack.h.

References matchedCaloJetEmEnergy_.

60 { return matchedCaloJetEmEnergy_; }
float matchedCaloJetEmEnergy_
Definition: IsolatedTrack.h:97
float pat::IsolatedTrack::matchedCaloJetHadEnergy ( ) const
inline

Definition at line 61 of file IsolatedTrack.h.

References matchedCaloJetHadEnergy_.

61 { return matchedCaloJetHadEnergy_; }
float matchedCaloJetHadEnergy_
Definition: IsolatedTrack.h:98
const PFIsolation& pat::IsolatedTrack::miniPFIsolation ( ) const
inline

Definition at line 58 of file IsolatedTrack.h.

References miniIsolation_.

58 { return miniIsolation_; }
PFIsolation miniIsolation_
Definition: IsolatedTrack.h:96
const PackedCandidateRef& pat::IsolatedTrack::packedCandRef ( ) const
inline

Definition at line 92 of file IsolatedTrack.h.

References packedCandRef_.

92 { return packedCandRef_; }
PackedCandidateRef packedCandRef_
const PFIsolation& pat::IsolatedTrack::pfIsolationDR03 ( ) const
inline

Definition at line 56 of file IsolatedTrack.h.

References pfIsolationDR03_.

56 { return pfIsolationDR03_; }
PFIsolation pfIsolationDR03_
Definition: IsolatedTrack.h:95

Member Data Documentation

std::vector<uint16_t> pat::IsolatedTrack::crossedEcalStatus_
protected

Definition at line 106 of file IsolatedTrack.h.

Referenced by crossedEcalStatus().

std::vector<uint32_t> pat::IsolatedTrack::crossedHcalStatus_
protected

Definition at line 107 of file IsolatedTrack.h.

Referenced by crossedHcalStatus().

float pat::IsolatedTrack::dEdxPixel_
protected

Definition at line 102 of file IsolatedTrack.h.

Referenced by dEdxPixel().

float pat::IsolatedTrack::dEdxStrip_
protected

Definition at line 102 of file IsolatedTrack.h.

Referenced by dEdxStrip().

int pat::IsolatedTrack::deltaEta_
protected

Definition at line 108 of file IsolatedTrack.h.

Referenced by deltaEta().

int pat::IsolatedTrack::deltaPhi_
protected

Definition at line 108 of file IsolatedTrack.h.

Referenced by deltaPhi().

float pat::IsolatedTrack::dxy_
protected

Definition at line 99 of file IsolatedTrack.h.

Referenced by dxy().

float pat::IsolatedTrack::dxyError_
protected

Definition at line 99 of file IsolatedTrack.h.

Referenced by dxyError().

float pat::IsolatedTrack::dz_
protected

Definition at line 99 of file IsolatedTrack.h.

Referenced by dz().

float pat::IsolatedTrack::dzError_
protected

Definition at line 99 of file IsolatedTrack.h.

Referenced by dzError().

int pat::IsolatedTrack::fromPV_
protected

Definition at line 100 of file IsolatedTrack.h.

Referenced by fromPV().

reco::HitPattern pat::IsolatedTrack::hitPattern_
protected

Definition at line 104 of file IsolatedTrack.h.

Referenced by hitPattern().

float pat::IsolatedTrack::matchedCaloJetEmEnergy_
protected

Definition at line 97 of file IsolatedTrack.h.

Referenced by matchedCaloJetEmEnergy().

float pat::IsolatedTrack::matchedCaloJetHadEnergy_
protected

Definition at line 98 of file IsolatedTrack.h.

Referenced by matchedCaloJetHadEnergy().

PFIsolation pat::IsolatedTrack::miniIsolation_
protected

Definition at line 96 of file IsolatedTrack.h.

Referenced by miniPFIsolation().

PackedCandidateRef pat::IsolatedTrack::packedCandRef_
protected

Definition at line 110 of file IsolatedTrack.h.

Referenced by packedCandRef().

PFIsolation pat::IsolatedTrack::pfIsolationDR03_
protected

Definition at line 95 of file IsolatedTrack.h.

Referenced by pfIsolationDR03().

int pat::IsolatedTrack::trackQuality_
protected

Definition at line 101 of file IsolatedTrack.h.

Referenced by isHighPurityTrack(), isLooseTrack(), and isTightTrack().