ATLAS Offline Software
|
This class defines the reconstructed em/tau hadron ROI. More...
#include <RecJetRoI.h>
Public Member Functions | |
RecJetRoI () | |
RecJetRoI (unsigned int RoIWord, const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) | |
The constructor doesn't do much - all the work is in the "construct" methods. More... | |
RecJetRoI (unsigned int RoIWord, const TrigConf::L1Menu *const l1menu) | |
constructor using Run 3 configuration More... | |
RecJetRoI (const RecJetRoI &obj) | |
RecJetRoI & | operator= (RecJetRoI const &obj) |
~RecJetRoI () | |
virtual unsigned int | roiWord () const |
returns roi word More... | |
virtual double | phi () const |
returns phi coord of ROI More... | |
virtual double | eta () const |
returns eta coord of ROI More... | |
virtual unsigned int | crate () const |
returns JEP crate number More... | |
virtual unsigned int | module () const |
returns JEM number More... | |
virtual unsigned int | frame () const |
returns RoI frame number More... | |
virtual unsigned int | localcoord () const |
returns local coordinate within frame More... | |
virtual unsigned int | etLarge () const |
returns roi ET in larger cluster. More... | |
virtual unsigned int | etSmall () const |
returns roi ET in smaller cluster. More... | |
bool | passedThreshold (unsigned int thresholdNumber) const |
returns TRUE if threshold number threshold_number has been passed by this ROI. More... | |
bool | passedFwdThreshold (unsigned int thresholdNumber) const |
Same for forward jets. More... | |
CoordinateRange | coord () const |
returns the CoordinateRange. More... | |
std::vector< unsigned int > | thresholdsPassed () const |
returns a vector of thresholds passed. More... | |
unsigned int | triggerThreshold (unsigned int thresh) const |
returns the value of the trigger threshold for the threshold passed. More... | |
unsigned int | windowSize (unsigned int thresh) const |
returns the size of the window. More... | |
unsigned int | thresholdPattern () const |
returns bitmask of passed thresholds More... | |
bool | isValidThreshold (unsigned int thresh) const |
returns true if thresh is a valid threshold number More... | |
bool | isForwardJet () const |
returns true if the RoI is a forward jet RoI. More... | |
Private Member Functions | |
void | constructRun1 (const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) |
The "construct" calls unpack the RoIWord and copy information about the passed thresholds from the vector of TriggerThresholds into maps for later retrieval. More... | |
void | constructRun2 (const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) |
construct call for Run 2 Jet RoIs More... | |
void | constructRun3 (const TrigConf::L1Menu *const l1menu) |
Private Attributes | |
unsigned long int | m_roiWord { 0 } |
this is the actual format of the data sent from the LVL1 hardware. More... | |
JEPRoIDecoder * | m_decoder { 0 } |
Used for decoding RoI word. More... | |
int | m_version { 0 } |
Store the RoI format version. More... | |
CoordinateRange | m_coordRange |
this contains the coordinate range worked out from the RoIWord hardware coord (i.e. More... | |
unsigned long int | m_thresholdMask { 0 } |
Information on trigger thresholds passed by RoI. More... | |
std::map< unsigned int, unsigned int > | m_triggerThresholdValue |
std::map< unsigned int, unsigned int > | m_windowSize |
This class defines the reconstructed em/tau hadron ROI.
It is generated from the Slink output of TrigT1Calo.
Definition at line 39 of file RecJetRoI.h.
|
inline |
Definition at line 43 of file RecJetRoI.h.
LVL1::RecJetRoI::RecJetRoI | ( | unsigned int | RoIWord, |
const std::vector< TrigConf::TriggerThreshold * > * | caloThresholds | ||
) |
The constructor doesn't do much - all the work is in the "construct" methods.
Definition at line 29 of file RecJetRoI.cxx.
LVL1::RecJetRoI::RecJetRoI | ( | unsigned int | RoIWord, |
const TrigConf::L1Menu *const | l1menu | ||
) |
Definition at line 54 of file RecJetRoI.cxx.
LVL1::RecJetRoI::~RecJetRoI | ( | ) |
Definition at line 79 of file RecJetRoI.cxx.
|
private |
The "construct" calls unpack the RoIWord and copy information about the passed thresholds from the vector of TriggerThresholds into maps for later retrieval.
One warning here: the methods of the RecRoI classes assume threshold numbering starts at 1, rather than 0 in the calorimeter trigger simulation and Lvl1ConfigSvc. Hence the odd "-1" in a couple of places in these classes construct call for Run 1 Jet RoIs
Definition at line 90 of file RecJetRoI.cxx.
|
private |
|
private |
Definition at line 201 of file RecJetRoI.cxx.
LVL1::CoordinateRange LVL1::RecJetRoI::coord | ( | ) | const |
returns the CoordinateRange.
This is worked out from the RoIWord's hardware coords (i.e. crate number, CPM number etc.) by the RoIDecoder class.
Definition at line 348 of file RecJetRoI.cxx.
|
virtual |
|
virtual |
|
virtual |
returns roi ET in larger cluster.
returns ET of ROI large cluster.
Only valid for Run 2 data. Will return highest threshold passed if called for Run 1 data.
For Run 1 will return highest threshold passed irrespective of size
Definition at line 282 of file RecJetRoI.cxx.
|
virtual |
returns roi ET in smaller cluster.
returns ET of ROI small cluster.
Only valid for Run 2 data. Will return highest threshold passed if called for Run 1 data.
For Run 1 will return highest threshold passed irrespective of size
Definition at line 299 of file RecJetRoI.cxx.
|
virtual |
bool LVL1::RecJetRoI::isForwardJet | ( | ) | const |
returns true if the RoI is a forward jet RoI.
A forward jet is defined as one that passes ANY forward jet threshold. For legacy compatibility with Run 1 only. Deprecated in Run 2
A forward jet is defined as one that passes ANY forward jet threshold. Always false in Run 2 + 3
Definition at line 413 of file RecJetRoI.cxx.
bool LVL1::RecJetRoI::isValidThreshold | ( | unsigned int | thresh | ) | const |
|
virtual |
|
virtual |
LVL1::RecJetRoI & LVL1::RecJetRoI::operator= | ( | RecJetRoI const & | obj | ) |
Definition at line 65 of file RecJetRoI.cxx.
bool LVL1::RecJetRoI::passedFwdThreshold | ( | unsigned int | thresholdNumber | ) | const |
Same for forward jets.
returns TRUE if threshold number threshold_number has been pass ed by this ROI.
Deprecated in Run 2, will always return false.
Returns FALSE if used in Run 2, where forward jet is not defined
Definition at line 336 of file RecJetRoI.cxx.
bool LVL1::RecJetRoI::passedThreshold | ( | unsigned int | thresholdNumber | ) | const |
returns TRUE if threshold number threshold_number has been passed by this ROI.
returns TRUE if threshold number threshold_number has been pass ed by this ROI.
Definition at line 320 of file RecJetRoI.cxx.
|
virtual |
|
virtual |
unsigned int LVL1::RecJetRoI::thresholdPattern | ( | ) | const |
returns bitmask of passed thresholds
returns mask of thresholds passed
Definition at line 315 of file RecJetRoI.cxx.
std::vector< unsigned int > LVL1::RecJetRoI::thresholdsPassed | ( | ) | const |
unsigned int LVL1::RecJetRoI::triggerThreshold | ( | unsigned int | thresh | ) | const |
returns the value of the trigger threshold for the threshold passed.
Thresholds can vary by coordinate. Return value which matches coord of RecRoI
The trigger threshold is also sometimes called the cluster threshold.
Definition at line 379 of file RecJetRoI.cxx.
unsigned int LVL1::RecJetRoI::windowSize | ( | unsigned int | thresh | ) | const |
returns the size of the window.
returns the value of the jet cluster for the threshold passed.
For Run 1 this should be 4, 6 or 8, for 4x4, 6x6, 8x8 jets. For Run 2 this should be 0 or 1, denoting large or small
Definition at line 390 of file RecJetRoI.cxx.
|
private |
this contains the coordinate range worked out from the RoIWord hardware coord (i.e.
crate number, CPM number etc.)
Definition at line 142 of file RecJetRoI.h.
|
private |
Used for decoding RoI word.
Definition at line 134 of file RecJetRoI.h.
|
private |
this is the actual format of the data sent from the LVL1 hardware.
Definition at line 131 of file RecJetRoI.h.
|
private |
Information on trigger thresholds passed by RoI.
Definition at line 145 of file RecJetRoI.h.
|
private |
Definition at line 147 of file RecJetRoI.h.
|
private |
Store the RoI format version.
Definition at line 137 of file RecJetRoI.h.
|
private |
Definition at line 148 of file RecJetRoI.h.