ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTTDescriptor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 Calorimeter LVL1 Trigger Towers description package
7 -----------------------------------------
8 ***************************************************************************/
9
10//<doc><file> $Id: CaloTTDescriptor.h,v 1.5 2007-06-19 11:12:58 fledroit Exp $
11//<version> $Name: not supported by cvs2svn $
12
13#ifndef CALODETDESCR_CALOTTDESCRIPTOR_H
14#define CALODETDESCR_CALOTTDESCRIPTOR_H
15
16#include <Identifier/Identifier.h>
17
18#include <math.h>
19
20
21
30{
31public:
32
35
37 CaloTTDescriptor(float eta_min, float eta_max, float deta,
38 float phi_min, float phi_max, float dphi,
39 int sign_eta,short n_lay);
40
41 ~CaloTTDescriptor() = default;
42
44 void set (const Identifier& id);
45
47 Identifier identify(void) const;
48
50 int sign_eta() const;
52 float eta_min () const;
54 float eta_max () const;
56 float phiMin () const;
58 float phiMax () const;
60 float deta () const;
62 float dphi () const;
64 short nEta () const;
66 short nPhi () const;
68 short nLay () const;
69
71 void print () const;
72
74 void set ( float eta_min,
75 float eta_max,
76 float deta,
77 float phi_min,
78 float phi_max,
79 float dphi,
80 int sign_eta,
81 short n_lay);
82
83
84private:
85
91 float m_eta_min;
93 float m_eta_max;
95 float m_deta;
97 float m_phi_min;
99 float m_phi_max;
101 float m_dphi;
103 short m_nEta;
105 short m_nPhi;
107 short m_nLay;
108
109
110};
111
112
113inline
115 :
116 m_sign_eta(0),
117 m_eta_min(0),
118 m_eta_max(0),
119 m_deta(0),
120 m_phi_min(0),
121 m_phi_max(0),
122 m_dphi(0),
123 m_nEta(0),
124 m_nPhi(0),
125 m_nLay(0)
126
127{
128}
129
130inline void
132{
133 m_id = id;
134}
135
136
137inline Identifier
139{
140 return m_id;
141}
142
143inline int
146
147inline float
149{ return m_eta_min; }
150
151inline float
153{ return m_eta_max; }
154
155inline float
157{ return m_phi_min; }
158
159inline float
161{ return m_phi_max; }
162
163inline float
165{ return m_deta; }
166
167inline float
169{ return m_dphi; }
170
171inline short
173{ return m_nEta; }
174
175inline short
177{ return m_nPhi; }
178
179inline short
181{ return m_nLay; }
182
183
184#endif // CALODETDESCR_CALOTTDESCRIPTOR_H
185
void set(const Identifier &id)
set internal data member m_id (which is unused.
short nPhi() const
descriptor parameter: number of phi bins
float deta() const
descriptor parameter: eta granularity
float phiMax() const
descriptor parameter: max value of phi
short m_nLay
descriptor parameter: number of layers
CaloTTDescriptor()
Default constructor.
float m_eta_min
descriptor parameter: min value of abs(eta)
short nLay() const
descriptor parameter: number of layers
float m_eta_max
descriptor parameter: max value of abs(eta)
int m_sign_eta
descriptor parameter: sign of eta (+-1)
int sign_eta() const
descriptor parameter: sign of eta (+-1)
float m_dphi
descriptor parameter: phi granularity
float m_phi_max
descriptor parameter: max value of phi
float dphi() const
descriptor parameter: phi granularity
~CaloTTDescriptor()=default
float m_deta
descriptor parameter: eta granularity
short nEta() const
descriptor parameter: number of eta bins
float m_phi_min
descriptor parameter: min value of phi
float phiMin() const
descriptor parameter: min value of phi
Identifier m_id
an identifier associated to the descriptor.
float eta_min() const
descriptor parameter: min value of abs(eta)
short m_nPhi
descriptor parameter: number of phi bins
float eta_max() const
descriptor parameter: max value of abs(eta)
void print() const
Print.
short m_nEta
descriptor parameter: number of eta bins
Identifier identify(void) const
Identifier - indicates which calorimeter.