ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::JetROI Class Reference

This class defines the Jet ROIs which are generated by the LVL1 Calo Trigger. More...

#include <JetROI.h>

Collaboration diagram for LVL1::JetROI:

Public Member Functions

 JetROI (double phi, double eta, int energy, unsigned long int roiWord, unsigned int m_cluster4, unsigned int m_cluster6, unsigned int m_cluster8, bool saturated)
 ~JetROI ()
unsigned int roiWord () const
 returns the 32bit ROI word.
bool saturated () const
 returns TRUE if ROI constructed from a Jet Element that was saturated - in other words this ROI is signalling that it does not know it's correct energy.
double phi () const
 returns phi coord of ROI
double eta () const
 returns eta coord of ROI
int energy () const
 returns the energy
bool thresholdPassed (int threshold_number) const
 returns TRUE if threshold number threshold_number has been passed by this ROI.
bool fwdThresholdPassed (int threshold_number) const
 returns TRUE if threshold number threshold_number has been passed by this ROI.
bool isForward () const
 returns true if the RoI is a forward jet
TrigT1CaloDefs::JetWindowSize thresholdType (int threshold_number) const
 returns type of thresholds number threshold_number
unsigned int clusterEnergy4 () const
 returns the most energetic cluster from window size 4
unsigned int clusterEnergy6 () const
 returns the most energetic cluster from window size 6
unsigned int clusterEnergy8 () const
 returns the most energetic cluster from window size 8

Private Attributes

double m_phi
 phi coord of ROI
double m_eta
 eta coord of ROI
int m_energy
 Energy of ROI core,.
int m_cluster4
 Energy of most energetic cluster.
int m_cluster6
 Energy of most energetic cluster.
int m_cluster8
 Energy of most energetic cluster.
unsigned long int m_roiWord
 this is the actual format of the data sent from the LVL1 hardware.
bool m_isSaturated
 saturation flag
std::vector< unsigned int > m_algorithmType
 Contains the algo type of thresh sets.

Detailed Description

This class defines the Jet ROIs which are generated by the LVL1 Calo Trigger.

These are not the persistent objects - you should use Jet_ROI (from RoIB) for analysis, and JEMRoI for bytestream decoding and monitoring.

Author
moyse

Definition at line 30 of file JetROI.h.

Constructor & Destructor Documentation

◆ JetROI()

LVL1::JetROI::JetROI ( double phi,
double eta,
int energy,
unsigned long int roiWord,
unsigned int m_cluster4,
unsigned int m_cluster6,
unsigned int m_cluster8,
bool saturated )

Definition at line 15 of file JetROI.cxx.

17 :
18 m_phi(phi),
19 m_eta(eta),
21 m_cluster4(cluster4),
22 m_cluster6(cluster6),
23 m_cluster8(cluster8),
26{
27}
bool saturated() const
returns TRUE if ROI constructed from a Jet Element that was saturated - in other words this ROI is si...
Definition JetROI.cxx:88
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
Definition JetROI.h:105
double m_eta
eta coord of ROI
Definition JetROI.h:88
unsigned int roiWord() const
returns the 32bit ROI word.
Definition JetROI.cxx:35
int m_cluster8
Energy of most energetic cluster.
Definition JetROI.h:100
bool m_isSaturated
saturation flag
Definition JetROI.h:108
double eta() const
returns eta coord of ROI
Definition JetROI.cxx:68
double phi() const
returns phi coord of ROI
Definition JetROI.cxx:73
int m_energy
Energy of ROI core,.
Definition JetROI.h:91
int m_cluster6
Energy of most energetic cluster.
Definition JetROI.h:97
int m_cluster4
Energy of most energetic cluster.
Definition JetROI.h:94
int energy() const
returns the energy
Definition JetROI.cxx:79
double m_phi
phi coord of ROI
Definition JetROI.h:85

◆ ~JetROI()

LVL1::JetROI::~JetROI ( )

Definition at line 29 of file JetROI.cxx.

29 {
30 //delete m_algorithmType;
31}

Member Function Documentation

◆ clusterEnergy4()

unsigned int LVL1::JetROI::clusterEnergy4 ( ) const
inline

returns the most energetic cluster from window size 4

