ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
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 ()
 Constructors. More...
 
 CMXJetHits (int crate, int source)
 constructs a CMXJetHits object, specifying crate, cmx, source. More...
 
 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 More...
 
virtual ~CMXJetHits ()
 
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 source () const
 returns source of data More...
 
unsigned int hits0 () const
 For triggered time slice. More...
 
unsigned int hits1 () 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_source
 
int m_peak
 
std::vector< unsigned int > m_hits0
 
std::vector< unsigned int > m_hits1
 
std::vector< int > m_error0
 
std::vector< int > m_error1
 

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 24 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 27 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

27  {
28  REMOTE_MAIN = 0,
29  LOCAL_MAIN = 1,
30  TOTAL_MAIN = 2,
31  REMOTE_FORWARD = 4,
32  LOCAL_FORWARD = 5,
33  TOTAL_FORWARD = 6,
34  TOPO_CHECKSUM = 8,
37  MAX_SOURCE = 15
38  };

Constructor & Destructor Documentation

◆ CMXJetHits() [1/3]

LVL1::CMXJetHits::CMXJetHits ( )

Constructors.

Definition at line 16 of file CMXJetHits.cxx.

16  :
17  m_crate(0),
18  m_source(0),
19  m_peak(0),
20  m_hits0(1),
21  m_hits1(1),
22  m_error0(1),
23  m_error1(1)
24 {
25 }

◆ CMXJetHits() [2/3]

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

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

Definition at line 31 of file CMXJetHits.cxx.

31  :
32  m_crate(crate),
34  m_peak(0),
35  m_hits0(1),
36  m_hits1(1),
37  m_error0(1),
38  m_error1(1)
39 {
40 }

◆ 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 43 of file CMXJetHits.cxx.

48  :
49  m_crate(crate),
51  m_peak(peak),
52  m_hits0(hits0),
53  m_hits1(hits1),
56 {
57 }

◆ ~CMXJetHits()

LVL1::CMXJetHits::~CMXJetHits ( )
virtual

Definition at line 27 of file CMXJetHits.cxx.

27  {
28 }

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

141  {
142  m_hits0 = hits0;
143  m_hits1 = hits1;
144  m_error0 = error0;
145  m_error1 = error1;
146  }

◆ crate()

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

Data accessors.

returns crate number

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

88  {
89  return m_crate;
90  }

◆ error0()

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

returns error0 for peak sample

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

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

◆ error1()

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

returns error1 for peak sample

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

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

◆ errorVec0()

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

returns error0

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

128  {
129  return m_error0;
130  }

◆ errorVec1()

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

returns error1

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

133  {
134  return m_error1;
135  }

◆ hits0()

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

For triggered time slice.

returns hits0 for peak sample

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

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

◆ hits1()

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

returns hits1 for peak sample

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

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

◆ hitsVec0()

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

For multi-slice readout.

returns hits0

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

118  {
119  return m_hits0;
120  }

◆ hitsVec1()

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

returns hits1

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

123  {
124  return m_hits1;
125  }

◆ peak()

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

returns peak slice number

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

154  {
155  return m_peak;
156  }

◆ 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 149 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h.

149  {
150  m_peak = peak;
151  }

◆ source()

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

returns source of data

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

93  {
94  return m_source;
95  }

Member Data Documentation

◆ m_crate

int LVL1::CMXJetHits::m_crate
private

Internal data.

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

◆ m_error0

std::vector<int> LVL1::CMXJetHits::m_error0
private

◆ m_error1

std::vector<int> LVL1::CMXJetHits::m_error1
private

◆ m_hits0

std::vector<unsigned int> LVL1::CMXJetHits::m_hits0
private

◆ m_hits1

std::vector<unsigned int> LVL1::CMXJetHits::m_hits1
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:
LVL1::CMXJetHits::REMOTE_MAIN
@ REMOTE_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:28
LVL1::CMXJetHits::LOCAL_FORWARD
@ LOCAL_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:32
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
LVL1::CMXJetHits::TOTAL_FORWARD
@ TOTAL_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:33
LVL1::CMXJetHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:79
LVL1::CMXJetHits::TOTAL_MAIN
@ TOTAL_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:30
LVL1::CMXJetHits::hits1
unsigned int hits1() const
returns hits1 for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:103
LVL1::CMXJetHits::REMOTE_FORWARD
@ REMOTE_FORWARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:31
LVL1::CMXJetHits::error1
int error1() const
returns error1 for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:113
LVL1::CMXJetHits::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:154
LVL1::CMXJetHits::m_error0
std::vector< int > m_error0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:82
LVL1::CMXJetHits::MAX_SOURCE
@ MAX_SOURCE
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:37
LVL1::CMXJetHits::m_hits1
std::vector< unsigned int > m_hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:81
LVL1::CMXJetHits::m_source
int m_source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:78
LVL1::CMXJetHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:77
LVL1::CMXJetHits::source
int source() const
returns source of data
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:93
LVL1::CMXJetHits::error0
int error0() const
returns error0 for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:108
LVL1::CMXJetHits::TOPO_OCCUPANCY_COUNTS
@ TOPO_OCCUPANCY_COUNTS
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:36
LVL1::CMXJetHits::m_hits0
std::vector< unsigned int > m_hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:80
LVL1::CMXJetHits::TOPO_OCCUPANCY_MAP
@ TOPO_OCCUPANCY_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:35
LVL1::CMXJetHits::hits0
unsigned int hits0() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:98
LVL1::CMXJetHits::m_error1
std::vector< int > m_error1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:83
LVL1::CMXJetHits::LOCAL_MAIN
@ LOCAL_MAIN
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:29
LVL1::CMXJetHits::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:88
LVL1::CMXJetHits::TOPO_CHECKSUM
@ TOPO_CHECKSUM
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:34