ATLAS Offline Software
|
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold: More...
#include <jTower.h>
Public Member Functions | |
jTower () | |
Constructors. More... | |
jTower (int ieta, int iphi, int towerid, int posneg, float centre_eta=-1.0, float centre_phi=-1.0, int fcal_layer=-1) | |
constructs a tower and sets the coordinates and identifier More... | |
virtual | ~jTower ()=default |
Destructor. More... | |
void | clearET () |
Clear supercell ET values. More... | |
void | clear_EM_scIDs () |
Clear and resize Identifier value vector. More... | |
void | clear_HAD_scIDs () |
Clear and resize HAD SC Identifier value vector. More... | |
void | setEMSat () |
set and get saturation More... | |
bool | getEMSat () const |
void | setHADSat () |
bool | getHADSat () const |
bool | getTowerSat () const |
void | addET (float et, int cell) |
Add to ET of a specified cell in MeV. More... | |
void | recordMD_ET (float et, int cell) |
Add to ET of a specified cell. More... | |
void | setCentreEta (float ieta) |
Add to eta/phi values of a specified tower. More... | |
void | setCentrePhi (float iphi) |
void | setiEta (int ieta) |
void | setiPhi (int iphi) |
int | iEta () const |
Get coordinates of tower. More... | |
int | iPhi () const |
Return global phi index. More... | |
float | centreEta () const |
float | centrePhi () const |
float | centrephi_toPI () const |
void | setTTowerArea (int area, int layer) |
Add to Area values of a specified tower. More... | |
int | getTTowerArea (int layer) const |
void | setTTowerAreaInv (int area, int layer) |
Add to Area inverted values of a specified tower. More... | |
int | getTTowerAreaInv (int layer) const |
void | setMinEtforPileup (int etval) |
Add to pilup lower and upper thresholds. More... | |
int | getMinEtforPileup () const |
void | setMaxEtforPileup (int etval) |
int | getMaxEtforPileup () const |
int | fcalLayer () const |
void | setOnlineID (int tower_id_online) |
int | OnlineID () |
int | OnlineID () const |
int | OfflineID () |
int | OfflineID () const |
float | constid () const |
int | getET (unsigned int layer, int cell=0) const |
Get ET of a specified cell in MeV. More... | |
int | getTotalET () const |
Get ET sum of all cells in the jTower in MeV. More... | |
int | getLayerTotalET (unsigned int layer) const |
Get total ET sum of all cells in a given layer in MeV. More... | |
std::vector< int > | getLayerETvec (unsigned int layer) const |
Get vector of ET values for a given layer in MeV. More... | |
const std::vector< int > & | getETs () const |
Get vector of all ET values in MeV. More... | |
void | set_Et (int layer, int et) |
Set ET value in MeV. More... | |
int | getET_EM () const |
Get EM ET value in MeV. More... | |
int | getET_HAD () const |
Get HAD ET value in MeV. More... | |
float | getET_float (unsigned int layer, int cell=0) const |
Get ET of a specified cell in MeV FLOAT VERSION. More... | |
float | getTotalET_float () const |
Get ET sum of all cells in the jTower in MeV FLOAT VERSION. More... | |
float | getLayerTotalET_float (unsigned int layer) const |
Get total ET sum of all cells in a given layer in MeV FLOAT VERSION. More... | |
std::vector< float > | getLayerETvec_float (unsigned int layer) const |
Get vector of ET values for a given layer in MeV FLOAT VERSION. More... | |
const std::vector< float > & | getETs_float () const |
Get vector of all ET values in MeV FLOAT VERSION. More... | |
void | set_TileCal_Et (int layer, int et) |
void | set_LAr_Et (Identifier ID, int cell, float et, int layer) |
Set LAr supercell position ID. More... | |
void | Do_LAr_encoding () |
Applies LAr digitization scheme. More... | |
void | setNoiseForMet (int noiseVal, int layer) |
Noise values for each layer and object. More... | |
int | getNoiseForMet (int layer) const |
void | setNoiseForJet (int noiseVal, int layer) |
int | getNoiseForJet (int layer) const |
const std::vector< Identifier > & | getEMSCIDs () const |
const std::vector< Identifier > & | getHADSCIDs () const |
Identifier | getEMSCID (int cell) const |
Identifier | getHADSCID (int cell) const |
std::vector< Identifier > | getLayerSCIDs (unsigned int layer) const |
void | setPosNeg (int posneg) |
int | getPosNeg () const |
Private Attributes | |
int | m_iEta =0 |
Internal data. More... | |
int | m_iPhi =0 |
int | m_tower_id = 0 |
int | m_tower_id_online = 0 |
int | m_posneg = 0 |
float | m_centre_eta =0 |
float | m_centre_phi =0 |
float | m_centre_phi_toPI =0 |
std::vector< Identifier > | m_EM_scID |
std::vector< Identifier > | m_HAD_scID |
std::vector< int > | m_et |
std::vector< float > | m_et_float_raw |
std::vector< int > | m_TTowerArea { 1, 1} |
std::vector< int > | m_TTowerAreaInv { 1, 1} |
int | m_fcal_layer = -1 |
int | m_NoiseForMet [2] = {0} |
int | m_NoiseForJet [2] = {0} |
int | m_minEt_pileup_thr = -999 |
int | m_maxEt_pileup_thr = -999 |
bool | m_EM_sat = false |
bool | m_HAD_sat = false |
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold:
LVL1::jTower::jTower | ( | ) |
LVL1::jTower::jTower | ( | int | ieta, |
int | iphi, | ||
int | towerid, | ||
int | posneg, | ||
float | centre_eta = -1.0 , |
||
float | centre_phi = -1.0 , |
||
int | fcal_layer = -1 |
||
) |
constructs a tower and sets the coordinates and identifier
Definition at line 41 of file jTower.cxx.
|
virtualdefault |
Destructor.
void LVL1::jTower::addET | ( | float | et, |
int | cell | ||
) |
Add to ET of a specified cell in MeV.
Add ET to a specified cell.
Definition at line 88 of file jTower.cxx.
void LVL1::jTower::clear_EM_scIDs | ( | ) |
Clear and resize Identifier value vector.
Clear and resize EM SC Identifier value vector.
Definition at line 67 of file jTower.cxx.
void LVL1::jTower::clear_HAD_scIDs | ( | ) |
Clear and resize HAD SC Identifier value vector.
Definition at line 73 of file jTower.cxx.
void LVL1::jTower::clearET | ( | ) |
Clear supercell ET values.
Clear and resize ET value vector.
Definition at line 58 of file jTower.cxx.
void LVL1::jTower::Do_LAr_encoding | ( | ) |
|
inline |
|
inline |
|
inline |
int LVL1::jTower::getET | ( | unsigned int | layer, |
int | cell = 0 |
||
) | const |
Get ET of a specified cell in MeV.
Return ET of specified supercell.
Check cell index in range for layer
Definition at line 179 of file jTower.cxx.
|
inline |
float LVL1::jTower::getET_float | ( | unsigned int | layer, |
int | cell = 0 |
||
) | const |
Get ET of a specified cell in MeV FLOAT VERSION.
Return ET of specified supercell FLOAT VERSION.
Check cell index in range for layer
Definition at line 190 of file jTower.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::vector< int > LVL1::jTower::getLayerETvec | ( | unsigned int | layer | ) | const |
Get vector of ET values for a given layer in MeV.
Return supercell ET values for specified layer.
Create empty vector of data
Check cell index in range for layer
Fill output vector
Definition at line 226 of file jTower.cxx.
std::vector< float > LVL1::jTower::getLayerETvec_float | ( | unsigned int | layer | ) | const |
Get vector of ET values for a given layer in MeV FLOAT VERSION.
Return supercell ET values for specified layer FLOAT VERSION.
Create empty vector of data
Check cell index in range for layer
Fill output vector
Definition at line 242 of file jTower.cxx.
std::vector< Identifier > LVL1::jTower::getLayerSCIDs | ( | unsigned int | layer | ) | const |
Definition at line 285 of file jTower.cxx.
int LVL1::jTower::getLayerTotalET | ( | unsigned int | layer | ) | const |
float LVL1::jTower::getLayerTotalET_float | ( | unsigned int | layer | ) | const |
Get total ET sum of all cells in a given layer in MeV FLOAT VERSION.
Return supercell ET values for specified layer FLOAT VERSION.
Definition at line 272 of file jTower.cxx.
int LVL1::jTower::getNoiseForJet | ( | int | layer | ) | const |
Definition at line 350 of file jTower.cxx.
int LVL1::jTower::getNoiseForMet | ( | int | layer | ) | const |
Definition at line 341 of file jTower.cxx.
|
inline |
int LVL1::jTower::getTotalET | ( | ) | const |
float LVL1::jTower::getTotalET_float | ( | ) | const |
Get ET sum of all cells in the jTower in MeV FLOAT VERSION.
Return ET of all supercells together FLOAT VERSION.
Definition at line 213 of file jTower.cxx.
|
inline |
int LVL1::jTower::getTTowerArea | ( | int | layer | ) | const |
Definition at line 324 of file jTower.cxx.
int LVL1::jTower::getTTowerAreaInv | ( | int | layer | ) | const |
Definition at line 332 of file jTower.cxx.
int LVL1::jTower::iEta | ( | ) | const |
int LVL1::jTower::iPhi | ( | ) | const |
void LVL1::jTower::recordMD_ET | ( | float | et, |
int | cell | ||
) |
Add to ET of a specified cell.
void LVL1::jTower::set_Et | ( | int | layer, |
int | et | ||
) |
void LVL1::jTower::set_LAr_Et | ( | Identifier | ID, |
int | cell, | ||
float | et, | ||
int | layer | ||
) |
Set LAr supercell position ID.
Set supercell position ID and ET.
Check cell index in range for layer
Definition at line 125 of file jTower.cxx.
void LVL1::jTower::set_TileCal_Et | ( | int | layer, |
int | et | ||
) |
Definition at line 108 of file jTower.cxx.
void LVL1::jTower::setCentreEta | ( | float | ieta | ) |
Add to eta/phi values of a specified tower.
Definition at line 298 of file jTower.cxx.
void LVL1::jTower::setCentrePhi | ( | float | iphi | ) |
Definition at line 306 of file jTower.cxx.
|
inline |
|
inline |
void LVL1::jTower::setiEta | ( | int | ieta | ) |
Definition at line 302 of file jTower.cxx.
void LVL1::jTower::setiPhi | ( | int | iphi | ) |
Definition at line 312 of file jTower.cxx.
|
inline |
void LVL1::jTower::setNoiseForJet | ( | int | noiseVal, |
int | layer | ||
) |
Definition at line 345 of file jTower.cxx.
void LVL1::jTower::setNoiseForMet | ( | int | noiseVal, |
int | layer | ||
) |
Noise values for each layer and object.
Definition at line 336 of file jTower.cxx.
void LVL1::jTower::setOnlineID | ( | int | tower_id_online | ) |
Definition at line 316 of file jTower.cxx.
void LVL1::jTower::setPosNeg | ( | int | posneg | ) |
Definition at line 79 of file jTower.cxx.
void LVL1::jTower::setTTowerArea | ( | int | area, |
int | layer | ||
) |
Add to Area values of a specified tower.
Definition at line 320 of file jTower.cxx.
void LVL1::jTower::setTTowerAreaInv | ( | int | area, |
int | layer | ||
) |
Add to Area inverted values of a specified tower.
Definition at line 328 of file jTower.cxx.
|
private |
|
private |
|
private |
|
private |