CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 override
 uncertainty on dxy More...
 
float dz () const
 
float dzError () const override
 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, bool pfLepOverlap, float pfNeutralSum, 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, const PackedCandidateRef &refToNearestPF, const PackedCandidateRef &refToNearestLostTrack)
 
bool isTightTrack () const
 
float matchedCaloJetEmEnergy () const
 
float matchedCaloJetHadEnergy () const
 
const PFIsolationminiPFIsolation () const
 
const PackedCandidateRefnearestLostTrackPackedCandRef () const
 
const PackedCandidateRefnearestPFPackedCandRef () const
 
const PackedCandidateRefpackedCandRef () const
 
const PFIsolationpfIsolationDR03 () const
 
bool pfLepOverlap () const
 
float pfNeutralSum () const
 
 ~IsolatedTrack () override
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
LeafCandidateclone () const override
 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)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 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...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
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...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 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 nearestLostTrackPackedCandRef_
 
PackedCandidateRef nearestPFPackedCandRef_
 
PackedCandidateRef packedCandRef_
 
PFIsolation pfIsolationDR03_
 
bool pfLepOverlap_
 
float pfNeutralSum_
 
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 23 of file IsolatedTrack.h.

24  : LeafCandidate(0, LorentzVector(0, 0, 0, 0)),
29  pfLepOverlap_(false),
30  pfNeutralSum_(0.),
31  dz_(0.),
32  dxy_(0.),
33  dzError_(0.),
34  dxyError_(0.),
35  fromPV_(-1),
36  trackQuality_(0),
37  dEdxStrip_(0),
38  dEdxPixel_(0),
40  crossedEcalStatus_(std::vector<uint16_t>()),
41  crossedHcalStatus_(std::vector<uint32_t>()),
42  deltaEta_(0),
43  deltaPhi_(0),
PackedCandidateRef nearestPFPackedCandRef_
PFIsolation pfIsolationDR03_
std::vector< uint32_t > crossedHcalStatus_
reco::HitPattern hitPattern_
edm::Ref< pat::PackedCandidateCollection > PackedCandidateRef
PackedCandidateRef nearestLostTrackPackedCandRef_
PackedCandidateRef packedCandRef_
float matchedCaloJetHadEnergy_
PFIsolation miniIsolation_
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,
bool  pfLepOverlap,
float  pfNeutralSum,
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,
const PackedCandidateRef refToNearestPF,
const PackedCandidateRef refToNearestLostTrack 
)
inlineexplicit

Definition at line 48 of file IsolatedTrack.h.

73  : LeafCandidate(charge, p4, Point(0., 0., 0.), id),
74  pfIsolationDR03_(iso),
75  miniIsolation_(miniiso),
76  matchedCaloJetEmEnergy_(caloJetEm),
77  matchedCaloJetHadEnergy_(caloJetHad),
80  dz_(dz),
81  dxy_(dxy),
84  fromPV_(fromPV),
85  trackQuality_(tkQual),
86  dEdxStrip_(dEdxS),
87  dEdxPixel_(dEdxP),
88  hitPattern_(hp),
89  crossedEcalStatus_(ecalst),
90  crossedHcalStatus_(hcalst),
91  deltaEta_(dEta),
92  deltaPhi_(dPhi),
93  packedCandRef_(pcref),
94  nearestPFPackedCandRef_(refToNearestPF),
95  nearestLostTrackPackedCandRef_(refToNearestLostTrack) {}
PackedCandidateRef nearestPFPackedCandRef_
float pfNeutralSum() const
float dxyError() const override
uncertainty on dxy
PFIsolation pfIsolationDR03_
std::vector< uint32_t > crossedHcalStatus_
const LorentzVector & p4() const final
four-momentum Lorentz vector
float dxy() const
float dz() const
reco::HitPattern hitPattern_
bool pfLepOverlap() const
PackedCandidateRef nearestLostTrackPackedCandRef_
PackedCandidateRef packedCandRef_
int fromPV() const
float matchedCaloJetHadEnergy_
PFIsolation miniIsolation_
std::vector< uint16_t > crossedEcalStatus_
float dzError() const override
uncertainty on dz
int charge() const final
electric charge
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
pat::IsolatedTrack::~IsolatedTrack ( )
inlineoverride

Definition at line 97 of file IsolatedTrack.h.

97 {}

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 128 of file IsolatedTrack.h.

References crossedEcalStatus_.

