ATLAS Offline Software
Loading...
Searching...
No Matches
BaseTOB.h
Go to the documentation of this file.
1// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3#ifndef TopoCore_BaseTOB
4#define TopoCore_BaseTOB
5
6#include <iostream>
7#include <cstdint>
9
10namespace TCS {
11
12 class BaseTOB {
13 public:
14 BaseTOB(uint32_t roiWord, const std::string& tobType);
15 virtual ~BaseTOB();
16
17 virtual void print(std::ostream&) const = 0;
18
19 virtual inputTOBType_t tobType() const = 0;
20
21 uint32_t roiWord() const { return m_roiWord; }
22
23 const std::string& tobName() const { return m_tobName; }
24
25 static size_t instances() { return 0; }
26
27 protected:
28 int sizeCheck(int value, unsigned int size) const;
29 int sizeCheckM(int value, unsigned int size) const;
30
31 unsigned int sizeCheck(unsigned int value, unsigned int size) const;
32
33
34 private:
35
36 uint32_t m_roiWord;
37 std::string m_tobName;
38
39 };
40
41std::ostream & operator<< (std::ostream & o, const TCS::BaseTOB&);
42
43}
44
45#endif
const std::string & tobName() const
Definition BaseTOB.h:23
virtual void print(std::ostream &) const =0
virtual ~BaseTOB()
int sizeCheck(int value, unsigned int size) const
Definition BaseTOB.cxx:32
uint32_t roiWord() const
Definition BaseTOB.h:21
std::string m_tobName
Definition BaseTOB.h:37
int sizeCheckM(int value, unsigned int size) const
Definition BaseTOB.cxx:19
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11
static size_t instances()
Definition BaseTOB.h:25
uint32_t m_roiWord
Definition BaseTOB.h:36
virtual inputTOBType_t tobType() const =0
std::ostream & operator<<(std::ostream &os, const TCS::Bin &bin)