ATLAS Offline Software
|
The gTower class is an interface object for gFEX trigger algorithms The purposes are twofold: More...
#include <gTower.h>
Public Member Functions | |
gTower () | |
Constructors. More... | |
gTower (int eta, int phi, int nphi, int id_modifier, int posneg) | |
constructs a tower and sets the coordinates and identifier More... | |
~gTower () | |
Destructor. More... | |
void | clearET () |
Clear supercell ET values. More... | |
void | clear_scIDs () |
Clear and resize Identifier value vector. More... | |
void | addET (float et, int layer) |
Add ET in MeV, layer refers to EM or HAD (Tile) More... | |
int | getID () const |
Add to ET More... | |
int | iEta () const |
Get coordinates of tower. More... | |
int | iPhi () const |
float | eta () const |
float | phi () const |
void | setEta (const float thiseta) |
int | id () const |
float | constid () const |
int | getET () const |
Get ET (total) in MeV. More... | |
float | getET_float () const |
Get ET (total) in MeV FLOAT VERSION. More... | |
int | getET_EM_float () const |
Get ET in MeV from EM calo FLOAT VERSION. More... | |
int | getET_HAD_float () const |
Get ET in MeV from HAD calo FLOAT VERSION. More... | |
void | setET () |
void | setTotalEt (int totEt) |
void | setSCID (Identifier ID) |
Set supercell position ID. More... | |
const std::vector< Identifier > & | getSCIDs () const |
bool | noiseCut (int et) const |
Apply supercell noise cut. More... | |
void | setPosNeg (int posneg) |
int | getPosNeg () const |
int | getFWID (int &iPhiFW, int &iEtaFW) const |
Calculates and returns the firmware ID, as well as iPhi and iEta in FT/global scheme. More... | |
int | getFWID () const |
Calculates and returns the firmware ID. More... | |
void | getEtaPhi (float &Eta, float &Phi, int iEta, int iPhi) const |
Calculates eta and phi from ieta and iphi. More... | |
void | setIsSaturated (char isSaturated) |
Sets saturation flag. More... | |
char | isSaturated () const |
Returns true if is saturated. More... | |
Private Attributes | |
int | m_eta = 0 |
Internal data. More... | |
int | m_phi = 0 |
int | m_et = 0 |
float | m_eta_float = 0 |
float | m_phi_float = 0 |
float | m_et_float = 0 |
std::vector< float > | m_et_float_perlayer |
std::vector< Identifier > | m_scID |
int | m_tower_id = -9999999 |
int | m_posneg = 0 |
int | m_noisecut = -100000 |
char | m_saturated = 0 |
The gTower class is an interface object for gFEX trigger algorithms The purposes are twofold:
LVL1::gTower::gTower | ( | ) |
Constructors.
Definition at line 18 of file gTower.cxx.
LVL1::gTower::gTower | ( | int | eta, |
int | phi, | ||
int | nphi, | ||
int | id_modifier, | ||
int | posneg | ||
) |
constructs a tower and sets the coordinates and identifier
Definition at line 25 of file gTower.cxx.
void LVL1::gTower::addET | ( | float | et, |
int | layer | ||
) |
void LVL1::gTower::clear_scIDs | ( | ) |
Clear and resize Identifier value vector.
Definition at line 45 of file gTower.cxx.
void LVL1::gTower::clearET | ( | ) |
Clear supercell ET values.
Clear and resize ET value vector.
Definition at line 37 of file gTower.cxx.
int LVL1::gTower::getET | ( | ) | const |
int LVL1::gTower::getET_EM_float | ( | ) | const |
Get ET in MeV from EM calo FLOAT VERSION.
Return ET for EM.
Definition at line 157 of file gTower.cxx.
float LVL1::gTower::getET_float | ( | ) | const |
Get ET (total) in MeV FLOAT VERSION.
Return ET (total) FLOAT VERSION.
Definition at line 149 of file gTower.cxx.
int LVL1::gTower::getET_HAD_float | ( | ) | const |
Get ET in MeV from HAD calo FLOAT VERSION.
Return ET for HAD.
Definition at line 164 of file gTower.cxx.
void LVL1::gTower::getEtaPhi | ( | float & | Eta, |
float & | Phi, | ||
int | iEta, | ||
int | iPhi | ||
) | const |
Calculates eta and phi from ieta and iphi.
Definition at line 290 of file gTower.cxx.
int LVL1::gTower::getFWID | ( | ) | const |
Calculates and returns the firmware ID.
Definition at line 179 of file gTower.cxx.
int LVL1::gTower::getFWID | ( | int & | iPhiFW, |
int & | iEtaFW | ||
) | const |
Calculates and returns the firmware ID, as well as iPhi and iEta in FT/global scheme.
Return the firmware ID from the software ID.
Definition at line 197 of file gTower.cxx.
int LVL1::gTower::getID | ( | ) | const |
Add to ET
Return unique identifier.
Get unique ID of tower
Definition at line 119 of file gTower.cxx.
|
inline |
|
inline |
int LVL1::gTower::iEta | ( | ) | const |
int LVL1::gTower::iPhi | ( | ) | const |
Definition at line 137 of file gTower.cxx.
char LVL1::gTower::isSaturated | ( | ) | const |
Returns true if is saturated.
Definition at line 174 of file gTower.cxx.
bool LVL1::gTower::noiseCut | ( | int | et | ) | const |
void LVL1::gTower::setET | ( | ) |
Definition at line 70 of file gTower.cxx.
|
inline |
void LVL1::gTower::setIsSaturated | ( | char | isSaturated | ) |
Sets saturation flag.
Definition at line 170 of file gTower.cxx.
void LVL1::gTower::setPosNeg | ( | int | posneg | ) |
Definition at line 50 of file gTower.cxx.
void LVL1::gTower::setSCID | ( | Identifier | ID | ) |
Set supercell position ID.
Definition at line 97 of file gTower.cxx.
void LVL1::gTower::setTotalEt | ( | int | totEt | ) |
Definition at line 88 of file gTower.cxx.
|
private |
|
private |