ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LVL1::EmTauROI Class Reference

This class defines the em/tau hadron ROI which are generated by the LVL1 Calo Trigger. More...

#include <EmTauROI.h>

Collaboration diagram for LVL1::EmTauROI:

Public Member Functions

 EmTauROI (double phi, double eta, int energy, unsigned long int roiWord, const std::vector< unsigned int > &algorithmType, unsigned int hadCoreEnergy, unsigned int hadRingIsolationEnergy, unsigned int emRingIsolationEnergy, unsigned int emClusterEnergy, unsigned int tauClusterEnergy)
 
 ~EmTauROI ()
 
unsigned int roiWord () const
 returns the 32bit ROI word. More...
 
bool saturated () const
 returns TRUE if ROI constructed from a trigger tower that was saturated - in other words this ROI is signalling that it does not know its correct energy. More...
 
double phi () const
 returns phi coord of ROI More...
 
double eta () const
 returns eta coord of ROI More...
 
int energy () const
 returns the energy of the ROI core, i.e. More...
 
bool thresholdPassed (int thresh) const
 returns TRUE if threshold number threshold_number has been passed by this ROI. More...
 
TrigT1CaloDefs::ClusterAlgorithm thresholdType (int thresh) const
 returns type of thresholds number threshold_number Thresholds numbered from 1 to TrigT1CaloDefs::numOfCPThresholds More...
 
unsigned int emRingIsolationEnergy () const
 return energy More...
 
unsigned int hadRingIsolationEnergy () const
 return energy More...
 
unsigned int hadCoreEnergy () const
 return energy More...
 
unsigned int clusterEnergy () const
 return energy More...
 
unsigned int tauClusterEnergy () const
 

Private Member Functions

void checkValidThreshNum (unsigned int thresh) const
 checks that the passed threshold is a valid number More...
 

Private Attributes

double m_phi
 phi coord of ROI More...
 
double m_eta
 eta coord of ROI More...
 
int m_energy
 Energy of ROI core, i.e. More...
 
unsigned long int m_roiWord
 this is the actual format of the data sent from the LVL1 hardware. More...
 
std::vector< unsigned int > m_algorithmType
 Contains the algo type of thresh sets. More...
 
unsigned int m_emRingIsolationEnergy
 Used for debugging only! Not present to higher triggers in hardware. More...
 
unsigned int m_hadRingIsolationEnergy
 Used for debugging only! Not present to higher triggers in hardware. More...
 
unsigned int m_hadCoreEnergy
 Used for debugging only! Not present to higher triggers in hardware. More...
 
unsigned int m_emClusterEnergy
 Used for debugging only! Not present to higher triggers in hardware. More...
 
unsigned int m_tauClusterEnergy
 

Detailed Description

This class defines the em/tau hadron ROI which are generated by the LVL1 Calo Trigger.

It isn't the final RoI produced and passed to L2 - that happens in the ROD simulation, so this class has some extra methods used for debugging

Author
moyse

Definition at line 40 of file EmTauROI.h.

Constructor & Destructor Documentation

◆ EmTauROI()

LVL1::EmTauROI::EmTauROI ( double  phi,
double  eta,
int  energy,
unsigned long int  roiWord,
const std::vector< unsigned int > &  algorithmType,
unsigned int  hadCoreEnergy,
unsigned int  hadRingIsolationEnergy,
unsigned int  emRingIsolationEnergy,
unsigned int  emClusterEnergy,
unsigned int  tauClusterEnergy 
)

Definition at line 21 of file EmTauROI.cxx.

29 {
30 }
31 
33 }
34 

◆ ~EmTauROI()

LVL1::EmTauROI::~EmTauROI ( )

Definition at line 37 of file EmTauROI.cxx.

