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? More... | |
unsigned int | module () const |
return module number More... | |
unsigned int | et () const |
return the scalar & vector sums of all JE ETs (i.e sums the energies of up to 32 contained JEs) More... | |
unsigned int | ex () const |
unsigned int | ey () const |
int | signX () const |
return signs of Ex and Ey for this module More... | |
int | signY () const |
Private Member Functions | |
void | getSinCos (double eta, double phi, int &cosPhi, int &sinPhi) |
return cos, sin coefficients for a given JetElement More... | |
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 45 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 25 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 108 of file ModuleEnergy.cxx.
LVL1::ModuleEnergy::~ModuleEnergy | ( | ) |
Definition at line 146 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 159 of file ModuleEnergy.cxx.
unsigned int LVL1::ModuleEnergy::ex | ( | ) | const |
Definition at line 162 of file ModuleEnergy.cxx.
unsigned int LVL1::ModuleEnergy::ey | ( | ) | const |
Definition at line 165 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 178 of file ModuleEnergy.cxx.
unsigned int LVL1::ModuleEnergy::module | ( | ) | const |
int LVL1::ModuleEnergy::signX | ( | ) | const |
int LVL1::ModuleEnergy::signY | ( | ) | const |
Definition at line 173 of file ModuleEnergy.cxx.
|
private |
Definition at line 80 of file ModuleEnergy.h.
|
private |
Definition at line 82 of file ModuleEnergy.h.
|
private |
Definition at line 75 of file ModuleEnergy.h.
|
staticprivate |
Definition at line 83 of file ModuleEnergy.h.
|
private |
Definition at line 76 of file ModuleEnergy.h.
|
private |
Definition at line 77 of file ModuleEnergy.h.
|
private |
Definition at line 74 of file ModuleEnergy.h.
|
private |
Definition at line 73 of file ModuleEnergy.h.
|
private |
Definition at line 81 of file ModuleEnergy.h.
|
private |
Definition at line 78 of file ModuleEnergy.h.
|
private |
Definition at line 79 of file ModuleEnergy.h.