ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 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)
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.
int emEnergy () const
 return the final ET values using the in algorithms
int hadEnergy () const
int emSliceEnergy (int slice) const
 return the ET values for a specified slice
int hadSliceEnergy (int slice) const
const std::vector< int > & emEnergyVec () const
 return references to the vectors containing the ET values.
const std::vector< int > & hadEnergyVec () const
double eta () const
 returns eta coord
double phi () const
 returns phi coord of tower
Coordinate coord () const
 returns coordinate of TT
int peak () const
 return peak positions in ET and error vectors
int emError () const
 Utilities to report on status of tower.
int hadError () const
int emSliceError (int slice) const
 Methods to return error words for specified slice.
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 {0}
 Internal data.
std::vector< int > m_had_energy {0}
std::vector< int > m_em_error {0}
std::vector< int > m_had_error {0}
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 )

Member Function Documentation

◆ coord()

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

returns coordinate of TT

Definition at line 89 of file CPMTower.cxx.

◆ emEnergy()

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

return the final ET values using the in algorithms

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

◆ emEnergyVec()

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

return references to the vectors containing the ET values.

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

67{return m_em_energy;};

◆ emError()

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

Utilities to report on status of tower.

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

◆ emErrorVec()

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

◆ 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 67 of file CPMTower.cxx.

67 {
68 if (slice >= 0 && slice < (int)m_em_energy.size()) return m_em_energy[slice];
69 else return 0;
70}

◆ 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 77 of file CPMTower.cxx.

77 {
78 if (slice >= 0 && slice < (int)m_em_error.size()) return m_em_error[slice];
79 else return 0;
80}

◆ eta()

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

returns eta coord

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

71{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 52 of file CPMTower.cxx.

57{
58 m_em_energy = em_et;
59 m_em_error = em_error;
60 m_had_energy = had_et;
61 m_had_error = had_error;
62 m_peak = peak;
63 return;
64}
int peak() const
return peak positions in ET and error vectors

◆ 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

◆ hadSliceEnergy()

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

Definition at line 71 of file CPMTower.cxx.

71 {
72 if (slice >= 0 && slice < (int)m_had_energy.size()) return m_had_energy[slice];
73 else return 0;
74}

◆ hadSliceError()

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

Definition at line 81 of file CPMTower.cxx.

81 {
82 if (slice >= 0 && slice < (int)m_had_error.size()) return m_had_error[slice];
83 else return 0;
84}

◆ peak()

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

return peak positions in ET and error vectors

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

80{return m_peak;};

◆ phi()

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

returns phi coord of tower

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

74{return m_phi;};

Member Data Documentation

◆ m_em_energy

std::vector<int> LVL1::CPMTower::m_em_energy {0}
private

Internal data.

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

92{0};

◆ m_em_error

std::vector<int> LVL1::CPMTower::m_em_error {0}
private

◆ m_eta

double LVL1::CPMTower::m_eta {}
private

◆ m_had_energy

std::vector<int> LVL1::CPMTower::m_had_energy {0}
private

◆ m_had_error

std::vector<int> LVL1::CPMTower::m_had_error {0}
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: