ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::JetConstituent Class Reference

4-vector of jet constituent at the scale used during jet finding. More...

#include <JetConstituentVector.h>

Inheritance diagram for xAOD::JetConstituent:
Collaboration diagram for xAOD::JetConstituent:

Public Types

typedef IParticle::FourMom_t FourMom_t
 Definition of the 4-momentum type.

Public Member Functions

 JetConstituent (const IParticle *part=0)
double pt () const
double eta () const
 The pseudorapidity ( \(\eta\)) of the particle.
double phi () const
 The azimuthal angle ( \(\phi\)) of the particle.
double m () const
 The invariant mass of the particle.
double e () const
 The total energy of the particle.
double rapidity () const
 The true rapidity (y) of the particle.
Type::ObjectType type () const
 The full 4-momentum of the particle.
template<class T>
const T & auxdata (const std::string &name, const std::string &clsname="") const
 Access the underlying IParticle's aux data.
const JetConstituentoperator-> () const
 operator-> allows to use JetConstituentVector with same syntax as vector<IParticle*>
const IParticlerawConstituent () const
 Access the real underlying IParticle.
template<class TT>
const TT & auxdata (const std::string &name, const std::string &clsname) const

Protected Attributes

const IParticlem_part

Friends

class JetConstituentVector

Detailed Description

4-vector of jet constituent at the scale used during jet finding.

JetConstituent is a 4-vector and a proxy to the IParticle* used as a constituent of a jet. it inherits xAOD::JetFourMom_t and provides an interface very similar to IParticle.

Definition at line 61 of file JetConstituentVector.h.

Member Typedef Documentation

◆ FourMom_t

Definition of the 4-momentum type.

Definition at line 81 of file JetConstituentVector.h.

Constructor & Destructor Documentation

◆ JetConstituent()

xAOD::JetConstituent::JetConstituent ( const IParticle * part = 0)
inline

Definition at line 66 of file JetConstituentVector.h.

66: xAOD::JetFourMom_t(), m_part(part){}
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition JetTypes.h:17

Member Function Documentation

◆ auxdata() [1/2]

template<class TT>
const TT & xAOD::JetConstituent::auxdata ( const std::string & name,
const std::string & clsname ) const

Definition at line 211 of file JetConstituentVector.h.

212 {
213 return m_part->template auxdata<TT>(name, clsname);
214 }
const T & auxdata(const std::string &name, const std::string &clsname="") const
Access the underlying IParticle's aux data.

◆ auxdata() [2/2]

template<class T>
const T & xAOD::JetConstituent::auxdata ( const std::string & name,
const std::string & clsname = "" ) const

Access the underlying IParticle's aux data.

◆ e()

double xAOD::JetConstituent::e ( ) const
inline

The total energy of the particle.

Definition at line 76 of file JetConstituentVector.h.

76{ return E();}

◆ eta()

double xAOD::JetConstituent::eta ( ) const
inline

The pseudorapidity ( \(\eta\)) of the particle.

Definition at line 70 of file JetConstituentVector.h.

70{ return Eta();}
@ Eta
Definition RPCdef.h:8

◆ m()

double xAOD::JetConstituent::m ( ) const
inline

The invariant mass of the particle.

Definition at line 74 of file JetConstituentVector.h.

74{ return M();}

◆ operator->()

const JetConstituent * xAOD::JetConstituent::operator-> ( ) const
inline

operator-> allows to use JetConstituentVector with same syntax as vector<IParticle*>

Definition at line 99 of file JetConstituentVector.h.

99{return this;};

◆ phi()

double xAOD::JetConstituent::phi ( ) const
inline

The azimuthal angle ( \(\phi\)) of the particle.

Definition at line 72 of file JetConstituentVector.h.

72{ return Phi();}
@ Phi
Definition RPCdef.h:8

◆ pt()

double xAOD::JetConstituent::pt ( ) const
inline

Definition at line 68 of file JetConstituentVector.h.

68{ return Pt();}

◆ rapidity()

double xAOD::JetConstituent::rapidity ( ) const
inline

The true rapidity (y) of the particle.

Definition at line 78 of file JetConstituentVector.h.

78{ return Rapidity();}

◆ rawConstituent()

const IParticle * xAOD::JetConstituent::rawConstituent ( ) const
inline

Access the real underlying IParticle.

Definition at line 102 of file JetConstituentVector.h.

102{ return m_part; }

◆ type()

Type::ObjectType xAOD::JetConstituent::type ( ) const
inline

The full 4-momentum of the particle.

The type of the object as a simple enumeration

Definition at line 91 of file JetConstituentVector.h.

91{ return m_part->type();}

◆ JetConstituentVector

friend class JetConstituentVector
friend

Definition at line 63 of file JetConstituentVector.h.

Member Data Documentation

◆ m_part

const IParticle* xAOD::JetConstituent::m_part
protected

Definition at line 105 of file JetConstituentVector.h.


The documentation for this class was generated from the following file: