ATLAS Offline Software
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 ()
 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)
 
virtual ~CPMHits ()
 Destructor. More...
 
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
 
std::vector< unsigned int > m_Hits1
 

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 35 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h.

Constructor & Destructor Documentation

◆ CPMHits() [1/3]

LVL1::CPMHits::CPMHits ( )

Constructors.

Definition at line 27 of file CPMHits.cxx.

28 {
29 }
30 
32 }
33 

◆ 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 
)

◆ ~CPMHits()

LVL1::CPMHits::~CPMHits ( )
virtual

Destructor.

Definition at line 36 of file CPMHits.cxx.

41 {

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 89 of file CPMHits.cxx.

91  {
92  m_peak = peak;
93 }

◆ crate()

int LVL1::CPMHits::crate ( ) const

Data accessors.

returns crate number

Definition at line 63 of file CPMHits.cxx.

63  {
64  return m_module;
65 }

◆ HitsVec0()

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

Multi-slice accessors.

returns hits

Definition at line 81 of file CPMHits.cxx.

◆ HitsVec1()

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

Definition at line 84 of file CPMHits.cxx.

85  {
86  m_Hits0 = hits0;

◆ HitWord0()

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

returns hits for peak sample

Definition at line 73 of file CPMHits.cxx.

◆ HitWord1()

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

Definition at line 76 of file CPMHits.cxx.

76  {
77  return m_Hits0;
78 }

◆ module()

int LVL1::CPMHits::module ( ) const

returns module number

Definition at line 68 of file CPMHits.cxx.

68  {
69  return m_Hits0[m_peak];
70 }

◆ peak()

int LVL1::CPMHits::peak ( ) const

returns peak slice number

Definition at line 101 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 96 of file CPMHits.cxx.

96  {
97  return m_peak;
98 }

Member Data Documentation

◆ m_crate

int LVL1::CPMHits::m_crate
private

Internal data.

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

◆ m_Hits0

std::vector<unsigned int> LVL1::CPMHits::m_Hits0
private

◆ m_Hits1

std::vector<unsigned int> LVL1::CPMHits::m_Hits1
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:69
LVL1::CPMHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:68
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition: CPMHits.cxx:101
LVL1::CPMHits::~CPMHits
virtual ~CPMHits()
Destructor.
Definition: CPMHits.cxx:36
LVL1::CPMHits::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:67