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

The CPMTower class contains the TriggerTower information received by the Cluster Processor Modules. More...

#include <CPMTower.h>

Collaboration diagram for LVL1::CPMTower:

Public Member Functions

 CPMTower ()
 Constructors. More...
 
 CPMTower (double phi, double eta)
 
 CPMTower (double phi, double eta, const std::vector< int > &em_et, const std::vector< int > &em_error, const std::vector< int > &had_et, const std::vector< int > &had_error, int peak)
 
virtual ~CPMTower ()
 Destructor. More...
 
void fill (const std::vector< int > &em_et, const std::vector< int > &em_error, const std::vector< int > &had_et, const std::vector< int > &had_error, int peak)
 Methods to fill towers with digits, calibrated ET vectors and status flags. More...
 
int emEnergy () const
 return the final ET values using the in algorithms More...
 
int hadEnergy () const
 
int emSliceEnergy (int slice) const
 return the ET values for a specified slice More...
 
int hadSliceEnergy (int slice) const
 
const std::vector< int > & emEnergyVec () const
 return references to the vectors containing the ET values. More...
 
const std::vector< int > & hadEnergyVec () const
 
double eta () const
 returns eta coord More...
 
double phi () const
 returns phi coord of tower More...
 
Coordinate coord () const
 returns coordinate of TT More...
 
int peak () const
 return peak positions in ET and error vectors More...
 
int emError () const
 Utilities to report on status of tower. More...
 
int hadError () const
 
int emSliceError (int slice) const
 Methods to return error words for specified slice. More...
 
int hadSliceError (int slice) const
 
const std::vector< int > & emErrorVec () const
 
const std::vector< int > & hadErrorVec () const
 

Private Attributes

std::vector< int > m_em_energy
 Internal data. More...
 
std::vector< int > m_had_energy
 
std::vector< int > m_em_error
 
std::vector< int > m_had_error
 
double m_phi
 
double m_eta
 
int m_peak
 

Detailed Description

The CPMTower class contains the TriggerTower information received by the Cluster Processor Modules.

This is a subset of the information in the TriggerTower class, which represents the data produced by the PreProcessor. In particular, it only contains the final (LUT) ET, and not the ADC data, and only for towers used by the Cluster Processor.

The main purpose of the CPMTower class is to allow unpacking and analysis of the tower data from the CPM readout.

Definition at line 36 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

Constructor & Destructor Documentation

◆ CPMTower() [1/3]

LVL1::CPMTower::CPMTower ( )

Constructors.

◆ CPMTower() [2/3]

LVL1::CPMTower::CPMTower ( double  phi,
double  eta 
)

◆ CPMTower() [3/3]

LVL1::CPMTower::CPMTower ( double  phi,
double  eta,
const std::vector< int > &  em_et,
const std::vector< int > &  em_error,
const std::vector< int > &  had_et,
const std::vector< int > &  had_error,
int  peak 
)

◆ ~CPMTower()

LVL1::CPMTower::~CPMTower ( )
virtual

Destructor.

Definition at line 60 of file CPMTower.cxx.

Member Function Documentation

◆ coord()

LVL1::Coordinate LVL1::CPMTower::coord ( ) const

returns coordinate of TT

Definition at line 96 of file CPMTower.cxx.

96  {
97  return Coordinate(m_phi, m_eta);
98 }

◆ emEnergy()

int LVL1::CPMTower::emEnergy ( ) const
inline

return the final ET values using the in algorithms

Definition at line 63 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

63 {return m_em_energy[m_peak];};

◆ emEnergyVec()

const std::vector<int>& LVL1::CPMTower::emEnergyVec ( ) const
inline

return references to the vectors containing the ET values.

Definition at line 71 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

71 {return m_em_energy;};

◆ emError()

int LVL1::CPMTower::emError ( ) const
inline

Utilities to report on status of tower.

Definition at line 87 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

87 {return m_em_error[m_peak];};

◆ emErrorVec()

const std::vector<int>& LVL1::CPMTower::emErrorVec ( ) const
inline

