ATLAS Offline Software
Loading...
Searching...
No Matches
MioctSectorGeometry.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_MioctSectorGeometry
6#define TrigConf_MioctSectorGeometry
7
8
9
10/*
11 <MIOCT id="0" slot="4">
12 <Sector connector="0" name="B30">
13 <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"/>
14 */
15 //need type traits for vector member
17#include <string>
18#include <vector>
19
21 public:
23 virtual ~MioctSectorGeometry() = default;
24
25 // getters
26 unsigned int connector() const {return m_connector; };
27 const std::string& name() const {return m_name; };
28 const std::vector<MioctROIGeometry>& ROIs() const {return m_ROIs; };
29
30
31 // setters
32 void addROI(const MioctROIGeometry& roi) {m_ROIs.push_back(roi);};
33 void setName(const std::string& name) { m_name = name; };
34 void setConnector(unsigned int id) { m_connector = id; };
35
36 virtual void print(const std::string& indent="", unsigned int detail=1) const;
37 virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
38
39 private:
40 unsigned int m_connector{};
41 std::string m_name;
42 std::vector<MioctROIGeometry> m_ROIs;
43
44};
45
46
47#endif
48
virtual void print(const std::string &indent="", unsigned int detail=1) const
void setConnector(unsigned int id)
const std::vector< MioctROIGeometry > & ROIs() const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
virtual ~MioctSectorGeometry()=default
std::vector< MioctROIGeometry > m_ROIs
void setName(const std::string &name)
unsigned int connector() const
void addROI(const MioctROIGeometry &roi)
const std::string & name() const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29