ATLAS Offline Software
Loading...
Searching...
No Matches
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
19std::ostream&
20mioctIndent(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
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
void setEtamin(float v)
void setEtamax(float v)
void setEtacode(unsigned int v)
unsigned int etacode() const
float phimin() const
unsigned int roiid() const
float phimax() const
float eta() const
void setPhi(float v)
virtual void print(const std::string &indent="", unsigned int detail=1) const
void setRoiid(unsigned int v)
unsigned int m_phicode
void setPhimin(float v)
void setPhimax(float v)
float etamin() const
float etamax() const
unsigned int m_roiid
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
unsigned int phicode() const
void setEta(float v)
virtual ~MioctROIGeometry()=default
float phi() const
unsigned int m_etacode
void setPhicode(unsigned int v)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29