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

Description of TriggerTower_v1. More...

#include <TriggerTower_v1.h>

Inheritance diagram for xAOD::TriggerTower_v1:
Collaboration diagram for xAOD::TriggerTower_v1:

Public Member Functions

 TriggerTower_v1 ()
const std::vector< int > & emLUT () const
 get EM energy for all time slices
void setEmLUT (const std::vector< int > &)
 set EM energy for all time slices
const std::vector< int > & hadLUT () const
 get HAD energy for all time slices
void setHadLUT (const std::vector< int > &)
 set HAD energy for all time slices
const std::vector< int > & emADC () const
 get EM ADC for all time slices
void setEmADC (const std::vector< int > &)
 set EM ADC for all time slices
const std::vector< int > & hadADC () const
 get HAD ADC for all time slices
void setHadADC (const std::vector< int > &)
 set HAD ADC for all time slices
const std::vector< int > & emBCIDvec () const
 get EM BCID for all time slices
void setEmBCIDvec (const std::vector< int > &)
 set EM BCID for all time slices
const std::vector< int > & hadBCIDvec () const
 get HAD BCID for all time slices
void setHadBCIDvec (const std::vector< int > &)
 set HAD BCID for all time slices
const std::vector< int > & emBCIDext () const
 get EM extBCID for all time slices
void setEmBCIDext (const std::vector< int > &)
 set EM extBCID for all time slices
const std::vector< int > & hadBCIDext () const
 get HAD extBCID for all time slices
void setHadBCIDext (const std::vector< int > &)
 set HAD extBCID for all time slices
float phi () const
 get phi (note that for L1Calo phi runs from 0 to 2pi)
void setPhi (float)
 set phi
float eta () const
 get eta
void setEta (float)
 set eta
unsigned int key () const
 get key of TT
void setKey (unsigned int)
 set key of TT
int emError () const
 get EM error
void setEmError (int)
 set EM error
int hadError () const
 get HAD error
void setHadError (int)
 set HAD error
int emPeak () const
 get EM peak
void setEmPeak (int)
 set EM peak
int emADCPeak () const
 get EM ADC peak
void setEmADCPeak (int)
 set EM ADC peak
int hadPeak () const
 get HAD peak
void setHadPeak (int)
 set HAD peak
int hadADCPeak () const
 get HAD ADC peak
void setHadADCPeak (int)
 set HAD ADC peak
void addEM (const std::vector< int > &digits, const std::vector< int > &et, const std::vector< int > &digits_bcid, const std::vector< int > &bcid, int error, int peak, int adc_peak)
 Fill EM towers with digits, calibrated ET vectors and status flags.
void addHad (const std::vector< int > &digits, const std::vector< int > &et, const std::vector< int > &digits_bcid, const std::vector< int > &bcid, int error, int peak, int adc_peak)
 Fill HAD towers with digits, calibrated ET vectors and status flags.
void setCoord (double eta, double phi)
 Specify the location of tower. Internally calls setEta();setPhi();.
int emEnergy () const
 Final EM energy value used by the algorithms.
int hadEnergy () const
 Final HAD energy value used by the algorithms.
int emBCID () const
 get EM BCID at peak
int hadBCID () const
 get HAD BCID at peak
bool isEMSaturated () const
 Is EM saturated?
bool isHadSaturated () const
 Is HAD saturated?

Static Private Attributes

static const int m_saturation = 255

Detailed Description

Description of TriggerTower_v1.

Author
John Morris john..nosp@m.morr.nosp@m.is@ce.nosp@m.rn.c.nosp@m.h
Revision
631127
Date
2014-11-26 10:54:48 +0100 (Wed, 26 Nov 2014)


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. Each TriggerTower object actually contains information from a pair of trigger towers, one EM and one Hadronic, sharing the same eta, phi coordinates. This is convenient for algorithm emulation, though it does not represent the readout arrangement.

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.

Definition at line 44 of file TriggerTower_v1.h.

Constructor & Destructor Documentation

◆ TriggerTower_v1()

xAOD::TriggerTower_v1::TriggerTower_v1 ( )

Definition at line 15 of file TriggerTower_v1.cxx.