37  {
38  return m_roiWord;

Member Function Documentation

◆ checkValidThreshNum()

void LVL1::EmTauROI::checkValidThreshNum ( unsigned int  thresh) const
inlineprivate

checks that the passed threshold is a valid number

Definition at line 128 of file EmTauROI.h.

◆ clusterEnergy()

unsigned int LVL1::EmTauROI::clusterEnergy ( ) const
inline

return energy

Definition at line 94 of file EmTauROI.h.

◆ emRingIsolationEnergy()

unsigned int LVL1::EmTauROI::emRingIsolationEnergy ( ) const
inline

return energy

Definition at line 88 of file EmTauROI.h.

◆ energy()

int LVL1::EmTauROI::energy ( ) const

returns the energy of the ROI core, i.e.

returns energy of ROI core

the summed (in both layers) energy of the central 4 TriggerTowers

Definition at line 93 of file EmTauROI.cxx.

◆ eta()

double LVL1::EmTauROI::eta ( ) const

returns eta coord of ROI

Definition at line 82 of file EmTauROI.cxx.

82  {
83  return m_phi;
84 }

◆ hadCoreEnergy()

unsigned int LVL1::EmTauROI::hadCoreEnergy ( ) const
inline

return energy

Definition at line 92 of file EmTauROI.h.

◆ hadRingIsolationEnergy()

unsigned int LVL1::EmTauROI::hadRingIsolationEnergy ( ) const
inline

return energy

Definition at line 90 of file EmTauROI.h.

◆ phi()

double LVL1::EmTauROI::phi ( ) const

returns phi coord of ROI

Definition at line 87 of file EmTauROI.cxx.

88  {
89  return m_energy;

◆ roiWord()

unsigned int LVL1::EmTauROI::roiWord ( ) const

returns the 32bit ROI word.

This is defined in the ATLAS note daq-98-089.

This is defined in the ATLAS note daq-98-089.

Definition at line 42 of file EmTauROI.cxx.

44  {

◆ saturated()

bool LVL1::EmTauROI::saturated ( ) const

returns TRUE if ROI constructed from a trigger tower that was saturated - in other words this ROI is signalling that it does not know its correct energy.

Definition at line 102 of file EmTauROI.cxx.

◆ tauClusterEnergy()

unsigned int LVL1::EmTauROI::tauClusterEnergy ( ) const
inline

Definition at line 95 of file EmTauROI.h.

◆ thresholdPassed()

bool LVL1::EmTauROI::thresholdPassed ( int  thresh) const

returns TRUE if threshold number threshold_number has been passed by this ROI.

returns TRUE if threshold number threshold_number has been passed by this ROI.

Thresholds numbered from 1 to TrigT1CaloDefs::numOfCPThresholds

Definition at line 49 of file EmTauROI.cxx.

54  {
55  // This information is currently stored as a vector
56  // within all EmTauROIs. This is not ideal - I

◆ thresholdType()

TrigT1CaloDefs::ClusterAlgorithm LVL1::EmTauROI::thresholdType ( int  thresh) const

returns type of thresholds number threshold_number Thresholds numbered from 1 to TrigT1CaloDefs::numOfCPThresholds

returns type of thresholds number threshold_number.

Definition at line 59 of file EmTauROI.cxx.

59  {
60  // outside allowed values.
62  }
63  switch ( m_algorithmType[thresh-1] ){
64  case 0 : return TrigT1CaloDefs::EMAlg;
65  break;
66  case 1 : return TrigT1CaloDefs::TauAlg;
67  break;
69  }//end switch
70 
71  // shouldn't ever be reached.
73 }
74 
75 
77 double LVL1::EmTauROI::eta() const {
78  return m_eta;

Member Data Documentation

◆ m_algorithmType

std::vector<unsigned int> LVL1::EmTauROI::m_algorithmType
private

Contains the algo type of thresh sets.

This should really be in a database.

Definition at line 115 of file EmTauROI.h.

◆ m_emClusterEnergy

unsigned int LVL1::EmTauROI::m_emClusterEnergy
private

Used for debugging only! Not present to higher triggers in hardware.

Definition at line 124 of file EmTauROI.h.

◆ m_emRingIsolationEnergy

unsigned int LVL1::EmTauROI::m_emRingIsolationEnergy
private

Used for debugging only! Not present to higher triggers in hardware.

Definition at line 118 of file EmTauROI.h.

◆ m_energy

int LVL1::EmTauROI::m_energy
private

Energy of ROI core, i.e.

the summed (both layers) energy of the central 4 TriggerTowers

Definition at line 107 of file EmTauROI.h.

◆ m_eta

double LVL1::EmTauROI::m_eta
private

eta coord of ROI

Definition at line 103 of file EmTauROI.h.

◆ m_hadCoreEnergy

unsigned int LVL1::EmTauROI::m_hadCoreEnergy
private

Used for debugging only! Not present to higher triggers in hardware.

Definition at line 122 of file EmTauROI.h.

◆ m_hadRingIsolationEnergy

unsigned int LVL1::EmTauROI::m_hadRingIsolationEnergy
private

Used for debugging only! Not present to higher triggers in hardware.

Definition at line 120 of file EmTauROI.h.

◆ m_phi

double LVL1::EmTauROI::m_phi
private

phi coord of ROI

Definition at line 100 of file EmTauROI.h.

◆ m_roiWord

unsigned long int LVL1::EmTauROI::m_roiWord
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 112 of file EmTauROI.h.

◆ m_tauClusterEnergy

unsigned int LVL1::EmTauROI::m_tauClusterEnergy
private

Definition at line 125 of file EmTauROI.h.


The documentation for this class was generated from the following files:
LVL1::EmTauROI::m_algorithmType
std::vector< unsigned int > m_algorithmType
Contains the algo type of thresh sets.
Definition: EmTauROI.h:115
LVL1::TrigT1CaloDefs::ClustAlgError
@ ClustAlgError
Definition: TrigT1CaloDefs.h:212
physval_make_web_display.thresh
thresh
Definition: physval_make_web_display.py:36
LVL1::EmTauROI::eta
double eta() const
returns eta coord of ROI
Definition: EmTauROI.cxx:82
LVL1::EmTauROI::~EmTauROI
~EmTauROI()
Definition: EmTauROI.cxx:37
LVL1::EmTauROI::m_phi
double m_phi
phi coord of ROI
Definition: EmTauROI.h:95
LVL1::TrigT1CaloDefs::EMAlg
@ EMAlg
Definition: TrigT1CaloDefs.h:209
LVL1::TrigT1CaloDefs::TauAlg
@ TauAlg
Definition: TrigT1CaloDefs.h:210
LVL1::EmTauROI::m_roiWord
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition: EmTauROI.h:112
LVL1::EmTauROI::m_energy
int m_energy
Energy of ROI core, i.e.
Definition: EmTauROI.h:107
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
LVL1::EmTauROI::m_eta
double m_eta
eta coord of ROI
Definition: EmTauROI.h:103