ATLAS Offline Software
Loading...
Searching...
No Matches
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{
49public:
50
52
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
123private:
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
150inline
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
169inline
172 : m_id(id),
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
195inline double CaloTTDescrRegion::eta() const
196{ return m_eta;}
197inline double CaloTTDescrRegion::phi() const
198{ return m_phi;}
199inline double CaloTTDescrRegion::rho() const
200{ return m_rho;}
201inline double CaloTTDescrRegion::deta() const
202{ return m_deta;}
203inline double CaloTTDescrRegion::dphi() const
204{ return m_dphi;}
205inline double CaloTTDescrRegion::drho() const
206{ return m_drho;}
207
208inline double CaloTTDescrRegion::x() const
209{ return m_x;}
210inline double CaloTTDescrRegion::y() const
211{ return m_y;}
212inline double CaloTTDescrRegion::z() const
213{ return m_z;}
214inline double CaloTTDescrRegion::dx() const
215{ return m_dx;}
216inline double CaloTTDescrRegion::dy() const
217{ return m_dy;}
218inline double CaloTTDescrRegion::dz() const
219{ return m_dz;}
220
221#endif // CALODETDESCR_CALOTTDESCRREGION_H
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
double deta() const
return size in phi (unsigned)
double phi() const
return coordinateof the Det Descr Region: phi
CaloTTDescriptor descriptor_type
const descriptor_type * descriptor() const
void set_cartesian_size(double dx, double dy, double dz)
set size of the Det Descr region – cartesian system; all signed
void set_cartesian(double x, double y, double z)
set coordinates of the Det Descr region – cartesian system; all signed
double x() const
return coordinateof the Det Descr Region: x (signed)
CaloTTDescrRegion(void)
default constructor
const descriptor_type * m_descriptor
double eta() const
return coordinateof the Det Descr Region: eta (signed)
virtual Identifier identify() const
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)
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
double dx() const
return size in x (unsigned)
double dy() const
return size in y (unsigned)
double y() const
return coordinateof the Det Descr Region: y (signed)
double dz() const
return size in z (unsigned)
double dphi() const
return size in eta (unsigned)
double z() const
return coordinateof the Det Descr Region: z (signed)
double drho() const
return size in rho (unsigned)
double rho() const
return coordinateof the Det Descr Region: rho (unsigned)
void set_cylindric(double eta, double phi, double z)
set coordinates of the Det Descr region – pseudo cylindrical system; eta is signed,...
This class holds the Calorimeter TriggerTower geometrical description.
This class provides an abstract interface to an Identifiable object.