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

#include <JEMEtSums.h>

Collaboration diagram for LVL1::JEMEtSums:

Public Member Functions

 JEMEtSums ()
 
 JEMEtSums (int crate, int module)
 
 JEMEtSums (int crate, int module, const std::vector< unsigned int > &Et, const std::vector< unsigned int > &Ex, const std::vector< unsigned int > &Ey, int peak)
 
virtual ~JEMEtSums ()
 
void setPeak (int peak)
 Specify peak slice (Same for all vectors) More...
 
void addEt (const std::vector< unsigned int > &Et)
 Update ET sum. More...
 
void addEx (const std::vector< unsigned int > &Ex)
 Update Ex sum. More...
 
void addEy (const std::vector< unsigned int > &Ey)
 Update Ey sum. More...
 
int crate () const
 returns crate number More...
 
int module () const
 returns module number More...
 
unsigned int Et () const
 returns module ET sum for peak sample More...
 
unsigned int Ex () const
 returns module Ex sum for peak sample More...
 
unsigned int Ey () const
 returns module Ey sum for peak sample More...
 
const std::vector< unsigned int > & EtVec () const
 returns module ET sum More...
 
const std::vector< unsigned int > & ExVec () const
 returns module Ex sum More...
 
const std::vector< unsigned int > & EyVec () const
 returns module Ey sum More...
 
int peak () const
 returns peak slice number More...
 
bool forward () const
 Central or FCAL JEM? More...
 

Private Attributes

int m_crate
 Internal data. More...
 
int m_module
 
int m_peak
 
std::vector< unsigned int > m_Et
 
std::vector< unsigned int > m_Ex
 
std::vector< unsigned int > m_Ey
 

Detailed Description

Definition at line 27 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h.

Constructor & Destructor Documentation

◆ JEMEtSums() [1/3]

LVL1::JEMEtSums::JEMEtSums ( )

Definition at line 27 of file JEMEtSums.cxx.

29 {
30 }
31 
33 }
34 

◆ JEMEtSums() [2/3]

LVL1::JEMEtSums::JEMEtSums ( int  crate,
int  module 
)

◆ JEMEtSums() [3/3]

LVL1::JEMEtSums::JEMEtSums ( int  crate,
int  module,
const std::vector< unsigned int > &  Et,
const std::vector< unsigned int > &  Ex,
const std::vector< unsigned int > &  Ey,
int  peak 
)

◆ ~JEMEtSums()

LVL1::JEMEtSums::~JEMEtSums ( )
virtual

Definition at line 37 of file JEMEtSums.cxx.

43 {

Member Function Documentation

◆ addEt()

void LVL1::JEMEtSums::addEt ( const std::vector< unsigned int > &  Et)

Update ET sum.

Definition at line 113 of file JEMEtSums.cxx.

113  {
114  m_Ex = Ex;
115 }

◆ addEx()

void LVL1::JEMEtSums::addEx ( const std::vector< unsigned int > &  Ex)

Update Ex sum.

Definition at line 118 of file JEMEtSums.cxx.

118  {
119  m_Ey = Ey;
120 }

◆ addEy()

void LVL1::JEMEtSums::addEy ( const std::vector< unsigned int > &  Ey)

Update Ey sum.

Definition at line 123 of file JEMEtSums.cxx.

123  {
124  m_peak = peak;
125 }

◆ crate()

int LVL1::JEMEtSums::crate ( ) const

returns crate number

Definition at line 68 of file JEMEtSums.cxx.

68  {
69  return m_module;
70 }

◆ Et()

unsigned int LVL1::JEMEtSums::Et ( ) const

returns module ET sum for peak sample

Definition at line 78 of file JEMEtSums.cxx.

78  {
79  return m_Ex[m_peak];
80 }

◆ EtVec()

const std::vector< unsigned int > & LVL1::JEMEtSums::EtVec ( ) const

returns module ET sum

Definition at line 93 of file JEMEtSums.cxx.

93  {
94  return m_Ex;
95 }

◆ Ex()

unsigned int LVL1::JEMEtSums::Ex ( ) const

returns module Ex sum for peak sample

Definition at line 83 of file JEMEtSums.cxx.

83  {
84  return m_Ey[m_peak];
85 }

◆ ExVec()

const std::vector< unsigned int > & LVL1::JEMEtSums::ExVec ( ) const

returns module Ex sum

Definition at line 98 of file JEMEtSums.cxx.

98  {
99  return m_Ey;
100 }

◆ Ey()

unsigned int LVL1::JEMEtSums::Ey ( ) const

returns module Ey sum for peak sample

Definition at line 88 of file JEMEtSums.cxx.

88  {
89  return m_Et;
90 }

◆ EyVec()

const std::vector< unsigned int > & LVL1::JEMEtSums::EyVec ( ) const

returns module Ey sum

Definition at line 103 of file JEMEtSums.cxx.

103  {
104  return ( ((m_module%8) == 0) || ((m_module%8) == 7) );
105 }

◆ forward()

bool LVL1::JEMEtSums::forward ( ) const

Central or FCAL JEM?

Definition at line 108 of file JEMEtSums.cxx.

108  {
109  m_Et = Et;
110 }

◆ module()

int LVL1::JEMEtSums::module ( ) const

returns module number

Definition at line 73 of file JEMEtSums.cxx.

73  {
74  return m_Et[m_peak];
75 }

◆ peak()

int LVL1::JEMEtSums::peak ( ) const

returns peak slice number

Definition at line 133 of file JEMEtSums.cxx.

◆ setPeak()

void LVL1::JEMEtSums::setPeak ( int  peak)

Specify peak slice (Same for all vectors)

Definition at line 128 of file JEMEtSums.cxx.

128  {
129  return m_peak;
130 }

Member Data Documentation

◆ m_crate

int LVL1::JEMEtSums::m_crate
private

Internal data.

Definition at line 58 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h.

◆ m_Et

std::vector<unsigned int> LVL1::JEMEtSums::m_Et
private

◆ m_Ex

std::vector<unsigned int> LVL1::JEMEtSums::m_Ex
private

◆ m_Ey

std::vector<unsigned int> LVL1::JEMEtSums::m_Ey
private

◆ m_module

int LVL1::JEMEtSums::m_module
private

◆ m_peak

int LVL1::JEMEtSums::m_peak
private

The documentation for this class was generated from the following files:
LVL1::JEMEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:63
LVL1::JEMEtSums::~JEMEtSums
virtual ~JEMEtSums()
Definition: JEMEtSums.cxx:37
LVL1::JEMEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:61
LVL1::JEMEtSums::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:60
LVL1::JEMEtSums::peak
int peak() const
returns peak slice number
Definition: JEMEtSums.cxx:133
LVL1::JEMEtSums::Et
unsigned int Et() const
returns module ET sum for peak sample
Definition: JEMEtSums.cxx:78
LVL1::JEMEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition: JEMEtSums.cxx:88
LVL1::JEMEtSums::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:59
LVL1::JEMEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:62
LVL1::JEMEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: JEMEtSums.cxx:83