ATLAS Offline Software
CaloTTDescrRegion.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 /***************************************************************************
6  Calorimeter LVL1 TT description package
7  -----------------------------------------
8  ***************************************************************************/
9 
10 //<doc><file> $Id: CaloTTDescrRegion.h,v 1.5 2008-12-13 07:25:15 ssnyder Exp $
11 //<version> $Name: not supported by cvs2svn $
12 
13 #ifndef CALODETDESCR_CALOTTDESCRREGION_H
14 #define CALODETDESCR_CALOTTDESCRREGION_H
15 
16 //<<<<<< INCLUDES >>>>>>
17 
19 #include "Identifier/Identifier.h"
21 
22 //<<<<<< PUBLIC DEFINES >>>>>>
23 //<<<<<< PUBLIC CONSTANTS >>>>>>
24 //<<<<<< PUBLIC TYPES >>>>>>
25 //<<<<<< PUBLIC VARIABLES >>>>>>
26 //<<<<<< PUBLIC FUNCTIONS >>>>>>
27 //<<<<<< CLASS DECLARATIONS >>>>>>
28 
48 {
49 public:
50 
52 
56  CaloTTDescrRegion(const Identifier& id,
58 
60  virtual Identifier identify () const;
61 
62  const descriptor_type* descriptor () const;
63 
65  void set_spherical ( double eta,
66  double phi,
67  double rho );
68 
70  void set_spherical_size ( double deta,
71  double dphi,
72  double drho );
73 
75  void set_cylindric ( double eta,
76  double phi,
77  double z );
78 
80  void set_cylindric_size ( double deta,
81  double dphi,
82  double dz );
83 
85  void set_cartesian ( double x,
86  double y,
87  double z );
88 
90  void set_cartesian_size ( double dx,
91  double dy,
92  double dz );
93 
94 
96  double eta () const ;
98  double phi () const ;
100  double rho () const ;
102  double dphi () const ;
104  double deta () const ;
106  double drho () const ;
107 
109  double x() const ;
111  double y() const ;
113  double z() const ;
115  double dx() const ;
117  double dy() const ;
119  double dz() const ;
120 
121  void print () const;
122 
123 private:
124 
126 
128 
129  // spherical coordinates :
130  double m_eta ;
131  double m_phi ;
132  double m_rho ;
133  double m_deta ;
134  double m_dphi ;
135  double m_drho ;
136 
137  // cartesian coordinates :
138  double m_x ;
139  double m_y ;
140  double m_z ;
141  double m_dx ;
142  double m_dy ;
143  double m_dz ;
144 
145 
146 };
147 
148 
149 
150 inline
152  :
153  m_descriptor(0),
154  m_eta(0.),
155  m_phi(0.),
156  m_rho(0.),
157  m_deta(0.),
158  m_dphi(0.),
159  m_drho(0.),
160  m_x(0.),
161  m_y(0.),
162  m_z(0.),
163  m_dx(0.),
164  m_dy(0.),
165  m_dz(0.)
166 
167 {}
168 
169 inline
171  const descriptor_type* descriptor)
172  : m_id(id),
173  m_descriptor(descriptor),
174  m_eta(0.),
175  m_phi(0.),
176  m_rho(0.),
177  m_deta(0.),
178  m_dphi(0.),
179  m_drho(0.),
180  m_x(0.),
181  m_y(0.),
182  m_z(0.),
183  m_dx(0.),
184  m_dy(0.),
185  m_dz(0.)
186 {}
187 
190 {
191  return m_descriptor;
192 }
193 
194 
195 inline double CaloTTDescrRegion::eta() const
196 { return m_eta;}
197 inline double CaloTTDescrRegion::phi() const
198 { return m_phi;}
199 inline double CaloTTDescrRegion::rho() const
200 { return m_rho;}
201 inline double CaloTTDescrRegion::deta() const
202 { return m_deta;}
203 inline double CaloTTDescrRegion::dphi() const
204 { return m_dphi;}
205 inline double CaloTTDescrRegion::drho() const
206 { return m_drho;}
207 
208 inline double CaloTTDescrRegion::x() const
209 { return m_x;}
210 inline double CaloTTDescrRegion::y() const
211 { return m_y;}
212 inline double CaloTTDescrRegion::z() const
213 { return m_z;}
214 inline double CaloTTDescrRegion::dx() const
215 { return m_dx;}
216 inline double CaloTTDescrRegion::dy() const
217 { return m_dy;}
218 inline double CaloTTDescrRegion::dz() const
219 { return m_dz;}
220 
221 #endif // CALODETDESCR_CALOTTDESCRREGION_H
CaloTTDescrRegion::descriptor_type
CaloTTDescriptor descriptor_type
Definition: CaloTTDescrRegion.h:54
CaloTTDescrRegion::set_cartesian_size
void set_cartesian_size(double dx, double dy, double dz)
set size of the Det Descr region – cartesian system; all signed
Definition: CaloTTDescrRegion.cxx:124
CaloTTDescrRegion::m_id
Identifier m_id
Definition: CaloTTDescrRegion.h:128
CaloTTDescrRegion::CaloTTDescrRegion
CaloTTDescrRegion(void)
default constructor
Definition: CaloTTDescrRegion.h:151
CaloTTDescrRegion::m_dy
double m_dy
Definition: CaloTTDescrRegion.h:145
CaloTTDescrRegion::m_deta
double m_deta
Definition: CaloTTDescrRegion.h:136
CaloTTDescrRegion::descriptor
const descriptor_type * descriptor() const
Definition: CaloTTDescrRegion.h:189
CaloTTDescrRegion::dx
double dx() const
return size in x (unsigned)
Definition: CaloTTDescrRegion.h:214
CaloTTDescriptor.h
CaloTTDescrRegion::m_x
double m_x
Definition: CaloTTDescrRegion.h:141
Identifiable.h
CaloTTDescrRegion::set_spherical
void set_spherical(double eta, double phi, double rho)
set coordinates of the Det Descr region – pseudo spherical system; eta is signed, rho is unsigned
Definition: CaloTTDescrRegion.cxx:28
CaloTTDescrRegion::phi
double phi() const
return coordinateof the Det Descr Region: phi
Definition: CaloTTDescrRegion.h:197
CaloTTDescrRegion::x
double x() const
return coordinateof the Det Descr Region: x (signed)
Definition: CaloTTDescrRegion.h:208
CaloTTDescrRegion::m_eta
double m_eta
Definition: CaloTTDescrRegion.h:133
CaloTTDescrRegion::rho
double rho() const
return coordinateof the Det Descr Region: rho (unsigned)
Definition: CaloTTDescrRegion.h:199
CaloTTDescrRegion::print
void print() const
Definition: CaloTTDescrRegion.cxx:139
CaloTTDescrRegion::m_dphi
double m_dphi
Definition: CaloTTDescrRegion.h:137
CaloTTDescrRegion::m_dz
double m_dz
Definition: CaloTTDescrRegion.h:146
CaloTTDescrRegion::m_phi
double m_phi
Definition: CaloTTDescrRegion.h:134
CaloTTDescrRegion::dy
double dy() const
return size in y (unsigned)
Definition: CaloTTDescrRegion.h:216
CaloTTDescrRegion::dphi
double dphi() const
return size in eta (unsigned)
Definition: CaloTTDescrRegion.h:203
CaloTTDescrRegion::set_cartesian
void set_cartesian(double x, double y, double z)
set coordinates of the Det Descr region – cartesian system; all signed
Definition: CaloTTDescrRegion.cxx:108
CaloTTDescrRegion::y
double y() const
return coordinateof the Det Descr Region: y (signed)
Definition: CaloTTDescrRegion.h:210
CaloTTDescrRegion::set_cylindric_size
void set_cylindric_size(double deta, double dphi, double dz)
set size of the Det Descr region – pseudo cylindrical system; eta is signed, z as well (same sign)
Definition: CaloTTDescrRegion.cxx:86
CaloTTDescrRegion::identify
virtual Identifier identify() const
Definition: CaloTTDescrRegion.cxx:22
CaloTTDescrRegion::set_cylindric
void set_cylindric(double eta, double phi, double z)
set coordinates of the Det Descr region – pseudo cylindrical system; eta is signed,...
Definition: CaloTTDescrRegion.cxx:70
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
CaloTTDescrRegion::m_y
double m_y
Definition: CaloTTDescrRegion.h:142
CaloTTDescrRegion::set_spherical_size
void set_spherical_size(double deta, double dphi, double drho)
set size of the Det Descr region – pseudo spherical system; eta is signed, rho is unsigned
Definition: CaloTTDescrRegion.cxx:44
CaloTTDescrRegion::m_descriptor
const descriptor_type * m_descriptor
Definition: CaloTTDescrRegion.h:130
CaloTTDescrRegion::m_z
double m_z
Definition: CaloTTDescrRegion.h:143
CaloTTDescrRegion::dz
double dz() const
return size in z (unsigned)
Definition: CaloTTDescrRegion.h:218
Identifiable
This class provides an abstract interface to an Identifiable object.
Definition: Identifiable.h:27
CaloTTDescrRegion::drho
double drho() const
return size in rho (unsigned)
Definition: CaloTTDescrRegion.h:205
CaloTTDescrRegion
This class provides an interface to the geometrical description of the Calorimeter Trigger Towers.
Definition: CaloTTDescrRegion.h:48
CaloTTDescrRegion::eta
double eta() const
return coordinateof the Det Descr Region: eta (signed)
Definition: CaloTTDescrRegion.h:195
CaloTTDescrRegion::m_rho
double m_rho
Definition: CaloTTDescrRegion.h:135
CaloTTDescrRegion::z
double z() const
return coordinateof the Det Descr Region: z (signed)
Definition: CaloTTDescrRegion.h:212
CaloTTDescrRegion::deta
double deta() const
return size in phi (unsigned)
Definition: CaloTTDescrRegion.h:201
CaloTTDescrRegion::m_dx
double m_dx
Definition: CaloTTDescrRegion.h:144
CaloTTDescriptor
This class holds the Calorimeter TriggerTower geometrical description
Definition: CaloTTDescriptor.h:30
CaloTTDescrRegion::m_drho
double m_drho
Definition: CaloTTDescrRegion.h:138
Identifier
Definition: IdentifierFieldParser.cxx:14