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

Summary of CP (EM/tau) hits produced by the merger modules. More...

#include <CMXCPHits.h>

Collaboration diagram for LVL1::CMXCPHits:

Public Types

enum  Sources {
  REMOTE_0 , REMOTE_1 , REMOTE_2 , LOCAL ,
  TOTAL , TOPO_CHECKSUM , TOPO_OCCUPANCY_MAP , TOPO_OCCUPANCY_COUNTS ,
  MAXSOURCE
}

Public Member Functions

 CMXCPHits ()=default
 Constructors.
 CMXCPHits (int crate, int cmx, int source)
 constructs a CMXCPHits object, specifying crate, cmx, source.
 CMXCPHits (int crate, int cmx, int source, const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1, const std::vector< int > &error0, const std::vector< int > &error1, int peak)
 constructs a CMXCPHits object and fill all data members
void setPeak (int peak)
 For multi-slice readout, need to indicate position of triggered BC.
void addHits (const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1, const std::vector< int > &error0, const std::vector< int > &error1)
 Add data to existing object.
int crate () const
 Data accessors.
int cmx () const
 returns CMX number (0/1)==(Left/Right)==(Tau/Em?)
int source () const
 returns source of data
unsigned int hits0 () const
 For triggered time slice.
unsigned int hits1 () const
 returns hits1 for peak sample
int error0 () const
 returns error0 for peak sample
int error1 () const
 returns error1 for peak sample
const std::vector< unsigned int > & hitsVec0 () const
 For multi-slice readout.
const std::vector< unsigned int > & hitsVec1 () const
 returns hits1
const std::vector< int > & errorVec0 () const
 returns error0
const std::vector< int > & errorVec1 () const
 returns error1
int peak () const
 returns peak slice number

Private Attributes

int m_crate {}
 Internal data.
int m_cmx {}
int m_source {}
int m_peak {}
std::vector< unsigned int > m_hits0 {0}
std::vector< unsigned int > m_hits1 {0}
std::vector< int > m_error0 {0}
std::vector< int > m_error1 {0}

Detailed Description

Summary of CP (EM/tau) hits produced by the merger modules.

Used in unpacking and analysis of CP CMX readout data.

Definition at line 23 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

Member Enumeration Documentation

◆ Sources

Constructor & Destructor Documentation

◆ CMXCPHits() [1/3]

LVL1::CMXCPHits::CMXCPHits ( )
default

Constructors.

◆ CMXCPHits() [2/3]

LVL1::CMXCPHits::CMXCPHits ( int crate,
int cmx,
int source )

◆ CMXCPHits() [3/3]

LVL1::CMXCPHits::CMXCPHits ( int crate,
int cmx,
int source,
const std::vector< unsigned int > & hits0,
const std::vector< unsigned int > & hits1,
const std::vector< int > & error0,
const std::vector< int > & error1,
int peak )

constructs a CMXCPHits object and fill all data members

Definition at line 25 of file CMXCPHits.cxx.

30 :
32 m_cmx(cmx),
34 m_peak(peak),
39{
40}
unsigned int hits1() const
returns hits1 for peak sample
unsigned int hits0() const
For triggered time slice.
int error1() const
returns error1 for peak sample
int error0() const
returns error0 for peak sample

Member Function Documentation

◆ addHits()

void LVL1::CMXCPHits::addHits ( const std::vector< unsigned int > & hits0,
const std::vector< unsigned int > & hits1,
const std::vector< int > & error0,
const std::vector< int > & error1 )
inline

Add data to existing object.

Set hits.

Definition at line 134 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

137 {
138 m_hits0 = hits0;
139 m_hits1 = hits1;
142 }

◆ cmx()

int LVL1::CMXCPHits::cmx ( ) const
inline

returns CMX number (0/1)==(Left/Right)==(Tau/Em?)

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

84 {
85 return m_cmx;
86 }

◆ crate()

int LVL1::CMXCPHits::crate ( ) const
inline

Data accessors.

returns crate number

Definition at line 79 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

79 {
80 return m_crate;
81 }

◆ error0()

int LVL1::CMXCPHits::error0 ( ) const
inline

returns error0 for peak sample

Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

104 {
105 return m_error0[m_peak];
106 }

◆ error1()

int LVL1::CMXCPHits::error1 ( ) const
inline

returns error1 for peak sample

Definition at line 109 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

109 {
110 return m_error1[m_peak];
111 }

◆ errorVec0()

const std::vector< int > & LVL1::CMXCPHits::errorVec0 ( ) const
inline

returns error0

Definition at line 124 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

124 {
125 return m_error0;
126 }

◆ errorVec1()

const std::vector< int > & LVL1::CMXCPHits::errorVec1 ( ) const
inline

returns error1

Definition at line 129 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

129 {
130 return m_error1;
131 }

◆ hits0()

unsigned int LVL1::CMXCPHits::hits0 ( ) const
inline

For triggered time slice.

returns hits0 for peak sample

Definition at line 94 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

94 {
95 return m_hits0[m_peak];
96 }

◆ hits1()

unsigned int LVL1::CMXCPHits::hits1 ( ) const
inline

returns hits1 for peak sample

Definition at line 99 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

99 {
100 return m_hits1[m_peak];
101 }

◆ hitsVec0()

const std::vector< unsigned int > & LVL1::CMXCPHits::hitsVec0 ( ) const
inline

For multi-slice readout.

returns hits0

Definition at line 114 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

114 {
115 return m_hits0;
116 }

◆ hitsVec1()

const std::vector< unsigned int > & LVL1::CMXCPHits::hitsVec1 ( ) const
inline

returns hits1

Definition at line 119 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

119 {
120 return m_hits1;
121 }

◆ peak()

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

returns peak slice number

Definition at line 150 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

150 {
151 return m_peak;
152 }

◆ setPeak()

void LVL1::CMXCPHits::setPeak ( int peak)
inline

For multi-slice readout, need to indicate position of triggered BC.

Specify peak slice.

Definition at line 145 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

145 {
146 m_peak = peak;
147 }

◆ source()

int LVL1::CMXCPHits::source ( ) const
inline

returns source of data

Definition at line 89 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

89 {
90 return m_source;
91 }

Member Data Documentation

◆ m_cmx

int LVL1::CMXCPHits::m_cmx {}
private

Definition at line 68 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPHits.h.

68{}; // <<== Do we need firmware as well?

◆ m_crate

int LVL1::CMXCPHits::m_crate {}
private

Internal data.

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

67{};

◆ m_error0

std::vector<int> LVL1::CMXCPHits::m_error0 {0}
private

◆ m_error1

std::vector<int> LVL1::CMXCPHits::m_error1 {0}
private

◆ m_hits0

std::vector<unsigned int> LVL1::CMXCPHits::m_hits0 {0}
private

◆ m_hits1

std::vector<unsigned int> LVL1::CMXCPHits::m_hits1 {0}
private

◆ m_peak

int LVL1::CMXCPHits::m_peak {}
private

◆ m_source

int LVL1::CMXCPHits::m_source {}
private

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