ATLAS Offline Software
MioctSectorGeometry.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_MioctSectorGeometry
6 #define TrigConf_MioctSectorGeometry
7 
8 #include <string>
9 #include <vector>
10 
11 /*
12  <MIOCT id="0" slot="4">
13  <Sector connector="0" name="B30">
14  <ROI eta="-0.934032" phi="-0.348145" etacode="0x2" phicode="0x0" etamin="-0.905571" etamax="-0.962493" phimin="-0.389923" phimax="-0.306366" roiid="21"/>
15  */
16 
17 class MictROIGeometry;
18 
20  public:
22  virtual ~MioctSectorGeometry() = default;
23 
24  // getters
25  unsigned int connector() const {return m_connector; };
26  const std::string& name() const {return m_name; };
27  const std::vector<MioctROIGeometry>& ROIs() const {return m_ROIs; };
28 
29 
30  // setters
31  void addROI( MioctROIGeometry roi) {m_ROIs.push_back(roi);};
32  void setName(const std::string& name) { m_name = name; };
33  void setConnector(unsigned int id) { m_connector = id; };
34 
35  virtual void print(const std::string& indent="", unsigned int detail=1) const;
36  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
37 
38  private:
39  unsigned int m_connector;
40  std::string m_name;
41  std::vector<MioctROIGeometry> m_ROIs;
42 
43 };
44 
45 
46 #endif
47 
MioctSectorGeometry::connector
unsigned int connector() const
Definition: MioctSectorGeometry.h:25
MioctSectorGeometry::setName
void setName(const std::string &name)
Definition: MioctSectorGeometry.h:32
MioctSectorGeometry::m_connector
unsigned int m_connector
Definition: MioctSectorGeometry.h:39
MioctSectorGeometry::~MioctSectorGeometry
virtual ~MioctSectorGeometry()=default
detail
Definition: extract_histogram_tag.cxx:14
MioctSectorGeometry::m_name
std::string m_name
Definition: MioctSectorGeometry.h:40
MioctSectorGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MioctSectorGeometry.cxx:18
MioctROIGeometry
Definition: MioctROIGeometry.h:22
MioctSectorGeometry::addROI
void addROI(MioctROIGeometry roi)
Definition: MioctSectorGeometry.h:31
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:18
MioctSectorGeometry::m_ROIs
std::vector< MioctROIGeometry > m_ROIs
Definition: MioctSectorGeometry.h:41
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
MioctSectorGeometry::setConnector
void setConnector(unsigned int id)
Definition: MioctSectorGeometry.h:33
MioctSectorGeometry
Definition: MioctSectorGeometry.h:19
MioctSectorGeometry::ROIs
const std::vector< MioctROIGeometry > & ROIs() const
Definition: MioctSectorGeometry.h:27
MioctSectorGeometry::MioctSectorGeometry
MioctSectorGeometry()
Definition: MioctSectorGeometry.cxx:11
MioctSectorGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: MioctSectorGeometry.cxx:28
MioctSectorGeometry::name
const std::string & name() const
Definition: MioctSectorGeometry.h:26