ATLAS Offline Software
MioctTopoCellGeometry.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_MioctTopoCellGeometry
6 #define TrigConf_MioctTopoCellGeometry
7 
8 #include <string>
9 
10 /*
11  <Decode>
12  <TopoCell etacode="0x0" phicode="0x0" eta="-0.162496" phi="-0.347931" etamin="-0.304085" etamax="-0.020907" phimin="-0.389909" phimax="-0.305953"/>
13  */
14 
16  public:
17  MioctTopoCellGeometry() = default;
18  virtual ~MioctTopoCellGeometry() = default;
19 
20  // getters
21  float eta() const{ return m_eta; };
22  float phi() const{ return m_phi; };
23  int ieta() const{ return m_ieta; };
24  int iphi() const{ return m_iphi; };
25  unsigned int etacode() const{ return m_etacode; };
26  unsigned int phicode() const{ return m_phicode; };
27  float etamin() const{ return m_etamin; };
28  float etamax() const{ return m_etamax; };
29  float phimin() const{ return m_phimin; };
30  float phimax() const{ return m_phimax; };
31 
32  // setters
33  void setEta(float v) { m_eta = v; };
34  void setPhi(float v) { m_phi = v; };
35  void setIEta(int v) { m_ieta = v; };
36  void setIPhi(int v) { m_iphi = v; };
37  void setEtacode(unsigned int v) { m_etacode = v; };
38  void setPhicode(unsigned int v) { m_phicode = v; };
39  void setEtamin(float v) { m_etamin = v; };
40  void setEtamax(float v) { m_etamax = v; };
41  void setPhimin(float v) { m_phimin = v; };
42  void setPhimax(float v) { m_phimax = v; };
43 
44  virtual void print(const std::string& indent="", unsigned int detail=1) const;
45  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
46 
47  private:
48  float m_eta{0};
49  float m_phi{0};
50  int m_ieta{0};
51  int m_iphi{0};
52  unsigned int m_etacode{0};
53  unsigned int m_phicode{0};
54  float m_etamin{0};
55  float m_etamax{0};
56  float m_phimin{0};
57  float m_phimax{0};
58 
59 };
60 
61 
62 #endif
63 
MioctTopoCellGeometry::setIEta
void setIEta(int v)
Definition: MioctTopoCellGeometry.h:35
MioctTopoCellGeometry::MioctTopoCellGeometry
MioctTopoCellGeometry()=default
MioctTopoCellGeometry::setEtamax
void setEtamax(float v)
Definition: MioctTopoCellGeometry.h:40
MioctTopoCellGeometry::m_etacode
unsigned int m_etacode
Definition: MioctTopoCellGeometry.h:52
MioctTopoCellGeometry::ieta
int ieta() const
Definition: MioctTopoCellGeometry.h:23
MioctTopoCellGeometry::phimin
float phimin() const
Definition: MioctTopoCellGeometry.h:29
MioctTopoCellGeometry::~MioctTopoCellGeometry
virtual ~MioctTopoCellGeometry()=default
MioctTopoCellGeometry::setPhimin
void setPhimin(float v)
Definition: MioctTopoCellGeometry.h:41
MioctTopoCellGeometry::setIPhi
void setIPhi(int v)
Definition: MioctTopoCellGeometry.h:36
detail
Definition: extract_histogram_tag.cxx:14
MioctTopoCellGeometry::eta
float eta() const
Definition: MioctTopoCellGeometry.h:21
MioctTopoCellGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: MioctTopoCellGeometry.cxx:27
MioctTopoCellGeometry::m_phicode
unsigned int m_phicode
Definition: MioctTopoCellGeometry.h:53
MioctTopoCellGeometry::setPhicode
void setPhicode(unsigned int v)
Definition: MioctTopoCellGeometry.h:38
MioctTopoCellGeometry::etamax
float etamax() const
Definition: MioctTopoCellGeometry.h:28
MioctTopoCellGeometry::setPhi
void setPhi(float v)
Definition: MioctTopoCellGeometry.h:34
MioctTopoCellGeometry::m_eta
float m_eta
Definition: MioctTopoCellGeometry.h:48
MioctTopoCellGeometry::m_ieta
int m_ieta
Definition: MioctTopoCellGeometry.h:50
MioctTopoCellGeometry::phimax
float phimax() const
Definition: MioctTopoCellGeometry.h:30
MioctTopoCellGeometry::m_etamin
float m_etamin
Definition: MioctTopoCellGeometry.h:54
MioctTopoCellGeometry::setPhimax
void setPhimax(float v)
Definition: MioctTopoCellGeometry.h:42
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
MioctTopoCellGeometry::setEtacode
void setEtacode(unsigned int v)
Definition: MioctTopoCellGeometry.h:37
MioctTopoCellGeometry::phi
float phi() const
Definition: MioctTopoCellGeometry.h:22
MioctTopoCellGeometry::phicode
unsigned int phicode() const
Definition: MioctTopoCellGeometry.h:26
MioctTopoCellGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MioctTopoCellGeometry.cxx:12
MioctTopoCellGeometry::m_iphi
int m_iphi
Definition: MioctTopoCellGeometry.h:51
MioctTopoCellGeometry::setEtamin
void setEtamin(float v)
Definition: MioctTopoCellGeometry.h:39
MioctTopoCellGeometry::etamin
float etamin() const
Definition: MioctTopoCellGeometry.h:27
python.PyAthena.v
v
Definition: PyAthena.py:154
MioctTopoCellGeometry::setEta
void setEta(float v)
Definition: MioctTopoCellGeometry.h:33
MioctTopoCellGeometry::m_phimax
float m_phimax
Definition: MioctTopoCellGeometry.h:57
MioctTopoCellGeometry
Definition: MioctTopoCellGeometry.h:15
MioctTopoCellGeometry::iphi
int iphi() const
Definition: MioctTopoCellGeometry.h:24
MioctTopoCellGeometry::m_phi
float m_phi
Definition: MioctTopoCellGeometry.h:49
MioctTopoCellGeometry::m_phimin
float m_phimin
Definition: MioctTopoCellGeometry.h:56
MioctTopoCellGeometry::m_etamax
float m_etamax
Definition: MioctTopoCellGeometry.h:55
MioctTopoCellGeometry::etacode
unsigned int etacode() const
Definition: MioctTopoCellGeometry.h:25