ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CaloTTDescrRegion Class Reference

This class provides an interface to the geometrical description of the Calorimeter Trigger Towers. More...

#include <CaloTTDescrRegion.h>

Inheritance diagram for CaloTTDescrRegion:
Collaboration diagram for CaloTTDescrRegion:

Public Types

typedef CaloTTDescriptor descriptor_type
 

Public Member Functions

 CaloTTDescrRegion (void)
 default constructor More...
 
 CaloTTDescrRegion (const Identifier &id, const descriptor_type *descriptor)
 constructor More...
 
virtual Identifier identify () const
 
const descriptor_typedescriptor () const
 
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 More...
 
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 More...
 
void set_cylindric (double eta, double phi, double z)
 set coordinates of the Det Descr region – pseudo cylindrical system; eta is signed, z as well (same sign) More...
 
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) More...
 
void set_cartesian (double x, double y, double z)
 set coordinates of the Det Descr region – cartesian system; all signed More...
 
void set_cartesian_size (double dx, double dy, double dz)
 set size of the Det Descr region – cartesian system; all signed More...
 
double eta () const
 return coordinateof the Det Descr Region: eta (signed) More...
 
double phi () const
 return coordinateof the Det Descr Region: phi More...
 
double rho () const
 return coordinateof the Det Descr Region: rho (unsigned) More...
 
double dphi () const
 return size in eta (unsigned) More...
 
double deta () const
 return size in phi (unsigned) More...
 
double drho () const
 return size in rho (unsigned) More...
 
double x () const
 return coordinateof the Det Descr Region: x (signed) More...
 
double y () const
 return coordinateof the Det Descr Region: y (signed) More...
 
double z () const
 return coordinateof the Det Descr Region: z (signed) More...
 
double dx () const
 return size in x (unsigned) More...
 
double dy () const
 return size in y (unsigned) More...
 
double dz () const
 return size in z (unsigned) More...
 
void print () const
 
virtual IdentifierHash identifyHash () const
 
virtual const IdHelpergetHelper () const
 

Private Attributes

Identifier m_id
 
const descriptor_typem_descriptor
 
double m_eta
 
double m_phi
 
double m_rho
 
double m_deta
 
double m_dphi
 
double m_drho
 
double m_x
 
double m_y
 
double m_z
 
double m_dx
 
double m_dy
 
double m_dz
 

Detailed Description

This class provides an interface to the geometrical description of the Calorimeter Trigger Towers.

Each instance of a CaloTTDescrRegion corresponds to the description of a Trigger Tower.

It is an interface, the real geometrical information is held by the CaloTTDescriptors.

Information available:
-------------------—

Identifier: Each CaloTTDescrRegion has an Identifier which uniquely identifies to which region it corresponds, i.e. which positive/negative half, sampling, and region number (see class Calo_LVL1ID in package CaloIdentifier for more info.).

Print: A general print method is available.

Definition at line 47 of file CaloTTDescrRegion.h.

Member Typedef Documentation

◆ descriptor_type

Definition at line 54 of file CaloTTDescrRegion.h.

Constructor & Destructor Documentation

◆ CaloTTDescrRegion() [1/2]

CaloTTDescrRegion::CaloTTDescrRegion ( void  )
inline

default constructor

Definition at line 151 of file CaloTTDescrRegion.h.

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 {}

◆ CaloTTDescrRegion() [2/2]

CaloTTDescrRegion::CaloTTDescrRegion ( const Identifier id,
const descriptor_type descriptor 
)
inline

constructor

Definition at line 170 of file CaloTTDescrRegion.h.

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 {}

Member Function Documentation

◆ descriptor()

const CaloTTDescrRegion::descriptor_type * CaloTTDescrRegion::descriptor ( ) const
inline

Definition at line 189 of file CaloTTDescrRegion.h.

190 {
191  return m_descriptor;
192 }

◆ deta()

double CaloTTDescrRegion::deta ( ) const
inline

return size in phi (unsigned)

Definition at line 201 of file CaloTTDescrRegion.h.

202 { return m_deta;}

◆ dphi()

double CaloTTDescrRegion::dphi ( ) const
inline

return size in eta (unsigned)

Definition at line 203 of file CaloTTDescrRegion.h.

204 { return m_dphi;}

◆ drho()

double CaloTTDescrRegion::drho ( ) const
inline

return size in rho (unsigned)

Definition at line 205 of file CaloTTDescrRegion.h.

206 { return m_drho;}

◆ dx()

double CaloTTDescrRegion::dx ( ) const
inline

return size in x (unsigned)

Definition at line 214 of file CaloTTDescrRegion.h.

215 { return m_dx;}

◆ dy()

