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

Description of JGTower_v1. More...

#include <JGTower_v1.h>

Inheritance diagram for xAOD::JGTower_v1:
Collaboration diagram for xAOD::JGTower_v1:

Public Member Functions

 JGTower_v1 ()
 Default constructor.
 JGTower_v1 (const JGTower_v1 &other)
 Copy constructor.
JGTower_v1operator= (const JGTower_v1 &other)
 Assignment operator.
virtual ~JGTower_v1 ()
 Default desturctor.
Functions for getting and setting user properties
template<class T>
XAOD_AUXDATA_DEPRECATED T & auxdata (const std::string &name, const std::string &clsname="")
 Fetch an aux data variable, as a non-const reference.
template<class T>
XAOD_AUXDATA_DEPRECATED const T & auxdata (const std::string &name, const std::string &clsname="") const
 Fetch an aux data variable, as a const reference.
template<class T>
XAOD_AUXDATA_DEPRECATED bool isAvailable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for reading or not.
template<class T>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for writing or not.

xAOD::IParticle functions

These are already virtual due to IParticle

typedef IParticle::FourMom_t FourMom_t
 Definition of the 4-momentum type.
virtual double pt () const final
 The transverse momentum ( \(p_T\)) of the particle.
virtual double eta () const final
 The pseudorapidity ( \(\eta\)) of the particle.
void setEta (float)
virtual double phi () const final
 The azimuthal angle ( \(\phi\)) of the particle.
void setPhi (float)
virtual double deta () const final
 The pseudorapidity ( \(\eta\)) of the particle.
void setdEta (float)
virtual double dphi () const final
 The azimuthal angle ( \(\phi\)) of the particle.
void setdPhi (float)
virtual double et () const final
void setEt (float)
virtual int Id () const final
 get coolId
void setId (int)
virtual int sampling () const final
void setSampling (int)
const std::vector< int > & SCIndex () const
 get SCIndex
void setSCIndex (const std::vector< int > &)
 set SCIndex
const std::vector< int > & TileIndex () const
 get TileIndex
void setTileIndex (const std::vector< int > &)
 set TileIndex
virtual double m () const final
 The invariant mass of the particle.
virtual double e () const final
 The total energy of the particle.
virtual double rapidity () const final
 The true rapidity (y) of the particle.
virtual FourMom_t p4 () const final
 The full 4-momentum of the particle as a TLoretzVector.
virtual Type::ObjectType type () const final
 The type of the object as a simple enumeration, remains pure virtual in e/gamma.
virtual void initialize (const int Id, const float Eta, const float Phi, const float Et)
virtual void initialize (const int Id, const float Eta, const float Phi)
 initialize

Detailed Description

Description of JGTower_v1.

Author
John Morris john..nosp@m.morr.nosp@m.is@ce.nosp@m.rn.c.nosp@m.h
Revision
652807
Date
2015-03-09 22:52:07 +0100 (Mon, 09 Mar 2015)

Trigger towers are the inputs to all other parts of the calorimeter trigger. They are formed by analogue summation of cells (represented in simulation by LArTTL1 and TileTTL1 objects). The L1Calo PreProcessor digitizes these, performs Bunch-Crossing IDentification, final calibration and reduction to 8 bit words.

The TriggerTower class represents the output of the PreProcessor.

For each tower, the TriggerTower contains the final ET (LUT output) as well as a vector of ADC data (at 25ns intervals) from which it was formed, plus error flags and raw BCID output. As the PreProcessor readout can read variable numbers of slices of all of these data, the internal storage is in std::vectors, and methods exist to return all slices as well as just the data corresponding to the triggered crossing.

The JGTower_v1 class inherits from IParticle in order to assist The Level 1.5 jet HLT algorithm

Definition at line 45 of file JGTower_v1.h.

Member Typedef Documentation

◆ FourMom_t

Definition of the 4-momentum type.

Definition at line 109 of file JGTower_v1.h.

Constructor & Destructor Documentation

◆ JGTower_v1() [1/2]

xAOD::JGTower_v1::JGTower_v1 ( )

Default constructor.

Definition at line 14 of file JGTower_v1.cxx.

14 :
15 IParticle()
16 {
17 }
IParticle()=default

◆ JGTower_v1() [2/2]

xAOD::JGTower_v1::JGTower_v1 ( const JGTower_v1 & other)

Copy constructor.

Definition at line 21 of file JGTower_v1.cxx.

21 :
23 {
24 }

◆ ~JGTower_v1()

virtual xAOD::JGTower_v1::~JGTower_v1 ( )
inlinevirtual

Default desturctor.

Definition at line 55 of file JGTower_v1.h.

55{}

Member Function Documentation

◆ auxdata() [1/2]

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

Fetch an aux data variable, as a non-const reference.

This function provides an easy way for users to decorate objects with auxiliary data.

Take note that this function is slow. Should not be used inside time-critical code.

