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

This class holds the Calorimeter TriggerTower geometrical description
More...

#include <CaloTTDescriptor.h>

Collaboration diagram for CaloTTDescriptor:

Public Member Functions

 CaloTTDescriptor ()
 Default constructor. More...
 
 CaloTTDescriptor (float eta_min, float eta_max, float deta, float phi_min, float phi_max, float dphi, int sign_eta, short n_lay)
 Constructor : set geom parameters of each descriptor of equal granularity TT regions
More...
 
 ~CaloTTDescriptor ()=default
 
void set (const Identifier &id)
 set internal data member m_id (which is unused. More...
 
Identifier identify (void) const
 Identifier - indicates which calorimeter. More...
 
int sign_eta () const
 descriptor parameter: sign of eta (+-1) More...
 
float eta_min () const
 descriptor parameter: min value of abs(eta) More...
 
float eta_max () const
 descriptor parameter: max value of abs(eta) More...
 
float phiMin () const
 descriptor parameter: min value of phi More...
 
float phiMax () const
 descriptor parameter: max value of phi More...
 
float deta () const
 descriptor parameter: eta granularity More...
 
float dphi () const
 descriptor parameter: phi granularity More...
 
short nEta () const
 descriptor parameter: number of eta bins More...
 
short nPhi () const
 descriptor parameter: number of phi bins More...
 
short nLay () const
 descriptor parameter: number of layers More...
 
void print () const
 Print. More...
 
void set (float eta_min, float eta_max, float deta, float phi_min, float phi_max, float dphi, int sign_eta, short n_lay)
 set descriptor parameters More...
 

Private Attributes

Identifier m_id
 an identifier associated to the descriptor. More...
 
int m_sign_eta
 descriptor parameter: sign of eta (+-1) More...
 
float m_eta_min
 descriptor parameter: min value of abs(eta) More...
 
float m_eta_max
 descriptor parameter: max value of abs(eta) More...
 
float m_deta
 descriptor parameter: eta granularity More...
 
float m_phi_min
 descriptor parameter: min value of phi More...
 
float m_phi_max
 descriptor parameter: max value of phi More...
 
float m_dphi
 descriptor parameter: phi granularity More...
 
short m_nEta
 descriptor parameter: number of eta bins More...
 
short m_nPhi
 descriptor parameter: number of phi bins More...
 
short m_nLay
 descriptor parameter: number of layers More...
 

Detailed Description

This class holds the Calorimeter TriggerTower geometrical description

There are four regions of different granularities in the Trigger Tower system:
0.1x0.1, 0.2x0.2, 0.1x0.2, 0.4x0.4
There is 1 Descriptor per such region.

Definition at line 29 of file CaloTTDescriptor.h.

Constructor & Destructor Documentation

◆ CaloTTDescriptor() [1/2]

CaloTTDescriptor::CaloTTDescriptor ( )
inline

Default constructor.

Definition at line 114 of file CaloTTDescriptor.h.

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 }

◆ CaloTTDescriptor() [2/2]

CaloTTDescriptor::CaloTTDescriptor ( float  eta_min,
float  eta_max,
float  deta,
float  phi_min,
float  phi_max,
float  dphi,
int  sign_eta,
short  n_lay 
)

Constructor : set geom parameters of each descriptor of equal granularity TT regions

Definition at line 22 of file CaloTTDescriptor.cxx.

25  :
29  m_deta (deta),
30  m_phi_min (phi_min),
31  m_phi_max (phi_max),
32  m_dphi (dphi),
33  m_nEta ((short) ((eta_max - eta_min)/deta + 0.501)),
34  m_nPhi ((short) ((phi_max - phi_min)/dphi + 0.501)),
35  m_nLay (n_lay)
36 {
37 }

◆ ~CaloTTDescriptor()

CaloTTDescriptor::~CaloTTDescriptor ( )
default

Member Function Documentation

◆ deta()

float CaloTTDescriptor::deta ( ) const
inline

descriptor parameter: eta granularity

Definition at line 164 of file CaloTTDescriptor.h.

165 { return m_deta; }

◆ dphi()

float CaloTTDescriptor::dphi ( ) const
inline

descriptor parameter: phi granularity

Definition at line 168 of file CaloTTDescriptor.h.

169 { return m_dphi; }

◆ eta_max()

float CaloTTDescriptor::eta_max ( ) const
inline

descriptor parameter: max value of abs(eta)