Definition at line 91 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

91 {return m_em_error;};

◆ emSliceEnergy()

int LVL1::CPMTower::emSliceEnergy ( int  slice) const

return the ET values for a specified slice

Methods to return ET in specified slice.

Return 0 if slice is out of range

Definition at line 79 of file CPMTower.cxx.

◆ emSliceError()

int LVL1::CPMTower::emSliceError ( int  slice) const

Methods to return error words for specified slice.

Return 0 if slice is out of range

Definition at line 89 of file CPMTower.cxx.

◆ eta()

double LVL1::CPMTower::eta ( ) const
inline

returns eta coord

Definition at line 75 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

75 {return m_eta;};

◆ fill()

void LVL1::CPMTower::fill ( const std::vector< int > &  em_et,
const std::vector< int > &  em_error,
const std::vector< int > &  had_et,
const std::vector< int > &  had_error,
int  peak 
)

Methods to fill towers with digits, calibrated ET vectors and status flags.

Method for filling tower data.

Definition at line 64 of file CPMTower.cxx.

64 {
65  m_em_energy = em_et;
66  m_em_error = em_error;
67  m_had_energy = had_et;
68  m_had_error = had_error;
69  m_peak = peak;
70  return;
71 }
72 
74 int LVL1::CPMTower::emSliceEnergy(int slice) const {
75  if (slice >= 0 && slice < (int)m_em_energy.size()) return m_em_energy[slice];
76  else return 0;

◆ hadEnergy()

int LVL1::CPMTower::hadEnergy ( ) const
inline

◆ hadEnergyVec()

const std::vector<int>& LVL1::CPMTower::hadEnergyVec ( ) const
inline

◆ hadError()

int LVL1::CPMTower::hadError ( ) const
inline

◆ hadErrorVec()

const std::vector<int>& LVL1::CPMTower::hadErrorVec ( ) const
inline

Definition at line 92 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

92 {return m_had_error;};

◆ hadSliceEnergy()

int LVL1::CPMTower::hadSliceEnergy ( int  slice) const

Definition at line 83 of file CPMTower.cxx.

84  {
85  if (slice >= 0 && slice < (int)m_em_error.size()) return m_em_error[slice];
86  else return 0;

◆ hadSliceError()

int LVL1::CPMTower::hadSliceError ( int  slice) const

Definition at line 93 of file CPMTower.cxx.

96  {

◆ peak()

int LVL1::CPMTower::peak ( ) const
inline

return peak positions in ET and error vectors

Definition at line 84 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

84 {return m_peak;};

◆ phi()

double LVL1::CPMTower::phi ( ) const
inline

returns phi coord of tower

Definition at line 78 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

78 {return m_phi;};

Member Data Documentation

◆ m_em_energy

std::vector<int> LVL1::CPMTower::m_em_energy
private

Internal data.

Definition at line 96 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h.

◆ m_em_error

std::vector<int> LVL1::CPMTower::m_em_error
private

◆ m_eta

double LVL1::CPMTower::m_eta
private

◆ m_had_energy

std::vector<int> LVL1::CPMTower::m_had_energy
private

◆ m_had_error

std::vector<int> LVL1::CPMTower::m_had_error
private

◆ m_peak

int LVL1::CPMTower::m_peak
private

◆ m_phi

double LVL1::CPMTower::m_phi
private

The documentation for this class was generated from the following files:
LVL1::CPMTower::m_em_energy
std::vector< int > m_em_energy
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:92
LVL1::CPMTower::m_em_error
std::vector< int > m_em_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:98
LVL1::CPMTower::m_had_error
std::vector< int > m_had_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:99
LVL1::CPMTower::peak
int peak() const
return peak positions in ET and error vectors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:84
LVL1::CPMTower::m_had_energy
std::vector< int > m_had_energy
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:97
LVL1::CPMTower::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition: CPMTower.cxx:79
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
LVL1::CPMTower::m_eta
double m_eta
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:101
LVL1::CPMTower::m_phi
double m_phi
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:100
LVL1::CPMTower::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:102