Parameters
nameName of the aux variable
clsnameThe name of the associated class. May be blank
Returns
A modifiable reference to the decoration

Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

99 {
100
101 return SG::Accessor< T >(name, clsname)(*this);
102 }
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:573

◆ auxdata() [2/2]

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

Fetch an aux data variable, as a const reference.

This function provides an easy way for users to retrieve auxiliary decorations from an object.

Take note that this function is slow. Should not be used inside time-critical code.

Parameters
nameName of the aux variable
clsnameThe name of the associated class. May be blank
Returns
A constant reference to the decoration

Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

119 {
120
121 return SG::ConstAccessor< T >( name, clsname )( *this );
122 }
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570

◆ deta()

double xAOD::JGTower_v1::deta ( ) const
finalvirtual

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

Definition at line 85 of file JGTower_v1.cxx.

86 {
87 const static ConstAccessor< float > acc( "deta" );
88 return acc( *this );
89 }
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ dphi()

double xAOD::JGTower_v1::dphi ( ) const
finalvirtual

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

Definition at line 97 of file JGTower_v1.cxx.

98 {
99 const static ConstAccessor< float > acc( "dphi" );
100 return acc( *this );
101 }

◆ e()

double xAOD::JGTower_v1::e ( ) const
finalvirtual

The total energy of the particle.

Implements xAOD::IParticle.

Definition at line 156 of file JGTower_v1.cxx.

157 {
158 return p4().E();
159 }
virtual FourMom_t p4() const final
The full 4-momentum of the particle as a TLoretzVector.

◆ et()

double xAOD::JGTower_v1::et ( ) const
finalvirtual

Definition at line 134 of file JGTower_v1.cxx.

135 {
136 const static ConstAccessor< float > acc( "et" );
137 return acc( *this );
138 }

◆ eta()

double xAOD::JGTower_v1::eta ( ) const
finalvirtual

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

Implements xAOD::IParticle.

Definition at line 60 of file JGTower_v1.cxx.

61 {
62 const static ConstAccessor< float > acc( "eta" );
63 return acc( *this );
64 }

◆ Id()

int xAOD::JGTower_v1::Id ( ) const
finalvirtual

get coolId

Definition at line 109 of file JGTower_v1.cxx.

110 {
111 const static ConstAccessor< int > acc( "Id" );
112 return acc( *this );
113 }

◆ initialize() [1/2]

void xAOD::JGTower_v1::initialize ( const int Id,
const float Eta,
const float Phi )
virtual

initialize

Definition at line 41 of file JGTower_v1.cxx.

42 {
43 setId (Id);
44 setEta( Eta );
45 setPhi( Phi );
46 }
@ Phi
Definition RPCdef.h:8
@ Eta
Definition RPCdef.h:8
void setPhi(float)
void setEta(float)
virtual int Id() const final
get coolId

◆ initialize() [2/2]

void xAOD::JGTower_v1::initialize ( const int Id,
const float Eta,
const float Phi,
const float Et )
virtual

Definition at line 48 of file JGTower_v1.cxx.

49 {
50 setId (Id);
51 setEt (Et);
52 setEta( Eta );
53 setPhi( Phi );
54 }
void setEt(float)

◆ isAvailable()

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailable ( const std::string & name,
const std::string & clsname = "" ) const
inlineinherited

Check if a user property is available for reading or not.

This function should be used to check if a user property which may or may not exist, is set on the object.

Parameters
nameName of the auxiliary variable
clsnameThe name of the associated class. May be blank
Returns
Whether the decoration exists or not

Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

136 {
137
138 return SG::ConstAccessor< T >(name, clsname).isAvailable(*this);
139 }
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.

◆ isAvailableWritable()

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailableWritable ( const std::string & name,
const std::string & clsname = "" ) const
inlineinherited

Check if a user property is available for writing or not.

This function can be used to check whether it will be possible to set a user property on the object.

Parameters
nameName of the auxiliary variable
clsnameThe name of the associated class. May be blank
Returns
Whether the decoration is possible to set

Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

153 {
154
155 return SG::Accessor< T >(name, clsname).isAvailableWritable(*this);
156 }
bool isAvailableWritable(ELT &e) const
Test to see if this variable exists in the store and is writable.

◆ m()

double xAOD::JGTower_v1::m ( ) const
finalvirtual

The invariant mass of the particle.

Implements xAOD::IParticle.

Definition at line 151 of file JGTower_v1.cxx.

152 {
153 return 0.;
154 }

◆ operator=()

JGTower_v1 & xAOD::JGTower_v1::operator= ( const JGTower_v1 & other)

Assignment operator.

Definition at line 26 of file JGTower_v1.cxx.

27 {
28 if( this != &other ){
29 if( !container() && !hasStore() ){
31 }
33 }
34 return *this;
35 }
IParticle & operator=(const IParticle &)=default
void makePrivateStore()
Create a new (empty) private store for this object.
const SG::AuxVectorData * container() const
Return the container holding this element.
bool hasStore() const
Return true if this object has an associated store.

