ATLAS Offline Software
|
This class defines the reconstructed em/tau hadron ROI. More...
#include <RecEmTauRoI.h>
Public Member Functions | |
RecEmTauRoI () | |
RecEmTauRoI (unsigned int RoIWord, const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) | |
constructor using Run 1+2 configuration More... | |
RecEmTauRoI (unsigned int RoIWord, const TrigConf::L1Menu *const l1menu) | |
constructor using Run 3 configuration More... | |
RecEmTauRoI (const RecEmTauRoI &obj) | |
RecEmTauRoI & | operator= (const RecEmTauRoI &obj) |
~RecEmTauRoI () | |
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 CP crate number More... | |
virtual unsigned int | module () const |
returns CPM number More... | |
virtual unsigned int | fpga () const |
returns FPGA number More... | |
virtual unsigned int | localcoord () const |
returns local coordinate within FPGA More... | |
virtual unsigned int | et () const |
returns roi ET (Run 2 only) More... | |
virtual unsigned int | isolation () const |
returns roi isolation results (Run 2 only) More... | |
virtual TrigT1CaloDefs::RoIType | roiType () const |
returns roi type (EM = TrigT1CaloDefs::EMRoIWordType, Tau = TrigT1CaloDefs::TauRoIWordType, Run 1 = TrigT1CaloDefs::CpRoIWordType) More... | |
bool | passedThreshold (unsigned int threshold_number) const |
returns TRUE if threshold number threshold_number has been passed by this ROI. More... | |
CoordinateRange | coord () const |
returns the CoordinateRange. More... | |
std::vector< unsigned int > * | thresholdsPassed () const |
returns a vector of thresholds passed. More... | |
unsigned int | thresholdPattern () const |
returns bitmask of passed thresholds More... | |
unsigned int | triggerThreshold (unsigned int thresh) const |
returns the value of the trigger threshold for the threshold passed. More... | |
unsigned int | emIsolation (unsigned int thresh) const |
returns the value of the em isolation ring for the threshold passed. More... | |
unsigned int | hadIsolation (unsigned int thresh) const |
returns the value of the hadronic layer isolation ring for the threshold passed. More... | |
unsigned int | hadCoreIsolation (unsigned int thresh) const |
returns the value of the hadronic layer core isolation for the threshold passed. More... | |
unsigned int | isolationMask (unsigned int thresh) const |
returns the isolation bits required for the threshold passed (Run 2) More... | |
bool | isValidThreshold (unsigned int thresh) const |
returns true if thresh is a valid threshold number More... | |
TrigT1CaloDefs::ClusterAlgorithm | thresholdType (unsigned int thresh) const |
returns the type of the threshold, which is either EMAlg or TauAlg. More... | |
Private Member Functions | |
void | constructRun1 (const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) |
The "construct" call unpacks the RoIWord and copies information about the passed thresholds from the vector of TriggerThresholds into maps for later retrieval. More... | |
void | constructRun2 (const std::vector< TrigConf::TriggerThreshold * > *caloThresholds) |
Content of RoI word different in Run 2. 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... | |
CPRoIDecoder * | m_decoder {nullptr} |
Used for decoding RoI word. More... | |
TrigT1CaloDefs::RoIType | m_type {TrigT1CaloDefs::RoIWordTypeError} |
Stored properties of the RoI: 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 } |
std::map< int, unsigned int > | m_triggerThresholdValue |
std::map< int, unsigned int > | m_isolationMask |
std::map< int, unsigned int > | m_emIsolation |
std::map< int, unsigned int > | m_hadIsolation |
std::map< int, unsigned int > | m_hadCoreIsolation |
std::map< int, TrigT1CaloDefs::ClusterAlgorithm > | m_thresholdType |
This class defines the reconstructed em/tau hadron ROI.
It is generated from the Slink output of TrigT1Calo
Definition at line 44 of file RecEmTauRoI.h.
|
inline |
Definition at line 48 of file RecEmTauRoI.h.
LVL1::RecEmTauRoI::RecEmTauRoI | ( | unsigned int | RoIWord, |
const std::vector< TrigConf::TriggerThreshold * > * | caloThresholds | ||
) |
constructor using Run 1+2 configuration
The constructor doesn't do much - all the work is in the "construct" method.
Definition at line 33 of file RecEmTauRoI.cxx.
LVL1::RecEmTauRoI::RecEmTauRoI | ( | unsigned int | RoIWord, |
const TrigConf::L1Menu *const | l1menu | ||
) |
LVL1::RecEmTauRoI::RecEmTauRoI | ( | const RecEmTauRoI & | obj | ) |
Definition at line 71 of file RecEmTauRoI.cxx.
LVL1::RecEmTauRoI::~RecEmTauRoI | ( | ) |
Definition at line 106 of file RecEmTauRoI.cxx.
|
private |
The "construct" call unpacks the RoIWord and copies 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 this class
Definition at line 120 of file RecEmTauRoI.cxx.
|
private |
Content of RoI word different in Run 2.
To obtain thresholds passed need to simulate thresholding. Hence have an alternate constructor here
Definition at line 196 of file RecEmTauRoI.cxx.
|
private |
Definition at line 257 of file RecEmTauRoI.cxx.
LVL1::CoordinateRange LVL1::RecEmTauRoI::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 393 of file RecEmTauRoI.cxx.
|
virtual |
unsigned int LVL1::RecEmTauRoI::emIsolation | ( | unsigned int | thresh | ) | const |
returns the value of the em isolation ring for the threshold passed.
(Run 1)
(Run 1 only)
Definition at line 449 of file RecEmTauRoI.cxx.
|
virtual |
returns roi ET (Run 2 only)
returns cluster ET of Run 2 RoI
Definition at line 364 of file RecEmTauRoI.cxx.
|
virtual |
|
virtual |
unsigned int LVL1::RecEmTauRoI::hadCoreIsolation | ( | unsigned int | thresh | ) | const |
returns the value of the hadronic layer core isolation for the threshold passed.
(Run 1)
(Run 1 only)
Definition at line 480 of file RecEmTauRoI.cxx.
unsigned int LVL1::RecEmTauRoI::hadIsolation | ( | unsigned int | thresh | ) | const |
returns the value of the hadronic layer isolation ring for the threshold passed.
(Run 1)
(Run 1 only)
Definition at line 465 of file RecEmTauRoI.cxx.
|
virtual |
returns roi isolation results (Run 2 only)
returns isolation word of Run 2 RoI
Definition at line 367 of file RecEmTauRoI.cxx.
unsigned int LVL1::RecEmTauRoI::isolationMask | ( | unsigned int | thresh | ) | const |
returns the isolation bits required for the threshold passed (Run 2)
returns the value of the isolation mask for the threshold passed.
(Run 2 only)
Definition at line 433 of file RecEmTauRoI.cxx.
bool LVL1::RecEmTauRoI::isValidThreshold | ( | unsigned int | thresh | ) | const |
|
virtual |
returns local coordinate within FPGA
returns local coordinate of ROI
Definition at line 358 of file RecEmTauRoI.cxx.
|
virtual |
LVL1::RecEmTauRoI & LVL1::RecEmTauRoI::operator= | ( | const RecEmTauRoI & | obj | ) |
Definition at line 87 of file RecEmTauRoI.cxx.
bool LVL1::RecEmTauRoI::passedThreshold | ( | unsigned int | threshold_number | ) | const |
returns TRUE if threshold number threshold_number has been passed by this ROI.
Definition at line 382 of file RecEmTauRoI.cxx.
|
virtual |
|
virtual |
returns roi type (EM = TrigT1CaloDefs::EMRoIWordType, Tau = TrigT1CaloDefs::TauRoIWordType, Run 1 = TrigT1CaloDefs::CpRoIWordType)
returns type of RoI
Definition at line 378 of file RecEmTauRoI.cxx.
|
virtual |
unsigned int LVL1::RecEmTauRoI::thresholdPattern | ( | ) | const |
returns bitmask of passed thresholds
returns bitmask of thresholds passed by RoI
Definition at line 374 of file RecEmTauRoI.cxx.
std::vector< unsigned int > * LVL1::RecEmTauRoI::thresholdsPassed | ( | ) | const |
LVL1::TrigT1CaloDefs::ClusterAlgorithm LVL1::RecEmTauRoI::thresholdType | ( | unsigned int | thresh | ) | const |
returns the type of the threshold, which is either EMAlg or TauAlg.
If there is a problem, ClustAlgError is returned
Definition at line 515 of file RecEmTauRoI.cxx.
unsigned int LVL1::RecEmTauRoI::triggerThreshold | ( | unsigned int | thresh | ) | const |
returns the value of the trigger threshold for the threshold passed.
The trigger threshold is also sometimes called the cluster threshold.
The trigger threshold is also sometimes called the cluster threshold.
Definition at line 419 of file RecEmTauRoI.cxx.
|
private |
this contains the coordinate range worked out from the RoIWord hardware coord (i.e.
crate number, CPM number etc.)
Definition at line 148 of file RecEmTauRoI.h.
|
private |
Used for decoding RoI word.
Definition at line 141 of file RecEmTauRoI.h.
|
private |
Definition at line 153 of file RecEmTauRoI.h.
|
private |
Definition at line 155 of file RecEmTauRoI.h.
|
private |
Definition at line 154 of file RecEmTauRoI.h.
|
private |
Definition at line 152 of file RecEmTauRoI.h.
|
private |
this is the actual format of the data sent from the LVL1 hardware.
See ATL-DAQ-99-015 for further explanation.
Definition at line 138 of file RecEmTauRoI.h.
|
private |
Definition at line 150 of file RecEmTauRoI.h.
|
private |
Definition at line 156 of file RecEmTauRoI.h.
|
private |
Definition at line 151 of file RecEmTauRoI.h.
|
private |
Stored properties of the RoI:
Definition at line 144 of file RecEmTauRoI.h.