ATLAS Offline Software
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>
8 #include "L1TopoCommon/Types.h"
9 
10 namespace 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 
37  std::string m_tobName;
38 
39  };
40 
41 std::ostream & operator<< (std::ostream & o, const TCS::BaseTOB&);
42 
43 }
44 
45 #endif
TCS::BaseTOB::print
virtual void print(std::ostream &) const =0
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition: BaseTOB.h:23
TCS::BaseTOB::tobType
virtual inputTOBType_t tobType() const =0
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TCS::BaseTOB::instances
static size_t instances()
Definition: BaseTOB.h:25
athena.value
value
Definition: athena.py:124
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition: BaseTOB.h:21
Types.h
TCS::BaseTOB::sizeCheck
int sizeCheck(int value, unsigned int size) const
Definition: BaseTOB.cxx:32
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition: BaseTOB.cxx:11
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::BaseTOB::m_roiWord
uint32_t m_roiWord
Definition: BaseTOB.h:36
TCS::BaseTOB::~BaseTOB
virtual ~BaseTOB()
TCS::inputTOBType_t
inputTOBType_t
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
TCS::BaseTOB::sizeCheckM
int sizeCheckM(int value, unsigned int size) const
Definition: BaseTOB.cxx:19
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::operator<<
std::ostream & operator<<(std::ostream &, const TCS::CountingConnector &)
Definition: CountingConnector.cxx:93
TCS::BaseTOB::m_tobName
std::string m_tobName
Definition: BaseTOB.h:37