![]() |
ATLAS Offline Software
|
The JetElementKey object provides the key for each JetElement depending on its eta,phi coords (JetElementKey differs from JetInputKey in that ElementKey has 0.4 FCAL granularity, while InputKey has 0.2 FCAL granularity). More...
#include <JetElementKey.h>
Public Types | |
| enum | JERegion { Barrel =0 , EndBarrel =1 , EndCap1 =2 , EndCap2 =3 , EndCap3 =4 , FCAL =5 } |
Public Member Functions | |
| JetElementKey (double phi, double eta) | |
| takes phi and eta and constructs a JetElementKey object which can return the key for this coord | |
| JetElementKey (const Coordinate coord) | |
| constructs a JetElementKey object | |
| JetElementKey () | |
| constructs a JetElementKey object | |
| virtual unsigned int | jeKey (const xAOD::TriggerTower &tower) |
| returns key of passed tower | |
| virtual unsigned int | jeKey (const xAOD::JetElement &jetElement) |
| returns key of passed jetelement | |
| virtual unsigned int | jeKey (const double phi, const double eta) |
| returns the key of the passed coords | |
| virtual unsigned int | jeKey (const Coordinate coord) |
| returns the key of the passed Coordinate | |
| unsigned int | leftEtaKey (const double phi, const double eta) |
| returns key of JE in +ve eta dir. | |
| unsigned int | rightEtaKey (const double phi, const double eta) |
| returns key of JE in -ve eta dir. | |
| unsigned int | upPhiKey (const double phi, const double eta) |
| returns key of next JE in +ve phi dir. | |
| unsigned int | downPhiKey (const double phi, const double eta) |
| returns key of next JE in -ve phi dir. | |
| Coordinate | getCentre (const double phi, const double eta) |
| returns the central coordinate of the JE which contains the passed coord | |
| Coordinate | getCentre (const Coordinate coord) |
| returns the central coordinate of the JE which contains the passed coord | |
| Coordinate | rightEta (const double phi, const double eta) |
| Functions for finding coordinates of neighbouring JEs. | |
| Coordinate | rightEta (const Coordinate coord) |
| returns eta coord of JE in +ve eta dir. | |
| Coordinate | leftEta (const double phi, const double eta) |
| returns key of JE in -ve eta dir. | |
| Coordinate | leftEta (const Coordinate coord) |
| returns key of JE in -ve eta dir. | |
| Coordinate | downPhi (const double phi, const double eta) |
| returns coord of next JE in -ve phi dir. | |
| Coordinate | downPhi (const Coordinate coord) |
| returns coord of next JE in -ve phi dir. | |
| Coordinate | upPhi (const double phi, const double eta) |
| returns coord of next JE in +ve phi dir. | |
| Coordinate | upPhi (const Coordinate coord) |
| returns coord of next JE in +ve phi dir. | |
| Coordinate | upperLeft (const double phi, const double eta) |
| Coordinate | upperLeft (const Coordinate coord) |
| Coordinate | upperRight (const double phi, const double eta) |
| Coordinate | upperRight (const Coordinate coord) |
| Coordinate | lowerLeft (const double phi, const double eta) |
| Coordinate | lowerLeft (const Coordinate coord) |
| Coordinate | lowerRight (const double phi, const double eta) |
| Coordinate | lowerRight (const Coordinate coord) |
| double | dPhi (const double phi, const double eta) const |
| return height of JE | |
| double | dPhi () const |
| return height of JE | |
| double | dPhi (const Coordinate &coord) const |
| return height of JE | |
| double | dEta (const double phi, const double eta) const |
| return width of JE | |
| double | dEta () const |
| return width of JE | |
| double | dEta (const Coordinate &coord) const |
| return width of JE | |
| unsigned int | region (double eta) const |
| returns region number at eta, where region is: | |
| JERegion | jeRegion (const Coordinate &coord) const |
| bool | isFCAL (double eta) const |
| returns TRUE if this coordinate is in the FCAL | |
| virtual double | eta () const |
| returns the centre of the TT at eta_coord: | |
| virtual double | phi () const |
| returns phi coordinate of centre of relevant trigger tower. | |
| unsigned int | key (double phi, double eta) |
| calculates a map key from passed phi, eta coordinates | |
| unsigned int | key (const Coordinate &coord) |
| returns the key of the passed Coordinate | |
| Coordinate | coord () const |
| return central coords of current key value. | |
Protected Member Functions | |
| void | setupRegionData () |
| get region data from TrigT1CaloDefs and put in more useful format - vectors | |
| void | setupJetRegionData () |
| Does same as setupRegionData, except in FCAL where uses phi granularity appropriate for the jet trigger. | |
| ICoordinate * | convertCoordsToIntegers (double phi, double eta) |
| converts the coordinates and corrects for overflows etc. | |
| virtual int | sign (int temp) const |
| returns -1 if temp is -ve and +1 if it is +ve. | |
| virtual int | sign (double temp) const |
| returns -1 if temp is -ve and +1 if it is +ve. | |
| int | round (double a) const |
| rounds number to nearest whole number | |
| 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. | |
| int | sharpRound2 (int a, int b) const |
| divides a/b and returns a number as follows (where +b means +ve b): if 0 | |
| void | setupThisKeyValues () |
Protected Attributes | |
| int | m_iphi |
| integer phi coord | |
| int | m_ieta |
| integer eta coord | |
| double | m_eta |
| eta coordinate of key | |
| double | m_phi |
| phi coordinate of key | |
| int | m_phiBin |
| phi bin | |
| int | m_etaBin |
| eta bin | |
| double | m_centralPhi |
| this is the coordinate of the centre of the relevant trigger tower. | |
| double | m_centralEta |
| this is the coordinate of the centre of the relevant trigger tower. | |
| bool | m_debug |
| turns DEBUG code on and off | |
Private Member Functions | |
| BinAndCoord * | calculateTriggerBin (ICoordinate *iCoord) |
| converts integer phi, eta coordinates to phi, eta trigger bins. | |
| void | analCoordChecking (const Coordinate &coord) |
| this is a bit over the top, but it looks to see if the calculated coordinate matches a coordinate centre that JetElementKeyBase would return. | |
Private Attributes | |
| bool | m_debugKeyBase |
| set to true to turn debugging info on | |
| std::vector< double > | m_regionEtaCentre |
| holds central coords of JEs in regions: Region Eta 0 <2.2 1 2.2-2.4 2 2.4-2.7 3 2.7-2.9 4 2.9-3.2 5 3.2-4.9 | |
| std::vector< double > | m_regionWidth |
| holds width of JEs in regions: | |
| std::vector< double > | m_regionHeight |
| holds height of JEs in regions: | |
The JetElementKey object provides the key for each JetElement depending on its eta,phi coords (JetElementKey differs from JetInputKey in that ElementKey has 0.4 FCAL granularity, while InputKey has 0.2 FCAL granularity).
As 2 implementations are required for the Jet and Energy triggers, differing only in the FCAL granularity, we solve this problem by inheritance. Thus JetElementKey now inherits from JetElementKeyBase (which is essentially the original JetElementKey, & itself inherits from KeyUtilities).
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 46 of file JetElementKey.h.
|
inherited |
| LVL1::JetElementKey::JetElementKey | ( | double | phi, |
| double | eta ) |
takes phi and eta and constructs a JetElementKey object which can return the key for this coord
Definition at line 26 of file JetElementKey.cxx.
| LVL1::JetElementKey::JetElementKey | ( | const Coordinate | coord | ) |
constructs a JetElementKey object
Definition at line 40 of file JetElementKey.cxx.
| LVL1::JetElementKey::JetElementKey | ( | ) |
constructs a JetElementKey object
Definition at line 33 of file JetElementKey.cxx.
|
privateinherited |
this is a bit over the top, but it looks to see if the calculated coordinate matches a coordinate centre that JetElementKeyBase would return.
It doesn't return any errors or anything as it's purely being used in tests external to Athena
Definition at line 502 of file JetElementKeyBase.cxx.
|
privatevirtualinherited |
converts integer phi, eta coordinates to phi, eta trigger bins.
Returns coordinates of centre of JEs
Implements LVL1::KeyUtilities.
Definition at line 70 of file JetElementKeyBase.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 105 of file KeyUtilities.cxx.
|
inherited |
return central coords of current key value.
Definition at line 199 of file KeyUtilities.cxx.
|
inherited |
return width of JE
return width of this JE
Definition at line 381 of file JetElementKeyBase.cxx.
|
virtualinherited |
return width of JE
Implements LVL1::KeyUtilities.
Definition at line 386 of file JetElementKeyBase.cxx.
|
inherited |
return width of JE
return width of JE at (phi,eta)
Definition at line 373 of file JetElementKeyBase.cxx.
|
inherited |
returns coord of next JE in -ve phi dir.
Definition at line 299 of file JetElementKeyBase.cxx.
|
inherited |
returns coord of next JE in -ve phi dir.
Definition at line 283 of file JetElementKeyBase.cxx.
|
inherited |
returns key of next JE in -ve phi dir.
Definition at line 305 of file JetElementKeyBase.cxx.
|
inherited |
return height of JE
return height of this JE
Definition at line 363 of file JetElementKeyBase.cxx.
|
virtualinherited |
return height of JE
Implements LVL1::KeyUtilities.
Definition at line 368 of file JetElementKeyBase.cxx.
|
inherited |
return height of JE
return height of JE at (phi,eta)
Definition at line 355 of file JetElementKeyBase.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 145 of file KeyUtilities.cxx.
|
inherited |
returns the central coordinate of the JE which contains the passed coord
Definition at line 491 of file JetElementKeyBase.cxx.
|
inherited |
returns the central coordinate of the JE which contains the passed coord
Definition at line 482 of file JetElementKeyBase.cxx.
|
inherited |
returns TRUE if this coordinate is in the FCAL
Definition at line 423 of file JetElementKeyBase.cxx.
|
virtualinherited |
returns the key of the passed Coordinate
returns trigger tower key of passed Coordinate
Definition at line 171 of file JetElementKeyBase.cxx.
|
virtualinherited |
returns the key of the passed coords
returns trigger tower key of passed coords
Definition at line 165 of file JetElementKeyBase.cxx.
|
virtualinherited |
returns key of passed jetelement
returns the key of the passed tower
Definition at line 156 of file JetElementKeyBase.cxx.
|
virtualinherited |
returns key of passed tower
Definition at line 150 of file JetElementKeyBase.cxx.
|
inherited |
Definition at line 408 of file JetElementKeyBase.cxx.
|
inherited |
returns the key of the passed Coordinate
returns trigger tower key of passed Coordinate
Definition at line 96 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 77 of file KeyUtilities.cxx.
|
inherited |
returns key of JE in -ve eta dir.
Definition at line 206 of file JetElementKeyBase.cxx.
|
inherited |
returns key of JE in -ve eta dir.
Definition at line 179 of file JetElementKeyBase.cxx.
|
inherited |
|
inherited |
Definition at line 344 of file JetElementKeyBase.cxx.
|
inherited |
|
inherited |
Definition at line 349 of file JetElementKeyBase.cxx.
|
inherited |
Definition at line 328 of file JetElementKeyBase.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 154 of file KeyUtilities.cxx.
|
inherited |
returns region number at eta, where region is:
Definition at line 390 of file JetElementKeyBase.cxx.
|
inherited |
returns eta coord of JE in +ve eta dir.
Definition at line 250 of file JetElementKeyBase.cxx.
|
inherited |
Functions for finding coordinates of neighbouring JEs.
returns eta coord of JE in +ve eta dir.
Definition at line 223 of file JetElementKeyBase.cxx.
|
inherited |
|
protectedinherited |
rounds number to nearest whole number
Definition at line 180 of file KeyUtilities.cxx.
|
protectedinherited |
Does same as setupRegionData, except in FCAL where uses phi granularity appropriate for the jet trigger.
Definition at line 456 of file JetElementKeyBase.cxx.
|
protectedinherited |
get region data from TrigT1CaloDefs and put in more useful format - vectors
Definition at line 429 of file JetElementKeyBase.cxx.
|
protectedinherited |
Definition at line 168 of file KeyUtilities.cxx.
|
protectedinherited |
|
protectedinherited |
divides a/b and returns a number as follows (where +b means +ve b): if 0
Definition at line 189 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.
|
protectedvirtualinherited |
returns -1 if temp is -ve and +1 if it is +ve.
returns 0 if temp =0
Definition at line 159 of file KeyUtilities.cxx.
|
inherited |
Definition at line 334 of file JetElementKeyBase.cxx.
|
inherited |
Definition at line 310 of file JetElementKeyBase.cxx.
|
inherited |
Definition at line 339 of file JetElementKeyBase.cxx.
|
inherited |
|
inherited |
returns coord of next JE in +ve phi dir.
Definition at line 272 of file JetElementKeyBase.cxx.
|
inherited |
returns coord of next JE in +ve phi dir.
Definition at line 256 of file JetElementKeyBase.cxx.
|
inherited |
|
protectedinherited |
this is the coordinate of the centre of the relevant trigger tower.
Definition at line 112 of file KeyUtilities.h.
|
protectedinherited |
this is the coordinate of the centre of the relevant trigger tower.
Definition at line 109 of file KeyUtilities.h.
|
protectedinherited |
turns DEBUG code on and off
Definition at line 114 of file KeyUtilities.h.
|
privateinherited |
set to true to turn debugging info on
Definition at line 152 of file JetElementKeyBase.h.
|
protectedinherited |
eta coordinate of key
Definition at line 100 of file KeyUtilities.h.
|
protectedinherited |
eta bin
Definition at line 106 of file KeyUtilities.h.
|
protectedinherited |
integer eta coord
Definition at line 98 of file KeyUtilities.h.
|
protectedinherited |
integer phi coord
Definition at line 96 of file KeyUtilities.h.
|
protectedinherited |
phi coordinate of key
Definition at line 102 of file KeyUtilities.h.
|
protectedinherited |
phi bin
Definition at line 104 of file KeyUtilities.h.
|
privateinherited |
holds central coords of JEs in regions: Region Eta 0 <2.2 1 2.2-2.4 2 2.4-2.7 3 2.7-2.9 4 2.9-3.2 5 3.2-4.9
Definition at line 161 of file JetElementKeyBase.h.
|
privateinherited |
holds height of JEs in regions:
Definition at line 165 of file JetElementKeyBase.h.
|
privateinherited |
holds width of JEs in regions:
Definition at line 163 of file JetElementKeyBase.h.