![]() |
ATLAS Offline Software
|
The TriggerTowerKey object provides the key for each trigger tower depending on its eta-phi coords. More...
#include <TriggerTowerKey.h>
Public Types | |
enum | TriggerTowerRegion { TTBarrel =0, TTEndCap1 =1, TTEndCap2 =2, TTFCAL =3, TTRegionError =999 } |
Public Member Functions | |
TriggerTowerKey (double m_phi, double m_eta) | |
takes phi and eta and constructs a TriggerTowerKey object which can return the key for this coord *todo This method must be phased out - it will not work when this class simulates the hardware completely More... | |
TriggerTowerKey () | |
constructs a TriggerTowerKey object More... | |
virtual | ~TriggerTowerKey () |
virtual unsigned int | ttKey (const TriggerTower &tower) |
returns the key of the passed tower More... | |
unsigned int | ttKey (const CaloCell &calocell) |
returns the key of the passed calo cell More... | |
unsigned int | ttKey (const double phi, const double eta) |
returns trigger tower key of passed coords More... | |
TriggerTowerRegion | region (const Coordinate &coord) const |
returns the TT region that the coordinate corresponds to. More... | |
double | dEta (const Coordinate &coord) const |
returns eta width of trigger tower at coordinate coord More... | |
double | dPhi (const Coordinate &coord) const |
returns phi height of trigger tower at coordinate coord More... | |
virtual double | eta () const |
returns the centre of the TT at eta_coord: More... | |
virtual double | phi () const |
returns phi coordinate of centre of relevant trigger tower. More... | |
unsigned int | key (double phi, double eta) |
calculates a map key from passed phi, eta coordinates More... | |
unsigned int | key (const Coordinate &coord) |
returns the key of the passed Coordinate More... | |
Coordinate | coord () const |
return central coords of current key value. More... | |
Protected Member Functions | |
ICoordinate * | convertCoordsToIntegers (double phi, double eta) |
converts the coordinates and corrects for overflows etc. More... | |
virtual int | sign (int temp) const |
returns -1 if temp is -ve and +1 if it is +ve. More... | |
virtual int | sign (double temp) const |
returns -1 if temp is -ve and +1 if it is +ve. More... | |
int | round (double a) const |
rounds number to nearest whole number More... | |
int | sharpRound (double a) const |
rounds number as follows (-1.0 to 0.0) -> -1, (0.0 to 1.0) -> 0, (1.0 to 2.0)->1 etc. More... | |
int | sharpRound2 (int a, int b) const |
divides a/b and returns a number as follows (where +b means +ve b): if 0<a<+b, then n=1, if +b<a<+2b, n=2, if -b<a<0, n=-1, if -2b<a<-b, n=-2 More... | |
void | setupThisKeyValues () |
Protected Attributes | |
int | m_iphi |
integer phi coord More... | |
int | m_ieta |
integer eta coord More... | |
double | m_eta |
eta coordinate of key More... | |
double | m_phi |
phi coordinate of key More... | |
int | m_phiBin |
phi bin More... | |
int | m_etaBin |
eta bin More... | |
double | m_centralPhi |
this is the coordinate of the centre of the relevant trigger tower. More... | |
double | m_centralEta |
this is the coordinate of the centre of the relevant trigger tower. More... | |
bool | m_debug |
turns DEBUG code on and off More... | |
Private Member Functions | |
BinAndCoord * | calculateTriggerBin (ICoordinate *iCoord) |
converts integer phi, eta coordinates to phi, eta trigger bins. More... | |
The TriggerTowerKey object provides the key for each trigger tower depending on its eta-phi coords.
The key is an integer number that uniquely identifies each tower, and is needed by the STL map container: the map holds trigger towers and we retrieve them using their keys.
Definition at line 56 of file TriggerTowerKey.h.
Enumerator | |
---|---|
TTBarrel | |
TTEndCap1 | |
TTEndCap2 | |
TTFCAL | |
TTRegionError |
Definition at line 64 of file TriggerTowerKey.h.
LVL1::TriggerTowerKey::TriggerTowerKey | ( | double | m_phi, |
double | m_eta | ||
) |
takes phi and eta and constructs a TriggerTowerKey object which can return the key for this coord *todo This method must be phased out - it will not work when this class simulates the hardware completely
Definition at line 36 of file TriggerTowerKey.cxx.
LVL1::TriggerTowerKey::TriggerTowerKey | ( | ) |
|
virtual |
Definition at line 56 of file TriggerTowerKey.cxx.
|
privatevirtual |
converts integer phi, eta coordinates to phi, eta trigger bins.
Implements LVL1::KeyUtilities.
Definition at line 61 of file TriggerTowerKey.cxx.
|
protectedinherited |
converts the coordinates and corrects for overflows etc.
For instance, if phi is negative this routine converts to the equivalent positive position.
For instance, if phi is negative this routine converts to the equivalent positive position. *todo tidy up a bit.
Definition at line 110 of file KeyUtilities.cxx.
|
inherited |
return central coords of current key value.
Definition at line 199 of file KeyUtilities.cxx.
|
virtual |
returns eta width of trigger tower at coordinate coord
Implements LVL1::KeyUtilities.
Definition at line 171 of file TriggerTowerKey.cxx.
|
virtual |
returns phi height of trigger tower at coordinate coord
Implements LVL1::KeyUtilities.
Definition at line 181 of file TriggerTowerKey.cxx.
|
virtualinherited |
returns the centre of the TT at eta_coord:
returns the eta coord of the centre of the relevent trigger tower
Definition at line 150 of file KeyUtilities.cxx.
|
inherited |
returns the key of the passed Coordinate
returns trigger tower key of passed Coordinate
Definition at line 101 of file KeyUtilities.cxx.
|
inherited |
calculates a map key from passed phi, eta coordinates
returns key
calculates a map key from passed phi, eta coordinates
Definition at line 82 of file KeyUtilities.cxx.
|
virtualinherited |
returns phi coordinate of centre of relevant trigger tower.
returns phi coordinate of the centre of the relevent trigger tower.
Definition at line 159 of file KeyUtilities.cxx.
LVL1::TriggerTowerKey::TriggerTowerRegion LVL1::TriggerTowerKey::region | ( | const Coordinate & | coord | ) | const |
returns the TT region that the coordinate corresponds to.
Definition at line 158 of file TriggerTowerKey.cxx.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
rounds number as follows (-1.0 to 0.0) -> -1, (0.0 to 1.0) -> 0, (1.0 to 2.0)->1 etc.
Definition at line 190 of file KeyUtilities.cxx.
|
protectedinherited |
divides a/b and returns a number as follows (where +b means +ve b): if 0<a<+b, then n=1, if +b<a<+2b, n=2, if -b<a<0, n=-1, if -2b<a<-b, n=-2
Definition at line 194 of file KeyUtilities.cxx.
|
protectedvirtualinherited |
returns -1 if temp is -ve and +1 if it is +ve.
returns 0 if temp =0
Definition at line 169 of file KeyUtilities.cxx.
|
protectedvirtualinherited |
returns -1 if temp is -ve and +1 if it is +ve.
returns 0 if temp =0
Definition at line 164 of file KeyUtilities.cxx.
returns the key of the passed calo cell
Definition at line 148 of file TriggerTowerKey.cxx.
returns trigger tower key of passed coords
Definition at line 154 of file TriggerTowerKey.cxx.
|
virtual |
returns the key of the passed tower
Definition at line 143 of file TriggerTowerKey.cxx.
|
protectedinherited |
this is the coordinate of the centre of the relevant trigger tower.
Definition at line 122 of file KeyUtilities.h.
|
protectedinherited |
this is the coordinate of the centre of the relevant trigger tower.
Definition at line 119 of file KeyUtilities.h.
|
protectedinherited |
turns DEBUG code on and off
Definition at line 124 of file KeyUtilities.h.
|
protectedinherited |
eta coordinate of key
Definition at line 110 of file KeyUtilities.h.
|
protectedinherited |
eta bin
Definition at line 116 of file KeyUtilities.h.
|
protectedinherited |
integer eta coord
Definition at line 108 of file KeyUtilities.h.
|
protectedinherited |
integer phi coord
Definition at line 106 of file KeyUtilities.h.
|
protectedinherited |
phi coordinate of key
Definition at line 112 of file KeyUtilities.h.
|
protectedinherited |
phi bin
Definition at line 114 of file KeyUtilities.h.