ATLAS Offline Software
MioctGeometry.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_MioctGeometry
6 #define TrigConf_MioctGeometry
7 //need type traits for vector members
10 #include <string>
11 #include <vector>
12 
13 
15  public:
16  MioctGeometry();
17  virtual ~MioctGeometry() = default;
18 
19  // getters
20  unsigned int mioctId() const {return m_mioctid; };
21  unsigned int slot() const {return m_slot; };
22  const std::vector<MioctSectorGeometry>& sectors() {return m_Sectors; };
23  const std::vector<MioctTopoCellGeometry>& topoCells() {return m_TopoCells; };
24 
25  // setters
26  void setMioctId (unsigned int id ) {m_mioctid = id; };
27  void setSlot( int m ) { m_slot = m; };
28  void addSector( const MioctSectorGeometry& sector) {m_Sectors.push_back(sector);};
29  void addTopoCell( const MioctTopoCellGeometry& topocell) {m_TopoCells.push_back(topocell); };
30 
31  virtual void print(const std::string& indent="", unsigned int detail=1) const;
32  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
33 
34  private:
35  unsigned int m_mioctid{};
36  unsigned int m_slot{};
37  std::vector<MioctSectorGeometry> m_Sectors;
38  std::vector<MioctTopoCellGeometry> m_TopoCells;
39 
40 };
41 
42 #endif
43 
MioctGeometry::m_mioctid
unsigned int m_mioctid
Definition: MioctGeometry.h:35
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
MioctGeometry::sectors
const std::vector< MioctSectorGeometry > & sectors()
Definition: MioctGeometry.h:22
MioctGeometry::slot
unsigned int slot() const
Definition: MioctGeometry.h:21
detail
Definition: extract_histogram_tag.cxx:14
MioctGeometry::topoCells
const std::vector< MioctTopoCellGeometry > & topoCells()
Definition: MioctGeometry.h:23
MioctGeometry::addTopoCell
void addTopoCell(const MioctTopoCellGeometry &topocell)
Definition: MioctGeometry.h:29
MioctTopoCellGeometry.h
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
MioctGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: MioctGeometry.cxx:30
MioctGeometry::addSector
void addSector(const MioctSectorGeometry &sector)
Definition: MioctGeometry.h:28
MioctGeometry::setMioctId
void setMioctId(unsigned int id)
Definition: MioctGeometry.h:26
MioctGeometry::MioctGeometry
MioctGeometry()
Definition: MioctGeometry.cxx:11
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
MioctGeometry::setSlot
void setSlot(int m)
Definition: MioctGeometry.h:27
MioctGeometry::m_Sectors
std::vector< MioctSectorGeometry > m_Sectors
Definition: MioctGeometry.h:37
MioctGeometry::mioctId
unsigned int mioctId() const
Definition: MioctGeometry.h:20
MioctSectorGeometry
Definition: MioctSectorGeometry.h:20
MioctSectorGeometry.h
MioctGeometry::~MioctGeometry
virtual ~MioctGeometry()=default
MioctTopoCellGeometry
Definition: MioctTopoCellGeometry.h:15
MioctGeometry
Definition: MioctGeometry.h:14
MioctGeometry::m_TopoCells
std::vector< MioctTopoCellGeometry > m_TopoCells
Definition: MioctGeometry.h:38
MioctGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MioctGeometry.cxx:18
MioctGeometry::m_slot
unsigned int m_slot
Definition: MioctGeometry.h:36