Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
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. More...
 
 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. More...
 
void addHits (const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
 Add hits to existing object. More...
 
int crate () const
 Data accessors. More...
 
int module () const
 returns module number More...
 
unsigned int HitWord0 () const
 returns hits for peak sample More...
 
unsigned int HitWord1 () const
 
const std::vector< unsigned int > & HitsVec0 () const
 Multi-slice accessors. More...
 
const std::vector< unsigned int > & HitsVec1 () const
 
int peak () const
 returns peak slice number More...
 

Private Attributes

int m_crate {}
 Internal data. More...
 
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 76 of file CPMHits.cxx.

78  {
79  m_peak = peak;
80 }

◆ crate()

int LVL1::CPMHits::crate ( ) const

Data accessors.

returns crate number

Definition at line 50 of file CPMHits.cxx.

50  {
51  return m_module;
52 }

◆ HitsVec0()

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

Multi-slice accessors.

returns hits

Definition at line 68 of file CPMHits.cxx.

◆ HitsVec1()

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

Definition at line 71 of file CPMHits.cxx.

72  {
73  m_Hits0 = hits0;

◆ HitWord0()

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

returns hits for peak sample

Definition at line 60 of file CPMHits.cxx.

◆ HitWord1()

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

Definition at line 63 of file CPMHits.cxx.

63  {
64  return m_Hits0;
65 }

◆ module()

int LVL1::CPMHits::module ( ) const

returns module number

Definition at line 55 of file CPMHits.cxx.

55  {
56  return m_Hits0[m_peak];
57 }

◆ peak()

int LVL1::CPMHits::peak ( ) const

returns peak slice number

Definition at line 88 of file CPMHits.cxx.

◆ setPeak()

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

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

Specify peak slice

Definition at line 83 of file CPMHits.cxx.

83  {
84  return m_peak;
85 }

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.

◆ 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:
LVL1::CPMHits::m_Hits0
std::vector< unsigned int > m_Hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:67
LVL1::CPMHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:66
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition: CPMHits.cxx:88
LVL1::CPMHits::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:65