ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
Exception.h
TileBchWords::operator[]
const uint32_t & operator[](unsigned int idx) const
Definition
TileBchWords.h:36
TileBchWords::getChnWord
uint32_t getChnWord() const
Definition
TileBchWords.h:16
TileBchWords::~TileBchWords
~TileBchWords()
Definition
TileBchWords.h:15
TileBchWords::m_words
std::vector< uint32_t > m_words
Definition
TileBchWords.h:21
TileBchWords::TileBchWords
TileBchWords()
Definition
TileBchWords.h:14
TileBchWords::getAdcWord
uint32_t getAdcWord() const
Definition
TileBchWords.h:17
TileCalib::IndexOutOfRange
Thrown if an index is out of range.
Definition
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:141
vector
Definition
MultiHisto.h:13
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0