ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 More...
 
double phi () const
 returns phi coord of tower More...
 
Coordinate coord () const
 returns coordinate of tower More...
 
const std::vector< double > & EmAmps () const
 returns reference to the vector containing the em amplitudes More...
 
const std::vector< double > & HadAmps () const
 returns reference to the vector containing the had amplitudes More...
 
const std::vector< int > & EmADC () const
 returns reference to the vector containing the em digits More...
 
const std::vector< int > & HadADC () const
 returns reference to the vector containing the had digits More...
 
void addEMAmps (std::vector< double > &energy)
 Methods to fill towers with analogue amplitudes. More...
 
void addHadAmps (std::vector< double > &energy)
 
void addEMPeak (double energy)
 Methods to add energy to peak sample of tower (used for CaloCell input) More...
 
void addHadPeak (double energy)
 
void addEMADC (std::vector< int > &adc)
 Methods to fill towers with digitised amplitudes. More...
 
void addHadADC (std::vector< int > &adc)
 
unsigned int key () const
 returns TT key - that is the key the TT had when it was created. More...
 

Private Attributes

double m_phi
 Internal data. More...
 
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 44 of file InternalTriggerTower.cxx.

44 { return m_EmAmps; }
45 

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 75 of file InternalTriggerTower.cxx.

◆ addEMAmps()

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

Methods to fill towers with analogue amplitudes.

Methods for filling amplitude vectors.

Definition at line 65 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 86 of file InternalTriggerTower.cxx.

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

◆ addHadADC()

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

Definition at line 79 of file InternalTriggerTower.cxx.

81  {
82  int peak = m_EmAmps.size()/2;

◆ addHadAmps()

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

Definition at line 69 of file InternalTriggerTower.cxx.

70  {
71  m_EmADC = digits;
72  return;

◆ addHadPeak()

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

Definition at line 91 of file InternalTriggerTower.cxx.

◆ 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 56 of file InternalTriggerTower.cxx.

56 { return m_HadADC; }
57 

◆ EmAmps()

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

returns reference to the vector containing the em amplitudes

returns em amplitudes

Definition at line 48 of file InternalTriggerTower.cxx.

48 { return m_HadAmps; }
49 

◆ 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 60 of file InternalTriggerTower.cxx.

60  {
61  m_EmAmps = energy;

◆ HadAmps()

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

returns reference to the vector containing the had amplitudes

returns had amplitudes

Definition at line 52 of file InternalTriggerTower.cxx.

52 { return m_EmADC; }
53 

◆ 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:
LVL1::InternalTriggerTower::m_EmAmps
std::vector< double > m_EmAmps
Definition: InternalTriggerTower.h:82
LVL1::InternalTriggerTower::m_key
unsigned int m_key
Definition: InternalTriggerTower.h:81
LVL1::InternalTriggerTower::m_HadAmps
std::vector< double > m_HadAmps
Definition: InternalTriggerTower.h:83
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
LVL1::InternalTriggerTower::m_eta
double m_eta
Definition: InternalTriggerTower.h:80
LVL1::InternalTriggerTower::m_phi
double m_phi
Internal data.
Definition: InternalTriggerTower.h:75
LVL1::InternalTriggerTower::m_EmADC
std::vector< int > m_EmADC
Definition: InternalTriggerTower.h:84
LVL1::InternalTriggerTower::m_HadADC
std::vector< int > m_HadADC
Definition: InternalTriggerTower.h:85