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

Summary of JEP (Jet) hits produced by the merger modules. More...

#include <CMXJetHits.h>

Collaboration diagram for LVL1::CMXJetHits:

Public Types

enum  Sources {
  REMOTE_MAIN = 0 , LOCAL_MAIN = 1 , TOTAL_MAIN = 2 , REMOTE_FORWARD = 4 ,
  LOCAL_FORWARD = 5 , TOTAL_FORWARD = 6 , TOPO_CHECKSUM = 8 , TOPO_OCCUPANCY_MAP = 9 ,
  TOPO_OCCUPANCY_COUNTS = 10 , MAX_SOURCE = 15
}

Public Member Functions

 CMXJetHits ()=default
 Constructors.
 CMXJetHits (int crate, int source)
 constructs a CMXJetHits object, specifying crate, cmx, source.
 CMXJetHits (int crate, 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 CMXJetHits 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 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_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 JEP (Jet) hits produced by the merger modules.

Used in unpacking and analysis of JEP CMX readout data.

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

Member Enumeration Documentation

◆ Sources

Enumerator
REMOTE_MAIN 
LOCAL_MAIN 
TOTAL_MAIN 
REMOTE_FORWARD 
LOCAL_FORWARD 
TOTAL_FORWARD 
TOPO_CHECKSUM 
TOPO_OCCUPANCY_MAP 
TOPO_OCCUPANCY_COUNTS 
MAX_SOURCE 

Definition at line 26 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

Constructor & Destructor Documentation

◆ CMXJetHits() [1/3]

LVL1::CMXJetHits::CMXJetHits ( )
default

Constructors.

◆ CMXJetHits() [2/3]

LVL1::CMXJetHits::CMXJetHits ( int crate,
int source )

constructs a CMXJetHits object, specifying crate, cmx, source.

Definition at line 18 of file CMXJetHits.cxx.

◆ CMXJetHits() [3/3]

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

Definition at line 25 of file CMXJetHits.cxx.

30 :
33 m_peak(peak),
38{
39}
int error0() const
returns error0 for peak sample
unsigned int hits1() const
returns hits1 for peak sample
int error1() const
returns error1 for peak sample
unsigned int hits0() const
For triggered time slice.

Member Function Documentation

◆ addHits()

void LVL1::CMXJetHits::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 136 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

139 {
140 m_hits0 = hits0;
141 m_hits1 = hits1;
144 }

◆ crate()

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

Data accessors.

returns crate number

Definition at line 86 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

86 {
87 return m_crate;
88 }

◆ error0()

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

returns error0 for peak sample

Definition at line 106 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

106 {
107 return m_peak < (int)m_error0.size()? m_error0[m_peak]: 0;
108 }

◆ error1()

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

returns error1 for peak sample

Definition at line 111 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

111 {
112 return m_peak < (int)m_error1.size()? m_error1[m_peak]: 0;
113 }

◆ errorVec0()

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

returns error0

Definition at line 126 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

126 {
127 return m_error0;
128 }

◆ errorVec1()

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

returns error1

Definition at line 131 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

131 {
132 return m_error1;
133 }

◆ hits0()

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

For triggered time slice.

returns hits0 for peak sample

Definition at line 96 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

96 {
97 return m_peak < (int)m_hits0.size()? m_hits0[m_peak]: 0;
98 }

◆ hits1()

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

returns hits1 for peak sample

Definition at line 101 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

101 {
102 return m_peak < (int)m_hits1.size()? m_hits1[m_peak]: 0;
103 }

◆ hitsVec0()

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

For multi-slice readout.

returns hits0

Definition at line 116 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

116 {
117 return m_hits0;
118 }

◆ hitsVec1()

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

returns hits1

Definition at line 121 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

121 {
122 return m_hits1;
123 }

◆ peak()

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

returns peak slice number

Definition at line 152 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

152 {
153 return m_peak;
154 }

◆ setPeak()

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

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

Specify peak slice.

Definition at line 147 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

147 {
148 m_peak = peak;
149 }

◆ source()

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

returns source of data

Definition at line 91 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

91 {
92 return m_source;
93 }

Member Data Documentation

◆ m_crate

int LVL1::CMXJetHits::m_crate {}
private

Internal data.

Definition at line 75 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

75{};

◆ m_error0

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

◆ m_error1

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

◆ m_hits0

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

◆ m_hits1

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

◆ m_peak

int LVL1::CMXJetHits::m_peak {}
private

◆ m_source

int LVL1::CMXJetHits::m_source {}
private

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