![]() |
ATLAS Offline Software
|
This is an internal class, used in the Energy trigger. More...
#include <ModuleEnergy.h>
Public Member Functions | |
| ModuleEnergy (const xAOD::JetElementMap_t *JEContainer, unsigned int crate, unsigned int module, int JEThresholdEtSum, int JEThresholdEtMiss, const std::map< int, int > *TEMasks=0, int slice=-1) | |
| ModuleEnergy (unsigned int crate, unsigned int module, unsigned int et, unsigned int ex, unsigned int ey) | |
| ~ModuleEnergy () | |
| unsigned int | crate () const |
| which module is this? | |
| unsigned int | module () const |
| return module number | |
| unsigned int | et () const |
| return the scalar & vector sums of all JE ETs (i.e sums the energies of up to 32 contained JEs) | |
| unsigned int | ex () const |
| unsigned int | ey () const |
| int | signX () const |
| return signs of Ex and Ey for this module | |
| int | signY () const |
Private Member Functions | |
| void | getSinCos (double eta, double phi, int &cosPhi, int &sinPhi) |
| return cos, sin coefficients for a given JetElement | |
Private Attributes | |
| int | m_jetElementThresholdEtSum |
| int | m_jetElementThresholdEtMiss |
| unsigned int | m_Et |
| unsigned int | m_Ex |
| unsigned int | m_Ey |
| int | m_signX |
| int | m_signY |
| unsigned int | m_crate |
| unsigned int | m_module |
| bool | m_debug |
Static Private Attributes | |
| static const unsigned int | m_EtBits = 14 |
This is an internal class, used in the Energy trigger.
The ModuleEnergy:
Definition at line 40 of file ModuleEnergy.h.
| LVL1::ModuleEnergy::ModuleEnergy | ( | const xAOD::JetElementMap_t * | JEContainer, |
| unsigned int | crate, | ||
| unsigned int | module, | ||
| int | JEThresholdEtSum, | ||
| int | JEThresholdEtMiss, | ||
| const std::map< int, int > * | TEMasks = 0, | ||
| int | slice = -1 ) |
Set up Ex, Ey signs for this module
Look for the JetElements associated with this module
Check JE not masked in TE trigger
Use jet element if it is not in the masked list
Test for saturation
Get ET for requested time slice
Test against ETmiss algorithm threshold
Get sin, cos factors for this JetElement
Convert to Ex, Ey and sum. Replicate integer arithmetic used in hardware
Test against ETsum algorithm threshold & add if passes
Convert Ex, Ey back to 1 GeV/count integers
Check for overflows. Set ET to full scale if these occur
Definition at line 19 of file ModuleEnergy.cxx.
| LVL1::ModuleEnergy::ModuleEnergy | ( | unsigned int | crate, |
| unsigned int | module, | ||
| unsigned int | et, | ||
| unsigned int | ex, | ||
| unsigned int | ey ) |
Set up Ex, Ey signs for this module
Check for overflows. Set ET to full scale if these occur
Definition at line 102 of file ModuleEnergy.cxx.
| LVL1::ModuleEnergy::~ModuleEnergy | ( | ) |
Definition at line 140 of file ModuleEnergy.cxx.
| unsigned int LVL1::ModuleEnergy::crate | ( | ) | const |
| unsigned int LVL1::ModuleEnergy::et | ( | ) | const |
return the scalar & vector sums of all JE ETs (i.e sums the energies of up to 32 contained JEs)
return Et, Ex, Ey sums of contained JEs (up to 32 JEs)
module sums are unsigned. As a convenience, add methods to return signs for this module
Definition at line 153 of file ModuleEnergy.cxx.
| unsigned int LVL1::ModuleEnergy::ex | ( | ) | const |
Definition at line 156 of file ModuleEnergy.cxx.
| unsigned int LVL1::ModuleEnergy::ey | ( | ) | const |
Definition at line 159 of file ModuleEnergy.cxx.
|
private |
return cos, sin coefficients for a given JetElement
Different phi granularities in central and forward calorimeters
Each module spans 1 quadrant in phi. Hence want phi position relative to module edge
Barrel and endcap calorimeters
Even quadrants, modPhi measured from horizontal
Odd quadrants, modPhi measured from vertical
Forward calorimeters
Definition at line 172 of file ModuleEnergy.cxx.
| unsigned int LVL1::ModuleEnergy::module | ( | ) | const |
return module number
Definition at line 148 of file ModuleEnergy.cxx.
| int LVL1::ModuleEnergy::signX | ( | ) | const |
return signs of Ex and Ey for this module
Definition at line 164 of file ModuleEnergy.cxx.
| int LVL1::ModuleEnergy::signY | ( | ) | const |
Definition at line 167 of file ModuleEnergy.cxx.
|
private |
Definition at line 70 of file ModuleEnergy.h.
|
private |
Definition at line 72 of file ModuleEnergy.h.
|
private |
Definition at line 65 of file ModuleEnergy.h.
|
staticprivate |
Definition at line 73 of file ModuleEnergy.h.
|
private |
Definition at line 66 of file ModuleEnergy.h.
|
private |
Definition at line 67 of file ModuleEnergy.h.
|
private |
Definition at line 64 of file ModuleEnergy.h.
|
private |
Definition at line 63 of file ModuleEnergy.h.
|
private |
Definition at line 71 of file ModuleEnergy.h.
|
private |
Definition at line 68 of file ModuleEnergy.h.
|
private |
Definition at line 69 of file ModuleEnergy.h.