Definition at line 76 of file JetROI.h.

76{ return m_cluster4;}

◆ clusterEnergy6()

unsigned int LVL1::JetROI::clusterEnergy6 ( ) const
inline

returns the most energetic cluster from window size 6

Definition at line 78 of file JetROI.h.

78{ return m_cluster6;}

◆ clusterEnergy8()

unsigned int LVL1::JetROI::clusterEnergy8 ( ) const
inline

returns the most energetic cluster from window size 8

Definition at line 80 of file JetROI.h.

80{ return m_cluster8;}

◆ energy()

int LVL1::JetROI::energy ( ) const

returns the energy

returns energy of ROI core

Definition at line 79 of file JetROI.cxx.

79 {
80 return m_energy;
81}

◆ eta()

double LVL1::JetROI::eta ( ) const

returns eta coord of ROI

Definition at line 68 of file JetROI.cxx.

68 {
69 return m_eta;
70}

◆ fwdThresholdPassed()

bool LVL1::JetROI::fwdThresholdPassed ( int threshold_number) 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.

1st threshold is thresh 1

Definition at line 48 of file JetROI.cxx.

48 {
49 if (m_roiWord & (1<<(thresh+7)) )return true;
50 return false;
51}

◆ isForward()

bool LVL1::JetROI::isForward ( ) const

returns true if the RoI is a forward jet

Definition at line 54 of file JetROI.cxx.

54 {
55 if ((m_eta<-3.1)||(m_eta>3.1)) return true;
56 return false;
57}

◆ phi()

double LVL1::JetROI::phi ( ) const

returns phi coord of ROI

Definition at line 73 of file JetROI.cxx.

73 {
74 return m_phi;
75}

◆ roiWord()

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

returns the 32bit ROI word.

Todo
implement hardware coords in ROI word
Todo
implement hardware coords in ROI word

Definition at line 35 of file JetROI.cxx.

35 {
36 return m_roiWord;
37}

◆ saturated()

bool LVL1::JetROI::saturated ( ) const

returns TRUE if ROI constructed from a Jet Element that was saturated - in other words this ROI is signalling that it does not know it's correct energy.

Todo
implement

Definition at line 88 of file JetROI.cxx.

88 {
89 return m_isSaturated;
90}

◆ thresholdPassed()

bool LVL1::JetROI::thresholdPassed ( int threshold_number) 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.

1st threshold is thresh 1

Definition at line 41 of file JetROI.cxx.

41 {
42 if (m_roiWord & (1<<(thresh-1)) )return true;
43 return false;
44}

◆ thresholdType()

LVL1::TrigT1CaloDefs::JetWindowSize LVL1::JetROI::thresholdType ( int threshold_number) const

returns type of thresholds number threshold_number

returns type of thresholds number threshold_number.

Todo
implement

Definition at line 61 of file JetROI.cxx.

61 {
62 // shouldn't ever be reached.
64}

Member Data Documentation

◆ m_algorithmType

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

Contains the algo type of thresh sets.

This should really be in a database.

Definition at line 111 of file JetROI.h.

◆ m_cluster4

int LVL1::JetROI::m_cluster4
private

Energy of most energetic cluster.

Definition at line 94 of file JetROI.h.

◆ m_cluster6

int LVL1::JetROI::m_cluster6
private

Energy of most energetic cluster.

Definition at line 97 of file JetROI.h.

◆ m_cluster8

int LVL1::JetROI::m_cluster8
private

Energy of most energetic cluster.

Definition at line 100 of file JetROI.h.

◆ m_energy

int LVL1::JetROI::m_energy
private

Energy of ROI core,.

Definition at line 91 of file JetROI.h.

◆ m_eta

double LVL1::JetROI::m_eta
private

eta coord of ROI

Definition at line 88 of file JetROI.h.

◆ m_isSaturated

bool LVL1::JetROI::m_isSaturated
private

saturation flag

Definition at line 108 of file JetROI.h.

◆ m_phi

double LVL1::JetROI::m_phi
private

phi coord of ROI

Definition at line 85 of file JetROI.h.

◆ m_roiWord

unsigned long int LVL1::JetROI::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 105 of file JetROI.h.


The documentation for this class was generated from the following files: