ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
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. More...
 

Public Member Functions

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

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  }

◆ 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();}

◆ 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();}

◆ 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();}

Friends And Related Function Documentation

◆ 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:
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::IParticle::type
virtual Type::ObjectType type() const =0
The type of the object as a simple enumeration.
Phi
@ Phi
Definition: RPCdef.h:8
xAOD::JetConstituent::m_part
const IParticle * m_part
Definition: JetConstituentVector.h:105
xAOD::JetFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition: JetTypes.h:17
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
Prompt::Def::Pt
@ Pt
Definition: VarHolder.h:76
Eta
@ Eta
Definition: RPCdef.h:8