Definition at line 152 of file CaloTTDescriptor.h.

153 { return m_eta_max; }

◆ eta_min()

float CaloTTDescriptor::eta_min ( ) const
inline

descriptor parameter: min value of abs(eta)

Definition at line 148 of file CaloTTDescriptor.h.

149 { return m_eta_min; }

◆ identify()

Identifier CaloTTDescriptor::identify ( void  ) const
inline

Identifier - indicates which calorimeter.

Definition at line 138 of file CaloTTDescriptor.h.

139 {
140  return m_id;
141 }

◆ nEta()

short CaloTTDescriptor::nEta ( ) const
inline

descriptor parameter: number of eta bins

Definition at line 172 of file CaloTTDescriptor.h.

173 { return m_nEta; }

◆ nLay()

short CaloTTDescriptor::nLay ( ) const
inline

descriptor parameter: number of layers

Definition at line 180 of file CaloTTDescriptor.h.

181 { return m_nLay; }

◆ nPhi()

short CaloTTDescriptor::nPhi ( ) const
inline

descriptor parameter: number of phi bins

Definition at line 176 of file CaloTTDescriptor.h.

177 { return m_nPhi; }

◆ phiMax()

float CaloTTDescriptor::phiMax ( ) const
inline

descriptor parameter: max value of phi

Definition at line 160 of file CaloTTDescriptor.h.

161 { return m_phi_max; }

◆ phiMin()

float CaloTTDescriptor::phiMin ( ) const
inline

descriptor parameter: min value of phi

Definition at line 156 of file CaloTTDescriptor.h.

157 { return m_phi_min; }

◆ print()

void CaloTTDescriptor::print ( ) const

Print.

Definition at line 42 of file CaloTTDescriptor.cxx.

43 {
44  std::cout << std::endl << " CaloTTDescriptor print: "
45  << std::endl << std::endl;
46 
47  // Print out id
48  m_id.show();
49 
50  std::cout << " Calo LVL1 Trigger Towers: " << std::endl;
51  std::cout << " eta min eta max deta phi min phi max dphi nLay"
52  << std::endl;
53  std::cout << std::setiosflags(std::ios::fixed);
54  std::cout << std::setw(9) << std::setprecision(4) << m_eta_min << " "
55  << std::setw(9) << std::setprecision(4) << m_eta_max << " "
56  << std::setw(9) << std::setprecision(4) << m_deta << " "
57  << std::setw(9) << std::setprecision(4) << m_phi_min << " "
58  << std::setw(9) << std::setprecision(4) << m_phi_max << " "
59  << std::setw(9) << std::setprecision(4) << m_dphi << " "
60  << std::setw(9) << std::setprecision(4) << m_nLay << " "
61  << std::endl;
62 }

◆ set() [1/2]

void CaloTTDescriptor::set ( const Identifier id)
inline

