ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::InternalTriggerTower Class Reference

A version of the TriggerTower that contains information that would not be availiable during datataking. More...

#include <InternalTriggerTower.h>

Collaboration diagram for LVL1::InternalTriggerTower:

Public Member Functions

 InternalTriggerTower (double phi, double eta, int key)
 InternalTriggerTower ()
virtual ~InternalTriggerTower ()
double eta () const
 returns eta coord
double phi () const
 returns phi coord of tower
Coordinate coord () const
 returns coordinate of tower
const std::vector< double > & EmAmps () const
 returns reference to the vector containing the em amplitudes
const std::vector< double > & HadAmps () const
 returns reference to the vector containing the had amplitudes
const std::vector< int > & EmADC () const
 returns reference to the vector containing the em digits
const std::vector< int > & HadADC () const
 returns reference to the vector containing the had digits
void addEMAmps (std::vector< double > &energy)
 Methods to fill towers with analogue amplitudes.
void addHadAmps (std::vector< double > &energy)
void addEMPeak (double energy)
 Methods to add energy to peak sample of tower (used for CaloCell input)
void addHadPeak (double energy)
void addEMADC (std::vector< int > &adc)
 Methods to fill towers with digitised amplitudes.
void addHadADC (std::vector< int > &adc)
unsigned int key () const
 returns TT key - that is the key the TT had when it was created.

Private Attributes

double m_phi
 Internal data.
double m_eta
unsigned int m_key
std::vector< double > m_EmAmps
std::vector< double > m_HadAmps
std::vector< int > m_EmADC
std::vector< int > m_HadADC

Detailed Description

A version of the TriggerTower that contains information that would not be availiable during datataking.

Only use is in TriggerTowerMaker, to allow building of TriggerTowers from different types of input data. External users should use TriggerTower to access tower information.

Definition at line 31 of file InternalTriggerTower.h.

Constructor & Destructor Documentation

◆ InternalTriggerTower() [1/2]

LVL1::InternalTriggerTower::InternalTriggerTower ( double phi,
double eta,
int key )

◆ InternalTriggerTower() [2/2]

LVL1::InternalTriggerTower::InternalTriggerTower ( )

◆ ~InternalTriggerTower()

LVL1::InternalTriggerTower::~InternalTriggerTower ( )
virtual

Definition at line 39 of file InternalTriggerTower.cxx.

39 {
40}

Member Function Documentation

◆ addEMADC()

void LVL1::InternalTriggerTower::addEMADC ( std::vector< int > & adc)

Methods to fill towers with digitised amplitudes.

Methods for filling digit vectors.

Definition at line 70 of file InternalTriggerTower.cxx.

70 {
71 m_EmADC = digits;
72 return;
73}

◆ addEMAmps()

void LVL1::InternalTriggerTower::addEMAmps ( std::vector< double > & energy)

Methods to fill towers with analogue amplitudes.

Methods for filling amplitude vectors.

Definition at line 60 of file InternalTriggerTower.cxx.

◆ addEMPeak()

void LVL1::InternalTriggerTower::addEMPeak ( double energy)

Methods to add energy to peak sample of tower (used for CaloCell input)

Methods for adding ET to central sample of pulse.

Intended for use with inputs without pulse shape (CaloCell, etc)

Definition at line 81 of file InternalTriggerTower.cxx.

81 {
82 int peak = m_EmAmps.size()/2;
83 m_EmAmps[peak] += energy;
84 return;
85}

◆ addHadADC()

void LVL1::InternalTriggerTower::addHadADC ( std::vector< int > & adc)

Definition at line 74 of file InternalTriggerTower.cxx.

74 {
75 m_HadADC = digits;
76 return;
77}

◆ addHadAmps()

void LVL1::InternalTriggerTower::addHadAmps ( std::vector< double > & energy)

Definition at line 64 of file InternalTriggerTower.cxx.

64 {
66 return;
67}
std::vector< double > m_HadAmps

◆ addHadPeak()

void LVL1::InternalTriggerTower::addHadPeak ( double energy)

Definition at line 86 of file InternalTriggerTower.cxx.

86 {
87 int peak = m_HadAmps.size()/2;
88 m_HadAmps[peak] += energy;
89 return;
90}

◆ coord()

LVL1::Coordinate LVL1::InternalTriggerTower::coord ( ) const

returns coordinate of tower

returns coordinate of TT

Definition at line 96 of file InternalTriggerTower.cxx.

96 {
97 return Coordinate(m_phi, m_eta);
98}

◆ EmADC()

const std::vector< int > & LVL1::InternalTriggerTower::EmADC ( ) const

returns reference to the vector containing the em digits

returns em digits

Definition at line 51 of file InternalTriggerTower.cxx.

52{ return m_EmADC; }

◆ EmAmps()

const std::vector< double > & LVL1::InternalTriggerTower::EmAmps ( ) const

returns reference to the vector containing the em amplitudes

returns em amplitudes

Definition at line 43 of file InternalTriggerTower.cxx.

44{ return m_EmAmps; }

◆ eta()

double LVL1::InternalTriggerTower::eta ( ) const
inline

returns eta coord

Definition at line 41 of file InternalTriggerTower.h.

41{return m_eta;};

◆ HadADC()

const std::vector< int > & LVL1::InternalTriggerTower::HadADC ( ) const

returns reference to the vector containing the had digits

returns had digits

Definition at line 55 of file InternalTriggerTower.cxx.

56{ return m_HadADC; }

◆ HadAmps()

const std::vector< double > & LVL1::InternalTriggerTower::HadAmps ( ) const

returns reference to the vector containing the had amplitudes

returns had amplitudes

Definition at line 47 of file InternalTriggerTower.cxx.

48{ return m_HadAmps; }

◆ key()

unsigned int LVL1::InternalTriggerTower::key ( ) const
inline

returns TT key - that is the key the TT had when it was created.

Added for bug-testing.

Definition at line 75 of file InternalTriggerTower.h.

75{ return m_key;};

◆ phi()

double LVL1::InternalTriggerTower::phi ( ) const
inline

returns phi coord of tower

Definition at line 44 of file InternalTriggerTower.h.

44{return m_phi;};

Member Data Documentation

◆ m_EmADC

std::vector<int> LVL1::InternalTriggerTower::m_EmADC
private

Definition at line 84 of file InternalTriggerTower.h.

◆ m_EmAmps

std::vector<double> LVL1::InternalTriggerTower::m_EmAmps
private

Definition at line 82 of file InternalTriggerTower.h.

◆ m_eta

double LVL1::InternalTriggerTower::m_eta
private

Definition at line 80 of file InternalTriggerTower.h.

◆ m_HadADC

std::vector<int> LVL1::InternalTriggerTower::m_HadADC
private

Definition at line 85 of file InternalTriggerTower.h.

◆ m_HadAmps

std::vector<double> LVL1::InternalTriggerTower::m_HadAmps
private

Definition at line 83 of file InternalTriggerTower.h.

◆ m_key

unsigned int LVL1::InternalTriggerTower::m_key
private

Definition at line 81 of file InternalTriggerTower.h.

◆ m_phi

double LVL1::InternalTriggerTower::m_phi
private

Internal data.

Definition at line 79 of file InternalTriggerTower.h.


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