15 :
17 {
18 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

Member Function Documentation

◆ addEM()

void xAOD::TriggerTower_v1::addEM ( const std::vector< int > & digits,
const std::vector< int > & et,
const std::vector< int > & digits_bcid,
const std::vector< int > & bcid,
int error,
int peak,
int adc_peak )

Fill EM towers with digits, calibrated ET vectors and status flags.

Definition at line 39 of file TriggerTower_v1.cxx.

42 {
43 setEmADC( digits );
44 setEmLUT( et );
46 setEmBCIDext( digits_bcid );
47 setEmError( error );
48 setEmPeak( peak );
49 setEmADCPeak( adc_peak );
50 }
void setEmADC(const std::vector< int > &)
set EM ADC for all time slices
void setEmADCPeak(int)
set EM ADC peak
void setEmPeak(int)
set EM peak
void setEmLUT(const std::vector< int > &)
set EM energy for all time slices
void setEmBCIDext(const std::vector< int > &)
set EM extBCID for all time slices
void setEmError(int)
set EM error
void setEmBCIDvec(const std::vector< int > &)
set EM BCID for all time slices
setEventNumber setTimeStamp bcid

◆ addHad()

void xAOD::TriggerTower_v1::addHad ( const std::vector< int > & digits,
const std::vector< int > & et,
const std::vector< int > & digits_bcid,
const std::vector< int > & bcid,
int error,
int peak,
int adc_peak )

Fill HAD towers with digits, calibrated ET vectors and status flags.

Definition at line 53 of file TriggerTower_v1.cxx.

56 {
57 setHadADC( digits );
58 setHadLUT( et );
60 setHadBCIDext( digits_bcid );
61 setHadError( error );
62 setHadPeak( peak );
63 setHadADCPeak( adc_peak );
64 }
void setHadADCPeak(int)
set HAD ADC peak
void setHadADC(const std::vector< int > &)
set HAD ADC for all time slices
void setHadBCIDext(const std::vector< int > &)
set HAD extBCID for all time slices
void setHadLUT(const std::vector< int > &)
set HAD energy for all time slices
void setHadBCIDvec(const std::vector< int > &)
set HAD BCID for all time slices
void setHadError(int)
set HAD error
void setHadPeak(int)
set HAD peak

◆ emADC()

const std::vector< int > & xAOD::TriggerTower_v1::emADC ( ) const

get EM ADC for all time slices

◆ emADCPeak()

int xAOD::TriggerTower_v1::emADCPeak ( ) const

get EM ADC peak

◆ emBCID()

int xAOD::TriggerTower_v1::emBCID ( ) const

get EM BCID at peak

Definition at line 86 of file TriggerTower_v1.cxx.

87 {
88 // Fix for misfilled MC TriggerTowers
89 if( ( emBCIDvec().size() != emLUT().size() ) &&
90 ( emBCIDvec().size() == emADC().size() ) ){
91 return emBCIDvec()[ emADCPeak() ];
92 }
93 return emBCIDvec()[ emPeak() ];
94 }
size_t size() const
Number of registered mappings.
const std::vector< int > & emLUT() const
get EM energy for all time slices
int emPeak() const
get EM peak
const std::vector< int > & emBCIDvec() const
get EM BCID for all time slices
int emADCPeak() const
get EM ADC peak
const std::vector< int > & emADC() const
get EM ADC for all time slices

◆ emBCIDext()

const std::vector< int > & xAOD::TriggerTower_v1::emBCIDext ( ) const

get EM extBCID for all time slices

◆ emBCIDvec()

const std::vector< int > & xAOD::TriggerTower_v1::emBCIDvec ( ) const

get EM BCID for all time slices

◆ emEnergy()

int xAOD::TriggerTower_v1::emEnergy ( ) const

Final EM energy value used by the algorithms.

Definition at line 74 of file TriggerTower_v1.cxx.

75 {
76 return emLUT()[ emPeak() ];
77 }

◆ emError()

int xAOD::TriggerTower_v1::emError ( ) const

get EM error

◆ emLUT()

const std::vector< int > & xAOD::TriggerTower_v1::emLUT ( ) const

get EM energy for all time slices

◆ emPeak()

int xAOD::TriggerTower_v1::emPeak ( ) const

get EM peak

◆ eta()

float xAOD::TriggerTower_v1::eta ( ) const

get eta

◆ hadADC()

const std::vector< int > & xAOD::TriggerTower_v1::hadADC ( ) const

get HAD ADC for all time slices

◆ hadADCPeak()

int xAOD::TriggerTower_v1::hadADCPeak ( ) const

get HAD ADC peak

◆ hadBCID()

int xAOD::TriggerTower_v1::hadBCID ( ) const

get HAD BCID at peak

Definition at line 97 of file TriggerTower_v1.cxx.

98 {
99 // Fix for misfilled MC TriggerTowers
100 if( ( hadBCIDvec().size() != hadLUT().size() ) &&
101 ( hadBCIDvec().size() == hadADC().size() ) ){
102 return hadBCIDvec()[ hadADCPeak() ];
103 }
104 return hadBCIDvec()[ hadPeak() ];
105 }
int hadADCPeak() const
get HAD ADC peak
int hadPeak() const
get HAD peak
const std::vector< int > & hadLUT() const
get HAD energy for all time slices
const std::vector< int > & hadADC() const
get HAD ADC for all time slices
const std::vector< int > & hadBCIDvec() const
get HAD BCID for all time slices

◆ hadBCIDext()

const std::vector< int > & xAOD::TriggerTower_v1::hadBCIDext ( ) const

get HAD extBCID for all time slices

◆ hadBCIDvec()

const std::vector< int > & xAOD::TriggerTower_v1::hadBCIDvec ( ) const

get HAD BCID for all time slices

◆ hadEnergy()

int xAOD::TriggerTower_v1::hadEnergy ( ) const

Final HAD energy value used by the algorithms.

Definition at line 80 of file TriggerTower_v1.cxx.

81 {
82 return hadLUT()[ hadPeak() ];
83 }

◆ hadError()

int xAOD::TriggerTower_v1::hadError ( ) const

get HAD error

◆ hadLUT()

const std::vector< int > & xAOD::TriggerTower_v1::hadLUT ( ) const

get HAD energy for all time slices

◆ hadPeak()

int xAOD::TriggerTower_v1::hadPeak ( ) const

get HAD peak

◆ isEMSaturated()

bool xAOD::TriggerTower_v1::isEMSaturated ( ) const

Is EM saturated?

Definition at line 108 of file TriggerTower_v1.cxx.

109 {
110 // return true if the TriggerTower is saturated
111 // i.e. it has an energy greater than the saturation threshold
112 // otherwise, return false;
113
114 return emEnergy() >= m_saturation;
115 }
static const int m_saturation
int emEnergy() const
Final EM energy value used by the algorithms.

◆ isHadSaturated()

bool xAOD::TriggerTower_v1::isHadSaturated ( ) const

Is HAD saturated?

Definition at line 118 of file TriggerTower_v1.cxx.

119 {
120 // return true if the TriggerTower is saturated
121 // i.e. it has an energy greater than the saturation threshold
122 // otherwise, return false;
123
124 return hadEnergy() >= m_saturation;
125 }
int hadEnergy() const
Final HAD energy value used by the algorithms.

◆ key()

unsigned int xAOD::TriggerTower_v1::key ( ) const

get key of TT

◆ phi()

float xAOD::TriggerTower_v1::phi ( ) const

get phi (note that for L1Calo phi runs from 0 to 2pi)

◆ setCoord()

void xAOD::TriggerTower_v1::setCoord ( double eta,
double phi )

Specify the location of tower. Internally calls setEta();setPhi();.

Definition at line 67 of file TriggerTower_v1.cxx.

68 {
69 setEta( eta );
70 setPhi( phi );
71 }
void setPhi(float)
set phi
void setEta(float)
set eta
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
float eta() const
get eta

◆ setEmADC()

void xAOD::TriggerTower_v1::setEmADC ( const std::vector< int > & )

set EM ADC for all time slices

◆ setEmADCPeak()

void xAOD::TriggerTower_v1::setEmADCPeak ( int )

set EM ADC peak

◆ setEmBCIDext()

void xAOD::TriggerTower_v1::setEmBCIDext ( const std::vector< int > & )

set EM extBCID for all time slices

◆ setEmBCIDvec()

void xAOD::TriggerTower_v1::setEmBCIDvec ( const std::vector< int > & )

set EM BCID for all time slices

◆ setEmError()

void xAOD::TriggerTower_v1::setEmError ( int )

set EM error

◆ setEmLUT()

void xAOD::TriggerTower_v1::setEmLUT ( const std::vector< int > & )

set EM energy for all time slices

◆ setEmPeak()

void xAOD::TriggerTower_v1::setEmPeak ( int )

set EM peak

◆ setEta()

void xAOD::TriggerTower_v1::setEta ( float )

set eta

◆ setHadADC()

void xAOD::TriggerTower_v1::setHadADC ( const std::vector< int > & )

set HAD ADC for all time slices

◆ setHadADCPeak()

void xAOD::TriggerTower_v1::setHadADCPeak ( int )

set HAD ADC peak

◆ setHadBCIDext()

void xAOD::TriggerTower_v1::setHadBCIDext ( const std::vector< int > & )

set HAD extBCID for all time slices

◆ setHadBCIDvec()

void xAOD::TriggerTower_v1::setHadBCIDvec ( const std::vector< int > & )

set HAD BCID for all time slices

◆ setHadError()

void xAOD::TriggerTower_v1::setHadError ( int )

set HAD error

◆ setHadLUT()

void xAOD::TriggerTower_v1::setHadLUT ( const std::vector< int > & )

set HAD energy for all time slices

◆ setHadPeak()

void xAOD::TriggerTower_v1::setHadPeak ( int )

set HAD peak

◆ setKey()

void xAOD::TriggerTower_v1::setKey ( unsigned int )

set key of TT

◆ setPhi()

void xAOD::TriggerTower_v1::setPhi ( float )

set phi

Member Data Documentation

◆ m_saturation

const int xAOD::TriggerTower_v1::m_saturation = 255
staticprivate

Definition at line 163 of file TriggerTower_v1.h.


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