ATLAS Offline Software
Loading...
Searching...
No Matches
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:
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
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
void setEtacode(unsigned int v)
virtual ~MioctTopoCellGeometry()=default
unsigned int phicode() const
void setPhicode(unsigned int v)
unsigned int etacode() const
virtual void print(const std::string &indent="", unsigned int detail=1) const
MioctTopoCellGeometry()=default
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29