ATLAS Offline Software
MioctROIGeometry.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_MioctROIGeometry
6 #define TrigConf_MioctROIGeometry
7 
8 #include <string>
9 #include <ostream>
10 #include <iomanip>
11 
12 /*
13  <MIOCT id="0" slot="4">
14  <Sector connector="0" name="B30">
15  <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"/>
16  */
17 
18 
19 std::ostream&
20 mioctIndent(std::ostream& o, int lvl, int size) ;
21 
23  public:
25  virtual ~MioctROIGeometry() = default;
26 
27  // getters
28  float eta() const { return m_eta; };
29  float phi() const{ return m_phi; };
30  unsigned int etacode() const{ return m_etacode; };
31  unsigned int phicode() const{ return m_phicode; };
32  float etamin() const{ return m_etamin; };
33  float etamax() const{ return m_etamax; };
34  float phimin() const{ return m_phimin; };
35  float phimax() const{ return m_phimax; };
36  unsigned int roiid() const{ return m_roiid; };
37 
38  // setters
39  void setEta(float v) { m_eta = v; };
40  void setPhi(float v) { m_phi = v; };
41  void setEtacode(unsigned int v) { m_etacode = v; };
42  void setPhicode(unsigned int v) { m_phicode = v; };
43  void setEtamin(float v) { m_etamin = v; };
44  void setEtamax(float v) { m_etamax = v; };
45  void setPhimin(float v) { m_phimin = v; };
46  void setPhimax(float v) { m_phimax = v; };
47  void setRoiid(unsigned int v) { m_roiid = v; };
48 
49  virtual void print(const std::string& indent="", unsigned int detail=1) const;
50  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
51 
52  private:
53  float m_eta;
54  float m_phi;
55  unsigned int m_etacode;
56  unsigned int m_phicode;
57  float m_etamin;
58  float m_etamax;
59  float m_phimin;
60  float m_phimax;
61  unsigned int m_roiid;
62 
63 };
64 
65 #endif
66 
MioctROIGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MioctROIGeometry.cxx:33
MioctROIGeometry::setEtacode
void setEtacode(unsigned int v)
Definition: MioctROIGeometry.h:41
MioctROIGeometry::m_phimin
float m_phimin
Definition: MioctROIGeometry.h:59
MioctROIGeometry::phimin
float phimin() const
Definition: MioctROIGeometry.h:34
MioctROIGeometry::m_etacode
unsigned int m_etacode
Definition: MioctROIGeometry.h:55
MioctROIGeometry::setPhicode
void setPhicode(unsigned int v)
Definition: MioctROIGeometry.h:42
detail
Definition: extract_histogram_tag.cxx:14
MioctROIGeometry::m_etamin
float m_etamin
Definition: MioctROIGeometry.h:57
MioctROIGeometry::roiid
unsigned int roiid() const
Definition: MioctROIGeometry.h:36
MioctROIGeometry::m_phimax
float m_phimax
Definition: MioctROIGeometry.h:60
MioctROIGeometry::phimax
float phimax() const
Definition: MioctROIGeometry.h:35
MioctROIGeometry::setRoiid
void setRoiid(unsigned int v)
Definition: MioctROIGeometry.h:47
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
MioctROIGeometry::~MioctROIGeometry
virtual ~MioctROIGeometry()=default
MioctROIGeometry
Definition: MioctROIGeometry.h:22
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
MioctROIGeometry::etamax
float etamax() const
Definition: MioctROIGeometry.h:33
MioctROIGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: MioctROIGeometry.cxx:49
MioctROIGeometry::m_etamax
float m_etamax
Definition: MioctROIGeometry.h:58
MioctROIGeometry::MioctROIGeometry
MioctROIGeometry()
Definition: MioctROIGeometry.cxx:20
MioctROIGeometry::phi
float phi() const
Definition: MioctROIGeometry.h:29
MioctROIGeometry::eta
float eta() const
Definition: MioctROIGeometry.h:28
MioctROIGeometry::setPhimin
void setPhimin(float v)
Definition: MioctROIGeometry.h:45
MioctROIGeometry::etacode
unsigned int etacode() const
Definition: MioctROIGeometry.h:30
MioctROIGeometry::etamin
float etamin() const
Definition: MioctROIGeometry.h:32
MioctROIGeometry::m_phi
float m_phi
Definition: MioctROIGeometry.h:54
python.PyAthena.v
v
Definition: PyAthena.py:154
MioctROIGeometry::setEtamax
void setEtamax(float v)
Definition: MioctROIGeometry.h:44
MioctROIGeometry::setEta
void setEta(float v)
Definition: MioctROIGeometry.h:39
MioctROIGeometry::m_roiid
unsigned int m_roiid
Definition: MioctROIGeometry.h:61
MioctROIGeometry::m_phicode
unsigned int m_phicode
Definition: MioctROIGeometry.h:56
MioctROIGeometry::setEtamin
void setEtamin(float v)
Definition: MioctROIGeometry.h:43
MioctROIGeometry::setPhimax
void setPhimax(float v)
Definition: MioctROIGeometry.h:46
MioctROIGeometry::m_eta
float m_eta
Definition: MioctROIGeometry.h:53
MioctROIGeometry::setPhi
void setPhi(float v)
Definition: MioctROIGeometry.h:40
mioctIndent
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
Definition: MioctROIGeometry.cxx:12
MioctROIGeometry::phicode
unsigned int phicode() const
Definition: MioctROIGeometry.h:31