double CaloTTDescrRegion::dy ( ) const
inline

return size in y (unsigned)

Definition at line 216 of file CaloTTDescrRegion.h.

217 { return m_dy;}

◆ dz()

double CaloTTDescrRegion::dz ( ) const
inline

return size in z (unsigned)

Definition at line 218 of file CaloTTDescrRegion.h.

219 { return m_dz;}

◆ eta()

double CaloTTDescrRegion::eta ( ) const
inline

return coordinateof the Det Descr Region: eta (signed)

Definition at line 195 of file CaloTTDescrRegion.h.

196 { return m_eta;}

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

◆ identify()

Identifier CaloTTDescrRegion::identify ( ) const
virtual

Implements Identifiable.

Definition at line 22 of file CaloTTDescrRegion.cxx.

23 {
24  return m_id;
25 }

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

◆ phi()

double CaloTTDescrRegion::phi ( ) const
inline

return coordinateof the Det Descr Region: phi

Definition at line 197 of file CaloTTDescrRegion.h.

198 { return m_phi;}

◆ print()

void CaloTTDescrRegion::print ( ) const

Definition at line 139 of file CaloTTDescrRegion.cxx.

140 {
141 
142  std::cout << std::endl << " CaloTTDescrRegion print: "
143  << std::endl << std::endl;
144 
145  m_id.show();
146  m_descriptor->print();
147 }

◆ rho()

double CaloTTDescrRegion::rho ( ) const
inline

return coordinateof the Det Descr Region: rho (unsigned)

Definition at line 199 of file CaloTTDescrRegion.h.

200 { return m_rho;}

◆ set_cartesian()

void CaloTTDescrRegion::set_cartesian ( double  x,
double  y,
double  z 
)

set coordinates of the Det Descr region – cartesian system; all signed

Definition at line 108 of file CaloTTDescrRegion.cxx.

111 {
112  m_x = x;
113  m_y = y;
114  m_z = z;
115 
116  // from this recompute (semi)spherical coordinates
117  m_rho = sqrt ( m_x*m_x+m_y*m_y) ;
118  double big_r = sqrt(m_x*m_x+m_y*m_y+m_z*m_z);
119  m_eta = 0.5*log((big_r+m_z)/(big_r-m_z));
120  m_phi = atan2(m_y,m_x);
121 }

◆ set_cartesian_size()

void CaloTTDescrRegion::set_cartesian_size ( double  dx,
double  dy,
double  dz 
)

set size of the Det Descr region – cartesian system; all signed

Definition at line 124 of file CaloTTDescrRegion.cxx.

127 {
128  m_dx = dx;
129  m_dy = dy;
130  m_dz = dz;
131 
132  // from this recompute size in (semi)spherical... TBD !!!
133  m_deta = 0.;
134  m_dphi = 0.;
135  m_drho = 0.;
136 }

◆ set_cylindric()

void CaloTTDescrRegion::set_cylindric ( double  eta,
double  phi,
double  z 
)

set coordinates of the Det Descr region – pseudo cylindrical system; eta is signed, z as well (same sign)

Definition at line 70 of file CaloTTDescrRegion.cxx.

73 {
74  m_eta = eta ;
75  m_phi = phi;
76  m_z = z;
77 
78  // from this recompute complementary set of coordinates
79  m_rho = m_z/sinh(m_eta);
80  m_x = m_rho*cos(m_phi);
81  m_y = m_rho*sin(m_phi);
82 
83  }

◆ set_cylindric_size()

void CaloTTDescrRegion::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 at line 86 of file CaloTTDescrRegion.cxx.

89 {
90  m_deta = deta;
91  m_dphi = dphi;
92  m_dz = dz;
93 
94  // from this recompute size in complementary set of coord. ... to be completed !!!
95 
96  double dx = 0.;
97  double dy = 0.;
98  double drho = (-m_z*cosh(m_eta)/sinh(m_eta)*m_deta
99  +m_dz) / sinh(m_eta);
100 
101  m_dx = fabs(dx);
102  m_dy = fabs(dy);
103  m_drho = fabs(drho);
104 
105  }

◆ set_spherical()

void CaloTTDescrRegion::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 at line 28 of file CaloTTDescrRegion.cxx.

31 {
32  m_eta = eta ;
33  m_phi= phi;
34  m_rho = rho;
35 
36  // from this recompute cartesian coordinates
37  m_x = m_rho*cos(m_phi);
38  m_y = m_rho*sin(m_phi);
39  m_z = m_rho*sinh(m_eta);
40 
41  }

◆ set_spherical_size()

void CaloTTDescrRegion::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 at line 44 of file CaloTTDescrRegion.cxx.

