ATLAS Offline Software
|
Trigger towers are the inputs to all other parts of the calorimeter trigger. More...
#include <TriggerTower.h>
Public Member Functions | |
TriggerTower () | |
Constructors. More... | |
TriggerTower (double phi, double eta, unsigned int key) | |
TriggerTower (double phi, double eta, unsigned int key, const std::vector< int > &em_digits, const std::vector< int > &em_et, const std::vector< int > &em_digits_bcid, const std::vector< int > &em_bcid, int em_error, int em_peak, int em_adc_peak, const std::vector< int > &had_digits, const std::vector< int > &had_et, const std::vector< int > &had_digits_bcid, const std::vector< int > &had_bcid, int had_error, int had_peak, int had_adc_peak) | |
virtual | ~TriggerTower () |
Destructor. More... | |
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) |
Methods to fill towers with digits, calibrated ET vectors and status flags. More... | |
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) |
Method for filling Had tower data. More... | |
void | setCoord (double eta, double phi) |
Methods to specify location of tower. More... | |
void | setKey (unsigned int key) |
Method to set or update key. More... | |
int | emEnergy () const |
return the final energy values using the in algorithms More... | |
int | hadEnergy () const |
const std::vector< int > & | emLUT () const |
return references to the vectors containing the final calubrated ET values. More... | |
const std::vector< int > & | hadLUT () const |
returns had LUT ET More... | |
const std::vector< int > & | emADC () const |
return references to the vectors containing the ADC digits More... | |
const std::vector< int > & | hadADC () const |
returns had adc digits More... | |
double | eta () const |
returns eta coord More... | |
double | phi () const |
returns phi coord of tower More... | |
Coordinate | coord () const |
returns coordinate of TT More... | |
unsigned int | key () const |
returns TT key - that is the key the TT had when it was created. More... | |
int | emPeak () const |
return peak positions in LUT and ADC vectors More... | |
int | emADCPeak () const |
int | hadPeak () const |
int | hadADCPeak () const |
bool | isEMSaturated () const |
Utilities to report on status of tower. More... | |
bool | isHadSaturated () const |
returns TRUE or FALSE depending on whether the TriggerTower's hadronic energy is greater than it's hadronic saturation threshold. More... | |
int | emError () const |
int | hadError () const |
int | emBCID () const |
returns BCID word for peak EM sample More... | |
int | hadBCID () const |
returns BCID word for peak had sample More... | |
const std::vector< int > & | emBCIDvec () const |
returns vector of BCID words for all EM LUT samples More... | |
const std::vector< int > & | hadBCIDvec () const |
returns vector of BCID words for all Had LUT samples More... | |
const std::vector< int > & | emBCIDext () const |
returns vector of BCID words for all EM ADC samples More... | |
const std::vector< int > & | hadBCIDext () const |
returns vector of BCID words for all Had ADC samples More... | |
Private Attributes | |
std::vector< int > | m_em_energy |
Internal data. More... | |
std::vector< int > | m_had_energy |
std::vector< int > | m_em_adc |
std::vector< int > | m_had_adc |
std::vector< int > | m_em_BCID |
std::vector< int > | m_had_BCID |
std::vector< int > | m_em_extBCID |
std::vector< int > | m_had_extBCID |
double | m_phi |
double | m_eta |
unsigned int | m_key |
int | m_em_error |
int | m_had_error |
int | m_em_peak |
int | m_em_adc_peak |
int | m_had_peak |
int | m_had_adc_peak |
Static Private Attributes | |
static const int | m_saturation = 255 |
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 45 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
LVL1::TriggerTower::TriggerTower | ( | ) |
Constructors.
LVL1::TriggerTower::TriggerTower | ( | double | phi, |
double | eta, | ||
unsigned int | key | ||
) |
LVL1::TriggerTower::TriggerTower | ( | double | phi, |
double | eta, | ||
unsigned int | key, | ||
const std::vector< int > & | em_digits, | ||
const std::vector< int > & | em_et, | ||
const std::vector< int > & | em_digits_bcid, | ||
const std::vector< int > & | em_bcid, | ||
int | em_error, | ||
int | em_peak, | ||
int | em_adc_peak, | ||
const std::vector< int > & | had_digits, | ||
const std::vector< int > & | had_et, | ||
const std::vector< int > & | had_digits_bcid, | ||
const std::vector< int > & | had_bcid, | ||
int | had_error, | ||
int | had_peak, | ||
int | had_adc_peak | ||
) |
|
virtual |
Destructor.
Definition at line 96 of file TriggerTower.cxx.
void LVL1::TriggerTower::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 | ||
) |
Methods to fill towers with digits, calibrated ET vectors and status flags.
Method for filling EM tower data.
Definition at line 158 of file TriggerTower.cxx.
LVL1::Coordinate LVL1::TriggerTower::coord | ( | ) | const |
returns coordinate of TT
Definition at line 218 of file TriggerTower.cxx.
const std::vector< int > & LVL1::TriggerTower::emADC | ( | ) | const |
return references to the vectors containing the ADC digits
returns em adc digits
Definition at line 118 of file TriggerTower.cxx.
|
inline |
Definition at line 108 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
int LVL1::TriggerTower::emBCID | ( | ) | const |
returns BCID word for peak EM sample
Fix for misfilled MC TriggerTowers
Definition at line 126 of file TriggerTower.cxx.
const std::vector< int > & LVL1::TriggerTower::emBCIDext | ( | ) | const |
returns vector of BCID words for all EM ADC samples
Definition at line 150 of file TriggerTower.cxx.
const std::vector< int > & LVL1::TriggerTower::emBCIDvec | ( | ) | const |
returns vector of BCID words for all EM LUT samples
Definition at line 143 of file TriggerTower.cxx.
int LVL1::TriggerTower::emEnergy | ( | ) | const |
return the final energy values using the in algorithms
Definition at line 100 of file TriggerTower.cxx.
|
inline |
Definition at line 115 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
const std::vector< int > & LVL1::TriggerTower::emLUT | ( | ) | const |
return references to the vectors containing the final calubrated ET values.
returns em LUT ET
In simulation there will only be one timeslice, but data readout may contain more
Definition at line 110 of file TriggerTower.cxx.
|
inline |
return peak positions in LUT and ADC vectors
Definition at line 107 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
inline |
returns eta coord
Definition at line 94 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
const std::vector< int > & LVL1::TriggerTower::hadADC | ( | ) | const |
returns had adc digits
Definition at line 122 of file TriggerTower.cxx.
|
inline |
Definition at line 110 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
int LVL1::TriggerTower::hadBCID | ( | ) | const |
const std::vector< int > & LVL1::TriggerTower::hadBCIDext | ( | ) | const |
returns vector of BCID words for all Had ADC samples
Definition at line 154 of file TriggerTower.cxx.
const std::vector< int > & LVL1::TriggerTower::hadBCIDvec | ( | ) | const |
returns vector of BCID words for all Had LUT samples
Definition at line 147 of file TriggerTower.cxx.
int LVL1::TriggerTower::hadEnergy | ( | ) | const |
Definition at line 105 of file TriggerTower.cxx.
|
inline |
Definition at line 116 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
const std::vector< int > & LVL1::TriggerTower::hadLUT | ( | ) | const |
|
inline |
Definition at line 109 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
bool LVL1::TriggerTower::isEMSaturated | ( | ) | const |
Utilities to report on status of tower.
returns TRUE if the TriggerTower is saturated (i.e.
it has an energy greater than the saturation threshold) and FALSE otherwise.
Definition at line 201 of file TriggerTower.cxx.
bool LVL1::TriggerTower::isHadSaturated | ( | ) | const |
returns TRUE or FALSE depending on whether the TriggerTower's hadronic energy is greater than it's hadronic saturation threshold.
Definition at line 212 of file TriggerTower.cxx.
|
inline |
returns TT key - that is the key the TT had when it was created.
Added for bug-testing. Decide whether still needed?
Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
inline |
returns phi coord of tower
Definition at line 97 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
void LVL1::TriggerTower::setCoord | ( | double | eta, |
double | phi | ||
) |
Methods to specify location of tower.
Method to set coordinate of tower.
Definition at line 187 of file TriggerTower.cxx.
void LVL1::TriggerTower::setKey | ( | unsigned int | key | ) |
|
private |
Definition at line 128 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 140 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 130 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Internal data.
Definition at line 126 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 137 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 132 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 139 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 135 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 129 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 142 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 131 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 127 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 138 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 133 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 141 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 136 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
private |
Definition at line 134 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.
|
staticprivate |
Definition at line 144 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h.