ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
LVL1::CMMCPHits Class Reference

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

#include <CMMCPHits.h>

Collaboration diagram for LVL1::CMMCPHits:

Public Types

enum  DataIDs {
  REMOTE_0 = 15, REMOTE_1, REMOTE_2, LOCAL,
  TOTAL, MAXID
}
 

Public Member Functions

 CMMCPHits ()=default
 Constructors. More...
 
 CMMCPHits (int crate, int dataID)
 constructs a CMMCPHits object, specifying crate, data ID. More...
 
 CMMCPHits (int crate, int dataID, 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 CMMCPHits object and fill all data members More...
 
void setPeak (int peak)
 For multi-slice readout, need to indicate position of triggered BC. More...
 
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. More...
 
int crate () const
 Data accessors. More...
 
int dataID () const
 returns data ID of data More...
 
unsigned int HitWord0 () const
 For triggered time slice. More...
 
unsigned int HitWord1 () const
 returns hits1 for peak sample More...
 
int Error0 () const
 returns error0 for peak sample More...
 
int Error1 () const
 returns error1 for peak sample More...
 
const std::vector< unsigned int > & HitsVec0 () const
 For multi-slice readout. More...
 
const std::vector< unsigned int > & HitsVec1 () const
 returns hits1 More...
 
const std::vector< int > & ErrorVec0 () const
 returns error0 More...
 
const std::vector< int > & ErrorVec1 () const
 returns error1 More...
 
int peak () const
 returns peak slice number More...
 

Private Attributes

int m_crate {}
 Internal data. More...
 
int m_dataID {}
 
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 received by the merger modules.

Used in unpacking and analysis of CP CMM readout data.

Definition at line 30 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h.

Member Enumeration Documentation

◆ DataIDs

Enumerator
REMOTE_0 
REMOTE_1 
REMOTE_2 
LOCAL 
TOTAL 
MAXID 

Definition at line 33 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h.

Constructor & Destructor Documentation

◆ CMMCPHits() [1/3]

LVL1::CMMCPHits::CMMCPHits ( )
default

Constructors.

◆ CMMCPHits() [2/3]

LVL1::CMMCPHits::CMMCPHits ( int  crate,
int  dataID 
)

constructs a CMMCPHits object, specifying crate, data ID.

Definition at line 28 of file CMMCPHits.cxx.

◆ CMMCPHits() [3/3]

LVL1::CMMCPHits::CMMCPHits ( int  crate,
int  dataID,
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 CMMCPHits object and fill all data members

Definition at line 35 of file CMMCPHits.cxx.

42 {
43 }
44 
45 
47 int CMMCPHits::crate() const{
48  return m_crate;

Member Function Documentation

◆ addHits()

void LVL1::CMMCPHits::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.

Set hits.

Definition at line 102 of file CMMCPHits.cxx.

108  {
109  m_peak = peak;
110 }

◆ crate()

int LVL1::CMMCPHits::crate ( ) const

Data accessors.

returns crate number

Definition at line 52 of file CMMCPHits.cxx.

52  {
53  return m_dataID;
54 }

◆ dataID()

int LVL1::CMMCPHits::dataID ( ) const

returns data ID of data

Definition at line 57 of file CMMCPHits.cxx.

57  {
58  return m_hits0[m_peak];
59 }

◆ Error0()

int LVL1::CMMCPHits::Error0 ( ) const

returns error0 for peak sample

Definition at line 72 of file CMMCPHits.cxx.

72  {
73  return m_error1[m_peak];
74 }

◆ Error1()

int LVL1::CMMCPHits::Error1 ( ) const

returns error1 for peak sample

Definition at line 77 of file CMMCPHits.cxx.

77  {
78  return m_hits0;
79 }

◆ ErrorVec0()

const std::vector< int > & LVL1::CMMCPHits::ErrorVec0 ( ) const

returns error0

Definition at line 92 of file CMMCPHits.cxx.

92  {
93  return m_error1;
94 }

◆ ErrorVec1()

const std::vector< int > & LVL1::CMMCPHits::ErrorVec1 ( ) const

returns error1

Definition at line 97 of file CMMCPHits.cxx.

◆ HitsVec0()

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

For multi-slice readout.

returns hits0

Definition at line 82 of file CMMCPHits.cxx.

82  {
83  return m_hits1;
84 }

◆ HitsVec1()

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

returns hits1

Definition at line 87 of file CMMCPHits.cxx.

87  {
88  return m_error0;
89 }

◆ HitWord0()

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

For triggered time slice.

returns hits0 for peak sample

Definition at line 62 of file CMMCPHits.cxx.

62  {
63  return m_hits1[m_peak];
64 }

◆ HitWord1()

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

returns hits1 for peak sample

Definition at line 67 of file CMMCPHits.cxx.

67  {
68  return m_error0[m_peak];
69 }

◆ peak()

int LVL1::CMMCPHits::peak ( ) const

returns peak slice number

Definition at line 118 of file CMMCPHits.cxx.

◆ setPeak()

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

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

Specify peak slice

Definition at line 113 of file CMMCPHits.cxx.

113  {
114  return m_peak;
115 }

Member Data Documentation

◆ m_crate

int LVL1::CMMCPHits::m_crate {}
private

Internal data.

Definition at line 70 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h.

◆ m_dataID

int LVL1::CMMCPHits::m_dataID {}
private

◆ m_error0

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

◆ m_error1

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

◆ m_hits0

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

◆ m_hits1

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

◆ m_peak

int LVL1::CMMCPHits::m_peak {}
private

The documentation for this class was generated from the following files:
LVL1::CMMCPHits::m_hits0
std::vector< unsigned int > m_hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:73
LVL1::CMMCPHits::crate
int crate() const
Data accessors.
Definition: CMMCPHits.cxx:52
LVL1::CMMCPHits::m_hits1
std::vector< unsigned int > m_hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:74
LVL1::CMMCPHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:70
LVL1::CMMCPHits::peak
int peak() const
returns peak slice number
Definition: CMMCPHits.cxx:118
LVL1::CMMCPHits::REMOTE_0
@ REMOTE_0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::MAXID
@ MAXID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::LOCAL
@ LOCAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::TOTAL
@ TOTAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:71
LVL1::CMMCPHits::m_error0
std::vector< int > m_error0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:75
LVL1::CMMCPHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:72
LVL1::CMMCPHits::REMOTE_2
@ REMOTE_2
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::m_error1
std::vector< int > m_error1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:76
LVL1::CMMCPHits::REMOTE_1
@ REMOTE_1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33