ATLAS Offline Software
Loading...
Searching...
No Matches
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:
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
unsigned int m_mioctid
std::vector< MioctSectorGeometry > m_Sectors
void addSector(const MioctSectorGeometry &sector)
void addTopoCell(const MioctTopoCellGeometry &topocell)
unsigned int slot() const
void setSlot(int m)
const std::vector< MioctSectorGeometry > & sectors()
std::vector< MioctTopoCellGeometry > m_TopoCells
virtual ~MioctGeometry()=default
unsigned int mioctId() const
virtual void print(const std::string &indent="", unsigned int detail=1) const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
unsigned int m_slot
void setMioctId(unsigned int id)
const std::vector< MioctTopoCellGeometry > & topoCells()
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29