47 {
48  m_deta = deta;
49  m_dphi = dphi;
50  m_drho = drho;
51 
52  // from this recompute size in cartesian... to be completed !!!
53 
54  double dx = 0.;
55  double dy = 0.;
56  double dz = 0.;
57  if(m_rho < 1600) {
58  dz = m_drho * fabs(sinh(m_eta)) + m_deta * m_rho * cosh(m_eta);
59  } else {
60  dz = m_drho * fabs(sinh(m_eta));
61  }
62 
63  m_dx = fabs(dx);
64  m_dy = fabs(dy);
65  m_dz = fabs(dz);
66 
67  }

◆ x()

double CaloTTDescrRegion::x ( ) const
inline

return coordinateof the Det Descr Region: x (signed)

Definition at line 208 of file CaloTTDescrRegion.h.

209 { return m_x;}

◆ y()

double CaloTTDescrRegion::y ( ) const
inline

return coordinateof the Det Descr Region: y (signed)

Definition at line 210 of file CaloTTDescrRegion.h.

211 { return m_y;}

◆ z()

double CaloTTDescrRegion::z ( ) const
inline

return coordinateof the Det Descr Region: z (signed)

Definition at line 212 of file CaloTTDescrRegion.h.

213 { return m_z;}

Member Data Documentation

◆ m_descriptor

const descriptor_type* CaloTTDescrRegion::m_descriptor
private

Definition at line 130 of file CaloTTDescrRegion.h.

◆ m_deta

double CaloTTDescrRegion::m_deta
private

Definition at line 136 of file CaloTTDescrRegion.h.

◆ m_dphi

double CaloTTDescrRegion::m_dphi
private

Definition at line 137 of file CaloTTDescrRegion.h.

◆ m_drho

double CaloTTDescrRegion::m_drho
private

Definition at line 138 of file CaloTTDescrRegion.h.

◆ m_dx

double CaloTTDescrRegion::m_dx
private

Definition at line 144 of file CaloTTDescrRegion.h.

◆ m_dy

double CaloTTDescrRegion::m_dy
private

Definition at line 145 of file CaloTTDescrRegion.h.

◆ m_dz

double CaloTTDescrRegion::m_dz
private

Definition at line 146 of file CaloTTDescrRegion.h.

◆ m_eta

double CaloTTDescrRegion::m_eta
private

Definition at line 133 of file CaloTTDescrRegion.h.

◆ m_id

Identifier CaloTTDescrRegion::m_id
private

Definition at line 128 of file CaloTTDescrRegion.h.

◆ m_phi

double CaloTTDescrRegion::m_phi
private

Definition at line 134 of file CaloTTDescrRegion.h.

◆ m_rho

double CaloTTDescrRegion::m_rho
private

Definition at line 135 of file CaloTTDescrRegion.h.

◆ m_x

double CaloTTDescrRegion::m_x
private

Definition at line 141 of file CaloTTDescrRegion.h.

◆ m_y

double CaloTTDescrRegion::m_y
private

Definition at line 142 of file CaloTTDescrRegion.h.

◆ m_z

double CaloTTDescrRegion::m_z
private

Definition at line 143 of file CaloTTDescrRegion.h.


The documentation for this class was generated from the following files:
CaloTTDescrRegion::m_id
Identifier m_id
Definition: CaloTTDescrRegion.h:128
get_generator_info.result
result
Definition: get_generator_info.py:21
CaloTTDescrRegion::m_dy
double m_dy
Definition: CaloTTDescrRegion.h:145
CaloTTDescriptor::print
void print() const
Print.
Definition: CaloTTDescriptor.cxx:42
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
athena.value
value
Definition: athena.py:122
CaloTTDescrRegion::m_x
double m_x
Definition: CaloTTDescrRegion.h:141
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
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::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::y
double y() const
return coordinateof the Det Descr Region: y (signed)
Definition: CaloTTDescrRegion.h:210
Identifier::show
void show() const
Print out in hex form.
Definition: Identifier.cxx:36
CaloTTDescrRegion::m_y
double m_y
Definition: CaloTTDescrRegion.h:142
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
CaloTTDescrRegion::drho
double drho() const
return size in rho (unsigned)
Definition: CaloTTDescrRegion.h:205
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
CaloTTDescrRegion::deta
double deta() const
return size in phi (unsigned)
Definition: CaloTTDescrRegion.h:201
IdentifierHash
Definition: IdentifierHash.h:38
CaloTTDescrRegion::m_dx
double m_dx
Definition: CaloTTDescrRegion.h:144
CaloTTDescrRegion::m_drho
double m_drho
Definition: CaloTTDescrRegion.h:138