ATLAS Offline Software
Loading...
Searching...
No Matches
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
 CaloTTDescrRegion (const Identifier &id, const descriptor_type *descriptor)
 constructor
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
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
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)
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_cartesian (double x, double y, double z)
 set coordinates of the Det Descr region – cartesian system; all signed
void set_cartesian_size (double dx, double dy, double dz)
 set size of the Det Descr region – cartesian system; all signed
double eta () const
 return coordinateof the Det Descr Region: eta (signed)
double phi () const
 return coordinateof the Det Descr Region: phi
double rho () const
 return coordinateof the Det Descr Region: rho (unsigned)
double dphi () const
 return size in eta (unsigned)
double deta () const
 return size in phi (unsigned)
double drho () const
 return size in rho (unsigned)
double x () const
 return coordinateof the Det Descr Region: x (signed)
double y () const
 return coordinateof the Det Descr Region: y (signed)
double z () const
 return coordinateof the Det Descr Region: z (signed)
double dx () const
 return size in x (unsigned)
double dy () const
 return size in y (unsigned)
double dz () const
 return size in z (unsigned)
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

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{}
const descriptor_type * m_descriptor

◆ 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{}
const descriptor_type * descriptor() const

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

Definition at line 18 of file Identifiable.cxx.

18 {
19 return (nullptr);
20}

◆ 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

Reimplemented in CaloDetDescrElement, CaloDetDescriptor, InDetRawDataCollection< RawDataT >, InDetRawDataCollection< Pixel1RawData >, InDetRawDataCollection< PixelRDORawData >, InDetRawDataCollection< PixelTB04RawData >, InDetRawDataCollection< RDO >, InDetRawDataCollection< SCT3_RawData >, InDetRawDataCollection< SCT_RDORawData >, InDetRawDataCollection< SCT_TB03_RawData >, InDetRawDataCollection< SCT_TB04_RawData >, InDetRawDataCollection< TRT_RDORawData >, InDetRawDataCollection< TRT_TB04_RawData >, Muon::MuonPrepDataCollection< PrepDataT >, Muon::MuonPrepDataCollection< CscPrepData >, Muon::MuonPrepDataCollection< CscStripPrepData >, Muon::MuonPrepDataCollection< MdtPrepData >, Muon::MuonPrepDataCollection< MMPrepData >, Muon::MuonPrepDataCollection< Muon::CscPrepData >, Muon::MuonPrepDataCollection< Muon::CscStripPrepData >, Muon::MuonPrepDataCollection< Muon::MdtPrepData >, Muon::MuonPrepDataCollection< Muon::MMPrepData >, Muon::MuonPrepDataCollection< Muon::RpcPrepData >, Muon::MuonPrepDataCollection< Muon::sTgcPrepData >, Muon::MuonPrepDataCollection< Muon::TgcPrepData >, Muon::MuonPrepDataCollection< RpcPrepData >, Muon::MuonPrepDataCollection< sTgcPrepData >, Muon::MuonPrepDataCollection< TgcPrepData >, SiChargedDiodeCollection, SpacePointCollection, Trk::PrepRawDataCollection< PrepRawDataT >, Trk::PrepRawDataCollection< HGTD_Cluster >, Trk::PrepRawDataCollection< InDet::SiCluster >, Trk::PrepRawDataCollection< PixelCluster >, Trk::PrepRawDataCollection< SCT_Cluster >, Trk::PrepRawDataCollection< TrigSiSpacePoint >, and Trk::PrepRawDataCollection< TRT_DriftCircle >.

Definition at line 11 of file Identifiable.cxx.

11 {
12 IdentifierHash result;
13 return (result);
14}

◆ 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}
double x() const
return coordinateof the Det Descr Region: x (signed)
double y() const
return coordinateof the Det Descr Region: y (signed)
double z() const
return coordinateof the Det Descr Region: z (signed)

◆ 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}
double dx() const
return size in x (unsigned)
double dy() const
return size in y (unsigned)
double dz() const
return size in z (unsigned)

◆ 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 }
double phi() const
return coordinateof the Det Descr Region: phi
double eta() const
return coordinateof the Det Descr Region: eta (signed)

◆ 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 }
double deta() const
return size in phi (unsigned)
double dphi() const
return size in eta (unsigned)
double drho() const
return size in rho (unsigned)

◆ 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 }
double rho() const
return coordinateof the Det Descr Region: rho (unsigned)

◆ 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 127 of file CaloTTDescrRegion.h.

◆ m_deta

double CaloTTDescrRegion::m_deta
private

Definition at line 133 of file CaloTTDescrRegion.h.

◆ m_dphi

double CaloTTDescrRegion::m_dphi
private

Definition at line 134 of file CaloTTDescrRegion.h.

◆ m_drho

double CaloTTDescrRegion::m_drho
private

Definition at line 135 of file CaloTTDescrRegion.h.

◆ m_dx

double CaloTTDescrRegion::m_dx
private

Definition at line 141 of file CaloTTDescrRegion.h.

◆ m_dy

double CaloTTDescrRegion::m_dy
private

Definition at line 142 of file CaloTTDescrRegion.h.

◆ m_dz

double CaloTTDescrRegion::m_dz
private

Definition at line 143 of file CaloTTDescrRegion.h.

◆ m_eta

double CaloTTDescrRegion::m_eta
private

Definition at line 130 of file CaloTTDescrRegion.h.

◆ m_id

Identifier CaloTTDescrRegion::m_id
private

Definition at line 125 of file CaloTTDescrRegion.h.

◆ m_phi

double CaloTTDescrRegion::m_phi
private

Definition at line 131 of file CaloTTDescrRegion.h.

◆ m_rho

double CaloTTDescrRegion::m_rho
private

Definition at line 132 of file CaloTTDescrRegion.h.

◆ m_x

double CaloTTDescrRegion::m_x
private

Definition at line 138 of file CaloTTDescrRegion.h.

◆ m_y

double CaloTTDescrRegion::m_y
private

Definition at line 139 of file CaloTTDescrRegion.h.

◆ m_z

double CaloTTDescrRegion::m_z
private

Definition at line 140 of file CaloTTDescrRegion.h.


The documentation for this class was generated from the following files: