ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include <stdint.h>
10#include <vector>
11
13 public:
14 TileBchWords() : m_words(std::vector<uint32_t>(2,0)) {}
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//_____________________________________________________
26inline uint32_t&
27TileBchWords::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//_____________________________________________________
35inline const uint32_t&
36TileBchWords::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
const uint32_t & operator[](unsigned int idx) const
uint32_t getChnWord() const
std::vector< uint32_t > m_words
uint32_t getAdcWord() const
STL namespace.