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

The CPMHits object contains the hit data produced by a given Cluster Processor Module, i.e. More...

#include <CPMHits.h>

Collaboration diagram for LVL1::CPMHits:

Public Member Functions

 CPMHits ()=default
 Constructors.
 CPMHits (int crate, int module)
 CPMHits (int crate, int module, const std::vector< unsigned int > &EMTauHits0, const std::vector< unsigned int > &EMTauHits1, int peak)
void setPeak (int peak)
 In multi-slice readout, need to specify which is peak slice.
void addHits (const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
 Add hits to existing object.
int crate () const
 Data accessors.
int module () const
 returns module number
unsigned int HitWord0 () const
 returns hits for peak sample
unsigned int HitWord1 () const
const std::vector< unsigned int > & HitsVec0 () const
 Multi-slice accessors.
const std::vector< unsigned int > & HitsVec1 () const
int peak () const
 returns peak slice number

Private Attributes

int m_crate {}
 Internal data.
int m_module {}
int m_peak {}
std::vector< unsigned int > m_Hits0 {0}
std::vector< unsigned int > m_Hits1 {0}

Detailed Description

The CPMHits object contains the hit data produced by a given Cluster Processor Module, i.e.

the hit multiplicity sums for all 16 EM+Tau thresholds for one module. The sums are packed into 2 words, representing the data sent to the 2 CMMs.

The main function of the CPMHits object is for the unpacking and analysis of the hit data from the CPM readout.

Definition at line 34 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h.

Constructor & Destructor Documentation

◆ CPMHits() [1/3]

LVL1::CPMHits::CPMHits ( )
default

Constructors.

◆ CPMHits() [2/3]

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

◆ CPMHits() [3/3]

LVL1::CPMHits::CPMHits ( int crate,
int module,
const std::vector< unsigned int > & EMTauHits0,
const std::vector< unsigned int > & EMTauHits1,
int peak )

Member Function Documentation

◆ addHits()

void LVL1::CPMHits::addHits ( const std::vector< unsigned int > & hits0,
const std::vector< unsigned int > & hits1 )

Add hits to existing object.

Set hits.

Definition at line 71 of file CPMHits.cxx.

72 {
73 m_Hits0 = hits0;
74 m_Hits1 = hits1;
75}

◆ crate()

int LVL1::CPMHits::crate ( ) const

Data accessors.

returns crate number

Definition at line 45 of file CPMHits.cxx.

45 {
46 return m_crate;
47}

◆ HitsVec0()

const std::vector< unsigned int > & LVL1::CPMHits::HitsVec0 ( ) const

Multi-slice accessors.

returns hits

Definition at line 63 of file CPMHits.cxx.

63 {
64 return m_Hits0;
65}

◆ HitsVec1()

const std::vector< unsigned int > & LVL1::CPMHits::HitsVec1 ( ) const

Definition at line 66 of file CPMHits.cxx.

66 {
67 return m_Hits1;
68}

◆ HitWord0()

unsigned int LVL1::CPMHits::HitWord0 ( ) const

returns hits for peak sample

Definition at line 55 of file CPMHits.cxx.

◆ HitWord1()

unsigned int LVL1::CPMHits::HitWord1 ( ) const

Definition at line 58 of file CPMHits.cxx.

58 {
59 return m_Hits1[m_peak];
60}

◆ module()

int LVL1::CPMHits::module ( ) const

returns module number

Definition at line 50 of file CPMHits.cxx.

◆ peak()

int LVL1::CPMHits::peak ( ) const

returns peak slice number

Definition at line 83 of file CPMHits.cxx.

83 {
84 return m_peak;
85}

◆ setPeak()

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

In multi-slice readout, need to specify which is peak slice.

Specify peak slice.

Definition at line 78 of file CPMHits.cxx.

78 {
79 m_peak = peak;
80}
int peak() const
returns peak slice number
Definition CPMHits.cxx:83

Member Data Documentation

◆ m_crate

int LVL1::CPMHits::m_crate {}
private

Internal data.

Definition at line 64 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h.

64{};

◆ m_Hits0

std::vector<unsigned int> LVL1::CPMHits::m_Hits0 {0}
private

◆ m_Hits1

std::vector<unsigned int> LVL1::CPMHits::m_Hits1 {0}
private

◆ m_module

int LVL1::CPMHits::m_module {}
private

◆ m_peak

int LVL1::CPMHits::m_peak {}
private

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