![]() |
ATLAS Offline Software
|
The JetElementKeyBase object provides the key for each JetElement or JetInput depending on its eta,phi coords. More...
#include <JetElementKeyBase.h>
Public Types | |
| enum | JERegion { Barrel =0 , EndBarrel =1 , EndCap1 =2 , EndCap2 =3 , EndCap3 =4 , FCAL =5 } |
Public Member Functions | |
| virtual | ~JetElementKeyBase () |
| 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 | leftEta (const double phi, const double eta) |
| 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 | upPhi (const double phi, const double eta) |
| returns coord of next JE in +ve phi dir. | |
| Coordinate | rightEta (const Coordinate coord) |
| returns eta coord of JE in +ve eta dir. | |
| Coordinate | leftEta (const Coordinate coord) |
| returns key of JE in -ve eta dir. | |
| Coordinate | downPhi (const Coordinate coord) |
| 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 | upperRight (const double phi, const double eta) |
| Coordinate | lowerLeft (const double phi, const double eta) |
| Coordinate | lowerRight (const double phi, const double eta) |
| Coordinate | upperLeft (const Coordinate coord) |
| Coordinate | upperRight (const Coordinate coord) |
| Coordinate | lowerLeft (const Coordinate coord) |
| 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 | |
| JetElementKeyBase (double phi, double eta) | |
| takes phi and eta and constructs a JetElementKeyBase object which can return the key for this coord | |
| JetElementKeyBase (const Coordinate coord) | |
| constructs a JetElementKeyBase object | |
| JetElementKeyBase () | |
| constructs a JetElementKeyBase object | |
| 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 JetElementKeyBase object provides the key for each JetElement or JetInput 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 48 of file JetElementKeyBase.h.
|
virtual |
Definition at line 63 of file JetElementKeyBase.cxx.
|
protected |
takes phi and eta and constructs a JetElementKeyBase object which can return the key for this coord
Definition at line 34 of file JetElementKeyBase.cxx.
|
protected |
constructs a JetElementKeyBase object
Definition at line 54 of file JetElementKeyBase.cxx.
|
protected |
constructs a JetElementKeyBase object
Definition at line 44 of file JetElementKeyBase.cxx.
|
private |
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.
|
privatevirtual |
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.
| double LVL1::JetElementKeyBase::dEta | ( | ) | const |
return width of JE
return width of this JE
Definition at line 381 of file JetElementKeyBase.cxx.
|
virtual |
return width of JE
Implements LVL1::KeyUtilities.
Definition at line 386 of file JetElementKeyBase.cxx.
| double LVL1::JetElementKeyBase::dEta | ( | const double | phi, |
| const double | eta ) const |
return width of JE
return width of JE at (phi,eta)
Definition at line 373 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::downPhi | ( | const Coordinate | coord | ) |
returns coord of next JE in -ve phi dir.
Definition at line 299 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::downPhi | ( | const double | phi, |
| const double | eta ) |
returns coord of next JE in -ve phi dir.
Definition at line 283 of file JetElementKeyBase.cxx.
| unsigned int LVL1::JetElementKeyBase::downPhiKey | ( | const double | phi, |
| const double | eta ) |
returns key of next JE in -ve phi dir.
Definition at line 305 of file JetElementKeyBase.cxx.
| double LVL1::JetElementKeyBase::dPhi | ( | ) | const |
return height of JE
return height of this JE
Definition at line 363 of file JetElementKeyBase.cxx.
|
virtual |
return height of JE
Implements LVL1::KeyUtilities.
Definition at line 368 of file JetElementKeyBase.cxx.
| double LVL1::JetElementKeyBase::dPhi | ( | const double | phi, |
| const double | eta ) const |
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.
| Coordinate LVL1::JetElementKeyBase::getCentre | ( | const Coordinate | coord | ) |
returns the central coordinate of the JE which contains the passed coord
Definition at line 491 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::getCentre | ( | const double | phi, |
| const double | eta ) |
returns the central coordinate of the JE which contains the passed coord
Definition at line 482 of file JetElementKeyBase.cxx.
| bool LVL1::JetElementKeyBase::isFCAL | ( | double | eta | ) | const |
returns TRUE if this coordinate is in the FCAL
Definition at line 423 of file JetElementKeyBase.cxx.
|
virtual |
returns the key of the passed Coordinate
returns trigger tower key of passed Coordinate
Definition at line 171 of file JetElementKeyBase.cxx.
|
virtual |
returns the key of the passed coords
returns trigger tower key of passed coords
Definition at line 165 of file JetElementKeyBase.cxx.
|
virtual |
returns key of passed jetelement
returns the key of the passed tower
Definition at line 156 of file JetElementKeyBase.cxx.
|
virtual |
returns key of passed tower
Definition at line 150 of file JetElementKeyBase.cxx.
| JetElementKeyBase::JERegion LVL1::JetElementKeyBase::jeRegion | ( | const Coordinate & | coord | ) | const |
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.
| Coordinate LVL1::JetElementKeyBase::leftEta | ( | const Coordinate | coord | ) |
returns key of JE in -ve eta dir.
Definition at line 206 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::leftEta | ( | const double | phi, |
| const double | eta ) |
returns key of JE in -ve eta dir.
Definition at line 179 of file JetElementKeyBase.cxx.
| unsigned int LVL1::JetElementKeyBase::leftEtaKey | ( | const double | phi, |
| const double | eta ) |
| Coordinate LVL1::JetElementKeyBase::lowerLeft | ( | const Coordinate | coord | ) |
Definition at line 344 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::lowerLeft | ( | const double | phi, |
| const double | eta ) |
| Coordinate LVL1::JetElementKeyBase::lowerRight | ( | const Coordinate | coord | ) |
Definition at line 349 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::lowerRight | ( | const double | phi, |
| const double | eta ) |
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.
| unsigned int LVL1::JetElementKeyBase::region | ( | double | eta | ) | const |
returns region number at eta, where region is:
Definition at line 390 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::rightEta | ( | const Coordinate | coord | ) |
returns eta coord of JE in +ve eta dir.
Definition at line 250 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::rightEta | ( | const double | phi, |
| const double | eta ) |
Functions for finding coordinates of neighbouring JEs.
returns eta coord of JE in +ve eta dir.
Definition at line 223 of file JetElementKeyBase.cxx.
| unsigned int LVL1::JetElementKeyBase::rightEtaKey | ( | const double | phi, |
| const double | eta ) |
|
protectedinherited |
rounds number to nearest whole number
Definition at line 180 of file KeyUtilities.cxx.
|
protected |
Does same as setupRegionData, except in FCAL where uses phi granularity appropriate for the jet trigger.
Definition at line 456 of file JetElementKeyBase.cxx.
|
protected |
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.
| Coordinate LVL1::JetElementKeyBase::upperLeft | ( | const Coordinate | coord | ) |
Definition at line 334 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::upperLeft | ( | const double | phi, |
| const double | eta ) |
Definition at line 310 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::upperRight | ( | const Coordinate | coord | ) |
Definition at line 339 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::upperRight | ( | const double | phi, |
| const double | eta ) |
| Coordinate LVL1::JetElementKeyBase::upPhi | ( | const Coordinate | coord | ) |
returns coord of next JE in +ve phi dir.
Definition at line 272 of file JetElementKeyBase.cxx.
| Coordinate LVL1::JetElementKeyBase::upPhi | ( | const double | phi, |
| const double | eta ) |
returns coord of next JE in +ve phi dir.
Definition at line 256 of file JetElementKeyBase.cxx.
| unsigned int LVL1::JetElementKeyBase::upPhiKey | ( | const double | phi, |
| const double | eta ) |
|
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.
|
private |
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.
|
private |
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.
|
private |
holds height of JEs in regions:
Definition at line 165 of file JetElementKeyBase.h.
|
private |
holds width of JEs in regions:
Definition at line 163 of file JetElementKeyBase.h.