◆ p4()

JGTower_v1::FourMom_t xAOD::JGTower_v1::p4 ( ) const
finalvirtual

The full 4-momentum of the particle as a TLoretzVector.

Implements xAOD::IParticle.

Definition at line 166 of file JGTower_v1.cxx.

167 {
169 double PT = (pt() > 0) ? 1000. * static_cast< double >( pt() ) : 0.01;
170 p4.SetPtEtaPhiM( PT , eta() , phi() , m() );
171 return p4;
172 }
virtual double phi() const final
The azimuthal angle ( ) of the particle.
virtual double pt() const final
The transverse momentum ( ) of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition JGTower_v1.h:109
virtual double m() const final
The invariant mass of the particle.
virtual double eta() const final
The pseudorapidity ( ) of the particle.
H5::PredType PT
Definition H5Traits.cxx:15

◆ phi()

double xAOD::JGTower_v1::phi ( ) const
finalvirtual

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

Implements xAOD::IParticle.

Definition at line 73 of file JGTower_v1.cxx.

74 {
75 const static ConstAccessor< float > acc( "phi" );
76 return acc( *this );
77 }

◆ pt()

double xAOD::JGTower_v1::pt ( ) const
finalvirtual

The transverse momentum ( \(p_T\)) of the particle.

Implements xAOD::IParticle.

Definition at line 146 of file JGTower_v1.cxx.

147 {
148 return static_cast< double >(et() );
149 }
virtual double et() const final

◆ rapidity()

double xAOD::JGTower_v1::rapidity ( ) const
finalvirtual

The true rapidity (y) of the particle.

Implements xAOD::IParticle.

Definition at line 161 of file JGTower_v1.cxx.

162 {
163 return p4().Rapidity();
164 }

◆ sampling()

int xAOD::JGTower_v1::sampling ( ) const
finalvirtual

Definition at line 121 of file JGTower_v1.cxx.

122 {
123 const static ConstAccessor< int > acc( "sampling" );
124 return acc( *this );
125 }

◆ SCIndex()

const std::vector< int > & xAOD::JGTower_v1::SCIndex ( ) const

get SCIndex

◆ setdEta()

void xAOD::JGTower_v1::setdEta ( float deta)

Definition at line 91 of file JGTower_v1.cxx.

92 {
93 const static Accessor< float > acc( "deta" );
94 acc( *this ) = deta;
95 }
virtual double deta() const final
The pseudorapidity ( ) of the particle.

◆ setdPhi()

void xAOD::JGTower_v1::setdPhi ( float dphi)

Definition at line 103 of file JGTower_v1.cxx.

104 {
105 const static Accessor< float > acc( "dphi" );
106 acc( *this ) = dphi;
107 }
virtual double dphi() const final
The azimuthal angle ( ) of the particle.

◆ setEt()

void xAOD::JGTower_v1::setEt ( float et)

Definition at line 140 of file JGTower_v1.cxx.

141 {
142 const static Accessor< float > acc( "et" );
143 acc( *this ) = et;
144 }

◆ setEta()

void xAOD::JGTower_v1::setEta ( float eta)

Definition at line 66 of file JGTower_v1.cxx.

67 {
68 const static Accessor< float > acc( "eta" );
69 acc( *this ) = eta;
70 }

◆ setId()

void xAOD::JGTower_v1::setId ( int Id)

Definition at line 115 of file JGTower_v1.cxx.

116 {
117 const static Accessor< int > acc( "Id" );
118 acc( *this ) = Id;
119 }

◆ setPhi()

void xAOD::JGTower_v1::setPhi ( float phi)

Definition at line 79 of file JGTower_v1.cxx.

80 {
81 const static Accessor< float > acc( "phi" );
82 acc( *this ) = phi;
83 }

◆ setSampling()

void xAOD::JGTower_v1::setSampling ( int sampling)

Definition at line 127 of file JGTower_v1.cxx.

128 {
129 const static Accessor< int > acc( "sampling" );
130 acc( *this ) = sampling;
131 }
virtual int sampling() const final

◆ setSCIndex()

void xAOD::JGTower_v1::setSCIndex ( const std::vector< int > & )

set SCIndex

◆ setTileIndex()

void xAOD::JGTower_v1::setTileIndex ( const std::vector< int > & )

set TileIndex

◆ TileIndex()

const std::vector< int > & xAOD::JGTower_v1::TileIndex ( ) const

get TileIndex

◆ type()

Type::ObjectType xAOD::JGTower_v1::type ( ) const
finalvirtual

The type of the object as a simple enumeration, remains pure virtual in e/gamma.

Implements xAOD::IParticle.

Definition at line 174 of file JGTower_v1.cxx.

175 {
176 return Type::Jet;
177 }

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