128 { 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 130 of file IsolatedTrack.h.

References crossedHcalStatus_.

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

Definition at line 125 of file IsolatedTrack.h.

References dEdxPixel_.

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

Definition at line 124 of file IsolatedTrack.h.

References dEdxStrip_.

124 { 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 134 of file IsolatedTrack.h.

References deltaEta_.

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

Definition at line 135 of file IsolatedTrack.h.

References deltaPhi_.

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

Definition at line 111 of file IsolatedTrack.h.

References dxy_.

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

111 { return dxy_; }
float pat::IsolatedTrack::dxyError ( ) const
inlineoverridevirtual

uncertainty on dxy

Reimplemented from reco::Candidate.

Definition at line 112 of file IsolatedTrack.h.

References dxyError_.

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

Definition at line 109 of file IsolatedTrack.h.

References dz_.

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

109 { return dz_; }
float pat::IsolatedTrack::dzError ( ) const
inlineoverridevirtual

uncertainty on dz

Reimplemented from reco::Candidate.

Definition at line 110 of file IsolatedTrack.h.

References dzError_.

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

Definition at line 114 of file IsolatedTrack.h.

References fromPV_.

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

Definition at line 122 of file IsolatedTrack.h.

References hitPattern_.

122 { 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 103 of file IsolatedTrack.h.

References matchedCaloJetEmEnergy_.

103 { return matchedCaloJetEmEnergy_; }
float pat::IsolatedTrack::matchedCaloJetHadEnergy ( ) const
inline

Definition at line 104 of file IsolatedTrack.h.

References matchedCaloJetHadEnergy_.

104 { return matchedCaloJetHadEnergy_; }
float matchedCaloJetHadEnergy_
const PFIsolation& pat::IsolatedTrack::miniPFIsolation ( ) const
inline

Definition at line 101 of file IsolatedTrack.h.

References miniIsolation_.

101 { return miniIsolation_; }
PFIsolation miniIsolation_
const PackedCandidateRef& pat::IsolatedTrack::nearestLostTrackPackedCandRef ( ) const
inline

Definition at line 139 of file IsolatedTrack.h.

References nearestPFPackedCandRef_.

139 { return nearestPFPackedCandRef_; }
PackedCandidateRef nearestPFPackedCandRef_
const PackedCandidateRef& pat::IsolatedTrack::nearestPFPackedCandRef ( ) const
inline

Definition at line 138 of file IsolatedTrack.h.

References nearestPFPackedCandRef_.

138 { return nearestPFPackedCandRef_; }
PackedCandidateRef nearestPFPackedCandRef_
const PackedCandidateRef& pat::IsolatedTrack::packedCandRef ( ) const
inline

Definition at line 137 of file IsolatedTrack.h.

References packedCandRef_.

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

Definition at line 99 of file IsolatedTrack.h.

References pfIsolationDR03_.

99 { return pfIsolationDR03_; }
PFIsolation pfIsolationDR03_
bool pat::IsolatedTrack::pfLepOverlap ( ) const
inline

Definition at line 106 of file IsolatedTrack.h.

References pfLepOverlap_.

106 { return pfLepOverlap_; }
float pat::IsolatedTrack::pfNeutralSum ( ) const
inline

Definition at line 107 of file IsolatedTrack.h.

References pfNeutralSum_.

107 { return pfNeutralSum_; }

Member Data Documentation

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

Definition at line 155 of file IsolatedTrack.h.

Referenced by crossedEcalStatus().

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

Definition at line 156 of file IsolatedTrack.h.

Referenced by crossedHcalStatus().

float pat::IsolatedTrack::dEdxPixel_
protected

Definition at line 151 of file IsolatedTrack.h.

Referenced by dEdxPixel().

float pat::IsolatedTrack::dEdxStrip_
protected

Definition at line 151 of file IsolatedTrack.h.

Referenced by dEdxStrip().

int pat::IsolatedTrack::deltaEta_
protected

Definition at line 157 of file IsolatedTrack.h.

Referenced by deltaEta().

int pat::IsolatedTrack::deltaPhi_
protected

Definition at line 157 of file IsolatedTrack.h.

Referenced by deltaPhi().

float pat::IsolatedTrack::dxy_
protected

Definition at line 148 of file IsolatedTrack.h.

Referenced by dxy().

float pat::IsolatedTrack::dxyError_
protected

Definition at line 148 of file IsolatedTrack.h.

Referenced by dxyError().

float pat::IsolatedTrack::dz_
protected

Definition at line 148 of file IsolatedTrack.h.

Referenced by dz().

float pat::IsolatedTrack::dzError_
protected

Definition at line 148 of file IsolatedTrack.h.

Referenced by dzError().

int pat::IsolatedTrack::fromPV_
protected

Definition at line 149 of file IsolatedTrack.h.

Referenced by fromPV().

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

Definition at line 153 of file IsolatedTrack.h.

Referenced by hitPattern().

float pat::IsolatedTrack::matchedCaloJetEmEnergy_
protected

Definition at line 144 of file IsolatedTrack.h.

Referenced by matchedCaloJetEmEnergy().

float pat::IsolatedTrack::matchedCaloJetHadEnergy_
protected

Definition at line 145 of file IsolatedTrack.h.

Referenced by matchedCaloJetHadEnergy().

PFIsolation pat::IsolatedTrack::miniIsolation_
protected

Definition at line 143 of file IsolatedTrack.h.

Referenced by miniPFIsolation().

PackedCandidateRef pat::IsolatedTrack::nearestLostTrackPackedCandRef_
protected

Definition at line 161 of file IsolatedTrack.h.

PackedCandidateRef pat::IsolatedTrack::nearestPFPackedCandRef_
protected

Definition at line 160 of file IsolatedTrack.h.

Referenced by nearestLostTrackPackedCandRef(), and nearestPFPackedCandRef().

PackedCandidateRef pat::IsolatedTrack::packedCandRef_
protected

Definition at line 159 of file IsolatedTrack.h.

Referenced by packedCandRef().

PFIsolation pat::IsolatedTrack::pfIsolationDR03_
protected

Definition at line 142 of file IsolatedTrack.h.

Referenced by pfIsolationDR03().

bool pat::IsolatedTrack::pfLepOverlap_
protected

Definition at line 146 of file IsolatedTrack.h.

Referenced by pfLepOverlap().

float pat::IsolatedTrack::pfNeutralSum_
protected

Definition at line 147 of file IsolatedTrack.h.

Referenced by pfNeutralSum().

int pat::IsolatedTrack::trackQuality_
protected

Definition at line 150 of file IsolatedTrack.h.

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