ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
HypoJet::xAODJetAsIJet Class Referenceabstract

#include <xAODJetAsIJet.h>

Inheritance diagram for HypoJet::xAODJetAsIJet:
Collaboration diagram for HypoJet::xAODJetAsIJet:

Public Member Functions

 xAODJetAsIJet (const xAOD::Jet *jet, unsigned int position)
 
 ~xAODJetAsIJet ()
 
double pt () const override
 
double eta () const override
 
double phi () const override
 
double m () const override
 
double e () const override
 
double et () const override
 
double rapidity () const override
 
TLorentzVector p4 () const override
 
unsigned int position () const override
 
virtual std::optional< const xAOD::Jet * > xAODJet () const override
 
bool getAttribute (const std::string &, float &) const override
 
bool getAttribute (const std::string &, bool &) const override
 
virtual std::string toString () const =0
 

Private Attributes

const xAOD::Jetm_jet
 
unsigned int m_position
 

Detailed Description

Definition at line 16 of file xAODJetAsIJet.h.

Constructor & Destructor Documentation

◆ xAODJetAsIJet()

xAODJetAsIJet::xAODJetAsIJet ( const xAOD::Jet jet,
unsigned int  position 
)

Definition at line 10 of file xAODJetAsIJet.cxx.

10  :

◆ ~xAODJetAsIJet()

xAODJetAsIJet::~xAODJetAsIJet ( )

Definition at line 13 of file xAODJetAsIJet.cxx.

13 {}

Member Function Documentation

◆ e()

double xAODJetAsIJet::e ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 23 of file xAODJetAsIJet.cxx.

23 {return m_jet->e();}

◆ et()

double xAODJetAsIJet::et ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 25 of file xAODJetAsIJet.cxx.

25 {return (m_jet->p4()).Et();}

◆ eta()

double xAODJetAsIJet::eta ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 17 of file xAODJetAsIJet.cxx.

17 {return m_jet->eta();}

◆ getAttribute() [1/2]

bool xAODJetAsIJet::getAttribute ( const std::string &  name,
bool &  val 
) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 37 of file xAODJetAsIJet.cxx.

37  {
38  return m_jet->getAttribute<bool>(name, val);
39 }

◆ getAttribute() [2/2]

bool xAODJetAsIJet::getAttribute ( const std::string &  name,
float &  val 
) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 33 of file xAODJetAsIJet.cxx.

33  {
34  return m_jet->getAttribute<float>(name, val);
35 }

◆ m()

double xAODJetAsIJet::m ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 21 of file xAODJetAsIJet.cxx.

21 {return m_jet->m();}

◆ p4()

TLorentzVector xAODJetAsIJet::p4 ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 29 of file xAODJetAsIJet.cxx.

29 {return m_jet->p4();}

◆ phi()

double xAODJetAsIJet::phi ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 19 of file xAODJetAsIJet.cxx.

19 {return m_jet->phi();}

◆ position()

unsigned int xAODJetAsIJet::position ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 31 of file xAODJetAsIJet.cxx.

31 {return m_position;}

◆ pt()

double xAODJetAsIJet::pt ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 15 of file xAODJetAsIJet.cxx.

15 {return m_jet->pt();}

◆ rapidity()

double xAODJetAsIJet::rapidity ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 27 of file xAODJetAsIJet.cxx.

27 {return m_jet->rapidity();}

◆ toString()

virtual std::string HypoJet::IJet::toString ( ) const
pure virtualinherited

◆ xAODJet()

std::optional< const xAOD::Jet * > xAODJetAsIJet::xAODJet ( ) const
overridevirtual

Implements HypoJet::IJet.

Definition at line 41 of file xAODJetAsIJet.cxx.

41  {
42  return std::make_optional<const xAOD::Jet*>(m_jet);
43 }

Member Data Documentation

◆ m_jet

const xAOD::Jet* HypoJet::xAODJetAsIJet::m_jet
private

Definition at line 36 of file xAODJetAsIJet.h.

◆ m_position

unsigned int HypoJet::xAODJetAsIJet::m_position
private

Definition at line 37 of file xAODJetAsIJet.h.


The documentation for this class was generated from the following files:
xAOD::Jet_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: Jet_v1.cxx:54
xAOD::Jet_v1::getAttribute
bool getAttribute(AttributeID type, T &value) const
Retrieve attribute moment by enum.
HypoJet::xAODJetAsIJet::position
unsigned int position() const override
Definition: xAODJetAsIJet.cxx:31
HypoJet::xAODJetAsIJet::m_jet
const xAOD::Jet * m_jet
Definition: xAODJetAsIJet.h:36
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
HypoJet::xAODJetAsIJet::m_position
unsigned int m_position
Definition: xAODJetAsIJet.h:37
xAOD::Jet_v1::rapidity
virtual double rapidity() const
The true rapidity (y) of the particle.
Definition: Jet_v1.cxx:67
xAOD::Jet_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: Jet_v1.cxx:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::Jet_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: Jet_v1.cxx:71
xAOD::Jet_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: Jet_v1.cxx:59
xAOD::Jet_v1::e
virtual double e() const
The total energy of the particle.
Definition: Jet_v1.cxx:63
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
xAOD::Jet_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition: Jet_v1.cxx:44