ATLAS Offline Software
|
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word. More...
#include <JEPRoIDecoder.h>
Public Member Functions | |
JEPRoIDecoder () | |
virtual | ~JEPRoIDecoder () |
TrigT1CaloDefs::RoIType | roiType (unsigned int word) const |
Override base method - allows us to handle both Run 1 & Run 2 data for JEP (up to a point) More... | |
unsigned int | jetRoIVersion (unsigned int word) const |
Identify Jet RoI Version. More... | |
virtual CoordinateRange | coordinate (const unsigned int roiWord) const override |
Return eta/phi coordinate object. More... | |
unsigned int | crate (const unsigned int word) const |
Return hardware coordinates. More... | |
unsigned int | module (const unsigned int word) const |
Extract module number from Jet RoI word. More... | |
unsigned int | row (const unsigned int word) const |
Extract RoI row number within module from Jet RoI word. More... | |
unsigned int | column (const unsigned int word) const |
Extract RoI column number within module from Jet RoI word. More... | |
const std::vector< unsigned int > | thresholdsPassed (const unsigned int word) const |
returns a vector containing the numbers of threshold passed i.e. More... | |
const std::vector< unsigned int > | fwdThresholdsPassed (const unsigned int word) const |
returns a vector containing the numbers of threshold passed i.e. More... | |
unsigned int | etLarge (const unsigned int word) const |
Return ET values from Run 2 Jet RoIs. More... | |
unsigned int | etSmall (const unsigned int word) const |
Extract smaller cluster ET value from Jet RoI word. More... | |
int | energyX (unsigned int energyRoIWord0) const |
returns the (signed) Ex energy projection. More... | |
int | energyY (unsigned int energyRoIWord1) const |
returns the (signed) Ex energy projection. More... | |
int | energyT (unsigned int energyRoIWord2) const |
returns the (signed) Ex energy projection. More... | |
bool | energyOverflow (unsigned int energyRoIWord) const |
returns overflow flag energy RoIWord More... | |
std::vector< unsigned int > | mEtSigThresholdsPassed (const unsigned int energyRoIWord0) const |
returns a vector containing the numbers of threshold passed i.e. More... | |
std::vector< unsigned int > | etSumThresholdsPassed (const unsigned int energyRoIWord1) const |
returns a vector containing the numbers of threshold passed i.e. More... | |
std::vector< unsigned int > | etMissThresholdsPassed (const unsigned int energyRoIWord2) const |
returns a vector containing the numbers of threshold passed i.e. More... | |
bool | mEtSigThresholdPassed (const unsigned int energyRoIWord0, const unsigned int thresh) const |
returns true if thresh is passed More... | |
bool | sumEtThresholdPassed (const unsigned int energyRoIWord1, const unsigned int thresh) const |
returns true if thresh is passed More... | |
bool | etMissThresholdPassed (const unsigned int energyRoIWord2, const unsigned int thresh) const |
returns true if thresh is passed More... | |
Protected Member Functions | |
unsigned int | extractBits (unsigned int word, const unsigned int start, const unsigned int length) const |
returns the value of bits in word between bit "start" and bit "start" + "length" More... | |
Protected Attributes | |
bool | m_DEBUG |
Private Member Functions | |
unsigned int | mEtSigThresholdsFlags (const unsigned int energyRoIWord0) const |
unsigned int | sumEtThresholdsFlags (const unsigned int energyRoIWord1) const |
unsigned int | missEtThresholdsFlags (const unsigned int energyRoIWord1) const |
int | decodeEnergyComponent (const unsigned int energyRoIWord) const |
No descriptions. More... | |
CoordinateRange | midJEMCoordinate (const unsigned int jem, const unsigned int roiWord) const |
return a CoordinateRange for the JEMs coving -2.4<eta<2.4 More... | |
CoordinateRange | leftEndJEMCoordinate (const unsigned int jem, const unsigned int roiWord) const |
returns a CoordinateRange for the end JEMs, i.e. More... | |
CoordinateRange | rightEndJEMCoordinate (const unsigned int jem, const unsigned int roiWord) const |
returns a CoordinateRange for the end JEMs, i.e. More... | |
void | setPhiCoords (const unsigned int jem, const unsigned int roiWord, double &phiMin, double &phiMax) const |
set phi coords for Jet RoI More... | |
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition at line 33 of file JEPRoIDecoder.h.
LVL1::JEPRoIDecoder::JEPRoIDecoder | ( | ) |
Definition at line 23 of file JEPRoIDecoder.cxx.
|
virtual |
Definition at line 27 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::column | ( | const unsigned int | word | ) | const |
Extract RoI column number within module from Jet RoI word.
Definition at line 96 of file JEPRoIDecoder.cxx.
|
overridevirtual |
Return eta/phi coordinate object.
Implements LVL1::RoIDecoder.
Definition at line 66 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::crate | ( | const unsigned int | word | ) | const |
Return hardware coordinates.
Extract crate number from Jet RoI word.
Definition at line 79 of file JEPRoIDecoder.cxx.
|
private |
No descriptions.
Ex, Ey values are stored in 15 bit twos complement format
Convert negative 15-bit complement values to ints
Definition at line 358 of file JEPRoIDecoder.cxx.
bool LVL1::JEPRoIDecoder::energyOverflow | ( | unsigned int | energyRoIWord | ) | const |
returns overflow flag energy RoIWord
returns the overflow flag for an Energy RoIWord
Definition at line 271 of file JEPRoIDecoder.cxx.
int LVL1::JEPRoIDecoder::energyT | ( | unsigned int | energyRoIWord2 | ) | const |
returns the (signed) Ex energy projection.
returns the ETSum value.
If the RoIWord looks invalid, then zero will be returned.
Definition at line 264 of file JEPRoIDecoder.cxx.
int LVL1::JEPRoIDecoder::energyX | ( | unsigned int | energyRoIWord0 | ) | const |
returns the (signed) Ex energy projection.
If the RoIWord looks invalid, then zero will be returned.
Definition at line 250 of file JEPRoIDecoder.cxx.
int LVL1::JEPRoIDecoder::energyY | ( | unsigned int | energyRoIWord1 | ) | const |
returns the (signed) Ex energy projection.
returns the (signed) Ey energy projection.
If the RoIWord looks invalid, then zero will be returned.
Definition at line 257 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::etLarge | ( | const unsigned int | word | ) | const |
Return ET values from Run 2 Jet RoIs.
Extract larger cluster ET value from Jet RoI word.
Definition at line 141 of file JEPRoIDecoder.cxx.
bool LVL1::JEPRoIDecoder::etMissThresholdPassed | ( | const unsigned int | energyRoIWord2, |
const unsigned int | thresh | ||
) | const |
returns true if thresh is passed
Definition at line 338 of file JEPRoIDecoder.cxx.
std::vector< unsigned int > LVL1::JEPRoIDecoder::etMissThresholdsPassed | ( | const unsigned int | energyRoIWord2 | ) | const |
returns a vector containing the numbers of threshold passed i.e.
if the vector contains 1,3,5 it means that this RoI passed thresholds 1,3 and 5.
Definition at line 312 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::etSmall | ( | const unsigned int | word | ) | const |
Extract smaller cluster ET value from Jet RoI word.
Definition at line 147 of file JEPRoIDecoder.cxx.
std::vector< unsigned int > LVL1::JEPRoIDecoder::etSumThresholdsPassed | ( | const unsigned int | energyRoIWord1 | ) | const |
returns a vector containing the numbers of threshold passed i.e.
if the vector contains 1,3,5 it means that this RoI passed thresholds 1,3 and 5.
Definition at line 297 of file JEPRoIDecoder.cxx.
|
protectedinherited |
returns the value of bits in word between bit "start" and bit "start" + "length"
Definition at line 34 of file RoIDecoder.cxx.
const std::vector< unsigned int > LVL1::JEPRoIDecoder::fwdThresholdsPassed | ( | const unsigned int | word | ) | const |
returns a vector containing the numbers of threshold passed i.e.
if the vector contains 1,3,5 it means that this RoI passed thresholds 1,3 and 5.
Definition at line 122 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::jetRoIVersion | ( | unsigned int | word | ) | const |
|
private |
returns a CoordinateRange for the end JEMs, i.e.
2.4<eta<4.9
Definition at line 179 of file JEPRoIDecoder.cxx.
bool LVL1::JEPRoIDecoder::mEtSigThresholdPassed | ( | const unsigned int | energyRoIWord0, |
const unsigned int | thresh | ||
) | const |
returns true if thresh is passed
Definition at line 326 of file JEPRoIDecoder.cxx.
|
private |
Definition at line 343 of file JEPRoIDecoder.cxx.
std::vector< unsigned int > LVL1::JEPRoIDecoder::mEtSigThresholdsPassed | ( | const unsigned int | energyRoIWord0 | ) | const |
returns a vector containing the numbers of threshold passed i.e.
if the vector contains 1,3,5 it means that this RoI passed thresholds 1,3 and 5.
Definition at line 282 of file JEPRoIDecoder.cxx.
|
private |
return a CoordinateRange for the JEMs coving -2.4<eta<2.4
Definition at line 154 of file JEPRoIDecoder.cxx.
|
private |
Definition at line 353 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::module | ( | const unsigned int | word | ) | const |
Extract module number from Jet RoI word.
Definition at line 84 of file JEPRoIDecoder.cxx.
|
private |
returns a CoordinateRange for the end JEMs, i.e.
2.4<eta<4.9
Definition at line 207 of file JEPRoIDecoder.cxx.
LVL1::TrigT1CaloDefs::RoIType LVL1::JEPRoIDecoder::roiType | ( | unsigned int | word | ) | const |
Override base method - allows us to handle both Run 1 & Run 2 data for JEP (up to a point)
Definition at line 33 of file JEPRoIDecoder.cxx.
unsigned int LVL1::JEPRoIDecoder::row | ( | const unsigned int | word | ) | const |
Extract RoI row number within module from Jet RoI word.
Definition at line 89 of file JEPRoIDecoder.cxx.
|
private |
bool LVL1::JEPRoIDecoder::sumEtThresholdPassed | ( | const unsigned int | energyRoIWord1, |
const unsigned int | thresh | ||
) | const |
returns true if thresh is passed
Definition at line 332 of file JEPRoIDecoder.cxx.
|
private |
Definition at line 348 of file JEPRoIDecoder.cxx.
const std::vector< unsigned int > LVL1::JEPRoIDecoder::thresholdsPassed | ( | const unsigned int | word | ) | const |
returns a vector containing the numbers of threshold passed i.e.
Check on Run 1/Run 2.
if the vector contains 1,3,5 it means that this RoI passed thresholds 1,3 and 5.
Definition at line 103 of file JEPRoIDecoder.cxx.
|
protectedinherited |
Definition at line 63 of file RoIDecoder.h.