set internal data member m_id (which is unused.

should be removed

Definition at line 131 of file CaloTTDescriptor.h.

132 {
133  m_id = id;
134 }

◆ set() [2/2]

void CaloTTDescriptor::set ( float  eta_min,
float  eta_max,
float  deta,
float  phi_min,
float  phi_max,
float  dphi,
int  sign_eta,
short  n_lay 
)

set descriptor parameters

Definition at line 66 of file CaloTTDescriptor.cxx.

74 {
77  m_deta = deta;
78  m_phi_min = phi_min;
79  m_phi_max = phi_max;
80  m_dphi = dphi;
81  m_nEta = (short) ((eta_max - eta_min)/deta + 0.501);
82  // Dummy conditional to prevent these two statements from being
83  // evaluated using a vectorized instruction. Otherwise, we can
84  // get a FPE in the clang build from the division because there
85  // are two unused vector lanes.
86  if (m_nEta > 0) {
87  m_nPhi = (short) ((phi_max - phi_min)/dphi + 0.501);
88  }
89  else {
90  m_nPhi = 0;
91  }
93  m_nLay = n_lay;
94 }

◆ sign_eta()

int CaloTTDescriptor::sign_eta ( ) const
inline

descriptor parameter: sign of eta (+-1)

Definition at line 144 of file CaloTTDescriptor.h.

145 { return m_sign_eta; }

Member Data Documentation

◆ m_deta

float CaloTTDescriptor::m_deta
private

descriptor parameter: eta granularity

Definition at line 98 of file CaloTTDescriptor.h.

◆ m_dphi

float CaloTTDescriptor::m_dphi
private

descriptor parameter: phi granularity

Definition at line 104 of file CaloTTDescriptor.h.

◆ m_eta_max

float CaloTTDescriptor::m_eta_max
private

descriptor parameter: max value of abs(eta)

Definition at line 96 of file CaloTTDescriptor.h.

◆ m_eta_min

float CaloTTDescriptor::m_eta_min
private

descriptor parameter: min value of abs(eta)

Definition at line 94 of file CaloTTDescriptor.h.

◆ m_id

Identifier CaloTTDescriptor::m_id
private

an identifier associated to the descriptor.

actually useless. should be cleaned away

Definition at line 90 of file CaloTTDescriptor.h.

◆ m_nEta

short CaloTTDescriptor::m_nEta
private

descriptor parameter: number of eta bins

Definition at line 106 of file CaloTTDescriptor.h.

◆ m_nLay

short CaloTTDescriptor::m_nLay
private

descriptor parameter: number of layers

Definition at line 110 of file CaloTTDescriptor.h.

◆ m_nPhi

short CaloTTDescriptor::m_nPhi
private

descriptor parameter: number of phi bins

Definition at line 108 of file CaloTTDescriptor.h.

◆ m_phi_max

float CaloTTDescriptor::m_phi_max
private

descriptor parameter: max value of phi

Definition at line 102 of file CaloTTDescriptor.h.

◆ m_phi_min

float CaloTTDescriptor::m_phi_min
private

descriptor parameter: min value of phi

Definition at line 100 of file CaloTTDescriptor.h.

◆ m_sign_eta

int CaloTTDescriptor::m_sign_eta
private

descriptor parameter: sign of eta (+-1)

Definition at line 92 of file CaloTTDescriptor.h.


The documentation for this class was generated from the following files:
CaloTTDescriptor::m_deta
float m_deta
descriptor parameter: eta granularity
Definition: CaloTTDescriptor.h:98
CaloTTDescriptor::m_sign_eta
int m_sign_eta
descriptor parameter: sign of eta (+-1)
Definition: CaloTTDescriptor.h:92
xAOD::short
short
Definition: Vertex_v1.cxx:165
CaloTTDescriptor::eta_min
float eta_min() const
descriptor parameter: min value of abs(eta)
Definition: CaloTTDescriptor.h:148
CaloTTDescriptor::m_dphi
float m_dphi
descriptor parameter: phi granularity
Definition: CaloTTDescriptor.h:104
CaloTTDescriptor::eta_max
float eta_max() const
descriptor parameter: max value of abs(eta)
Definition: CaloTTDescriptor.h:152
CaloTTDescriptor::m_phi_min
float m_phi_min
descriptor parameter: min value of phi
Definition: CaloTTDescriptor.h:100
CaloTTDescriptor::m_eta_min
float m_eta_min
descriptor parameter: min value of abs(eta)
Definition: CaloTTDescriptor.h:94
CaloTTDescriptor::m_eta_max
float m_eta_max
descriptor parameter: max value of abs(eta)
Definition: CaloTTDescriptor.h:96
CaloTTDescriptor::m_id
Identifier m_id
an identifier associated to the descriptor.
Definition: CaloTTDescriptor.h:90
CaloTTDescriptor::m_nPhi
short m_nPhi
descriptor parameter: number of phi bins
Definition: CaloTTDescriptor.h:108
CaloTTDescriptor::deta
float deta() const
descriptor parameter: eta granularity
Definition: CaloTTDescriptor.h:164
Identifier::show
void show() const
Print out in hex form.
Definition: Identifier.cxx:30
CaloTTDescriptor::m_nEta
short m_nEta
descriptor parameter: number of eta bins
Definition: CaloTTDescriptor.h:106
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
CaloTTDescriptor::sign_eta
int sign_eta() const
descriptor parameter: sign of eta (+-1)
Definition: CaloTTDescriptor.h:144
CaloTTDescriptor::dphi
float dphi() const
descriptor parameter: phi granularity
Definition: CaloTTDescriptor.h:168
CaloTTDescriptor::m_phi_max
float m_phi_max
descriptor parameter: max value of phi
Definition: CaloTTDescriptor.h:102
CaloTTDescriptor::m_nLay
short m_nLay
descriptor parameter: number of layers
Definition: CaloTTDescriptor.h:110