ATLAS Offline Software
TileCalorimeter
TileCalib
TileCalibBlobObjs
TileCalibBlobObjs
TileBchWords.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECALIBBLOBOBJS_TILEBCHWORDS_H
6
#define TILECALIBBLOBOBJS_TILEBCHWORDS_H
7
8
#include "
TileCalibBlobObjs/Exception.h
"
9
#include <stdint.h>
10
#include <vector>
11
12
class
TileBchWords
{
13
public
:
14
TileBchWords
() :
m_words
(std::
vector
<
uint32_t
>(2,0)) {}
15
~TileBchWords
() {}
16
uint32_t
getChnWord
()
const
{
return
m_words
[0];}
17
uint32_t
getAdcWord
()
const
{
return
m_words
[1];}
18
const
uint32_t
&
operator[]
(
unsigned
int
idx
)
const
;
19
uint32_t
&
operator[]
(
unsigned
int
idx
);
20
private
:
21
std::vector<uint32_t>
m_words
;
22
};
23
24
//
25
//_____________________________________________________
26
inline
uint32_t
&
27
TileBchWords::operator[]
(
unsigned
int
idx
)
28
{
29
if
(
idx
>1)
throw
TileCalib::IndexOutOfRange
(
"TileBchWords::operator[]"
,
idx
, 1);
30
return
m_words
[
idx
];
31
}
32
33
//
34
//_____________________________________________________
35
inline
const
uint32_t
&
36
TileBchWords::operator[]
(
unsigned
int
idx
)
const
37
{
38
if
(
idx
>1)
throw
TileCalib::IndexOutOfRange
(
"TileBchWords::operator[]"
,
idx
, 1);
39
return
m_words
[
idx
];
40
}
41
42
#endif
TileCalib::IndexOutOfRange
Thrown if an index is out of range.
Definition:
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:141
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
TileBchWords::m_words
std::vector< uint32_t > m_words
Definition:
TileBchWords.h:21
TileBchWords::~TileBchWords
~TileBchWords()
Definition:
TileBchWords.h:15
TileBchWords::operator[]
const uint32_t & operator[](unsigned int idx) const
Definition:
TileBchWords.h:36
vector
Definition:
MultiHisto.h:13
TileBchWords::getAdcWord
uint32_t getAdcWord() const
Definition:
TileBchWords.h:17
TileBchWords
Definition:
TileBchWords.h:12
TileBchWords::getChnWord
uint32_t getChnWord() const
Definition:
TileBchWords.h:16
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition:
LArNewCalib_DelayDump_OFC_Cali.py:69
TileBchWords::TileBchWords
TileBchWords()
Definition:
TileBchWords.h:14
Exception.h
Generated on Thu Nov 7 2024 21:27:57 for ATLAS Offline Software by
1.8.18