ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
LVL1::ChannelCoordinate Class Reference

Holds eta/phi coordinates corresponding to a crate/module channel. More...

#include <ChannelCoordinate.h>

Collaboration diagram for LVL1::ChannelCoordinate:

Public Types

enum  CaloLayer {
  NONE, EM, HAD, FCAL2,
  FCAL3
}
 

Public Member Functions

 ChannelCoordinate ()
 
 ChannelCoordinate (CaloLayer layer, double eta, double phi, double etaGran, double phiGran)
 
CaloLayer layer () const
 
double eta () const
 
double phi () const
 
double etaGranularity () const
 
double phiGranularity () const
 
void setLayer (CaloLayer layer)
 
void setEta (double eta)
 
void setPhi (double phi)
 
void setEtaGranularity (double etaGran)
 
void setPhiGranularity (double phiGran)
 

Static Public Member Functions

static std::string layerName (CaloLayer layer)
 Return layer name. More...
 

Private Attributes

CaloLayer m_layer
 calo layer More...
 
double m_eta
 central eta More...
 
double m_phi
 central phi More...
 
double m_etaGran
 eta granularity More...
 
double m_phiGran
 phi granularity More...
 

Detailed Description

Holds eta/phi coordinates corresponding to a crate/module channel.

Also includes layer and eta/phi granularities.

Author
Peter Faulkner

Definition at line 19 of file ChannelCoordinate.h.

Member Enumeration Documentation

◆ CaloLayer

Enumerator
NONE 
EM 
HAD 
FCAL2 
FCAL3 

Definition at line 23 of file ChannelCoordinate.h.

23 { NONE, EM, HAD, FCAL2, FCAL3 };

Constructor & Destructor Documentation

◆ ChannelCoordinate() [1/2]

LVL1::ChannelCoordinate::ChannelCoordinate ( )

Definition at line 10 of file ChannelCoordinate.cxx.

10  : m_layer(NONE), m_eta(0.0), m_phi(0.0),
11  m_etaGran(0.0), m_phiGran(0.0)
12 {
13 }

◆ ChannelCoordinate() [2/2]

LVL1::ChannelCoordinate::ChannelCoordinate ( CaloLayer  layer,
double  eta,
double  phi,
double  etaGran,
double  phiGran 
)

Definition at line 15 of file ChannelCoordinate.cxx.

17  :
18  m_layer(layer), m_eta(eta), m_phi(phi), m_etaGran(etaGran), m_phiGran(phiGran)
19 {
20 }

Member Function Documentation

◆ eta()

double LVL1::ChannelCoordinate::eta ( ) const
inline

Definition at line 61 of file ChannelCoordinate.h.

62 {
63  return m_eta;
64 }

◆ etaGranularity()

double LVL1::ChannelCoordinate::etaGranularity ( ) const
inline

Definition at line 71 of file ChannelCoordinate.h.

72 {
73  return m_etaGran;
74 }

◆ layer()

ChannelCoordinate::CaloLayer LVL1::ChannelCoordinate::layer ( ) const
inline

Definition at line 56 of file ChannelCoordinate.h.

57 {
58  return m_layer;
59 }

◆ layerName()

std::string LVL1::ChannelCoordinate::layerName ( CaloLayer  layer)
static

Return layer name.

Definition at line 22 of file ChannelCoordinate.cxx.

23 {
24  std::string name;
25  switch (layer) {
26  case ChannelCoordinate::NONE: name = "NONE"; break;
27  case ChannelCoordinate::EM: name = "EM"; break;
28  case ChannelCoordinate::HAD: name = "HAD"; break;
29  case ChannelCoordinate::FCAL2: name = "FCAL2"; break;
30  case ChannelCoordinate::FCAL3: name = "FCAL3"; break;
31  default: name = "????"; break;
32  }
33  return name;
34 }

◆ phi()

double LVL1::ChannelCoordinate::phi ( ) const
inline

Definition at line 66 of file ChannelCoordinate.h.

67 {
68  return m_phi;
69 }

◆ phiGranularity()

double LVL1::ChannelCoordinate::phiGranularity ( ) const
inline

Definition at line 76 of file ChannelCoordinate.h.

77 {
78  return m_phiGran;
79 }

◆ setEta()

void LVL1::ChannelCoordinate::setEta ( double  eta)
inline

Definition at line 87 of file ChannelCoordinate.h.

88 {
89  m_eta = eta;
90 }

◆ setEtaGranularity()

void LVL1::ChannelCoordinate::setEtaGranularity ( double  etaGran)
inline

Definition at line 97 of file ChannelCoordinate.h.

98 {
99  m_etaGran = etaGran;
100 }

◆ setLayer()

void LVL1::ChannelCoordinate::setLayer ( const ChannelCoordinate::CaloLayer  layer)
inline

Definition at line 81 of file ChannelCoordinate.h.

83 {
84  m_layer = layer;
85 }

◆ setPhi()

void LVL1::ChannelCoordinate::setPhi ( double  phi)
inline

Definition at line 92 of file ChannelCoordinate.h.

93 {
94  m_phi = phi;
95 }

◆ setPhiGranularity()

void LVL1::ChannelCoordinate::setPhiGranularity ( double  phiGran)
inline

Definition at line 102 of file ChannelCoordinate.h.

103 {
104  m_phiGran = phiGran;
105 }

Member Data Documentation

◆ m_eta

double LVL1::ChannelCoordinate::m_eta
private

central eta

Definition at line 49 of file ChannelCoordinate.h.

◆ m_etaGran

double LVL1::ChannelCoordinate::m_etaGran
private

eta granularity

Definition at line 51 of file ChannelCoordinate.h.

◆ m_layer

CaloLayer LVL1::ChannelCoordinate::m_layer
private

calo layer

Definition at line 48 of file ChannelCoordinate.h.

◆ m_phi

double LVL1::ChannelCoordinate::m_phi
private

central phi

Definition at line 50 of file ChannelCoordinate.h.

◆ m_phiGran

double LVL1::ChannelCoordinate::m_phiGran
private

phi granularity

Definition at line 52 of file ChannelCoordinate.h.


The documentation for this class was generated from the following files:
LVL1::ChannelCoordinate::m_layer
CaloLayer m_layer
calo layer
Definition: ChannelCoordinate.h:48
LVL1::ChannelCoordinate::m_etaGran
double m_etaGran
eta granularity
Definition: ChannelCoordinate.h:51
LVL1::ChannelCoordinate::phi
double phi() const
Definition: ChannelCoordinate.h:66
LVL1::ChannelCoordinate::layer
CaloLayer layer() const
Definition: ChannelCoordinate.h:56
LVL1::ChannelCoordinate::EM
@ EM
Definition: ChannelCoordinate.h:23
LVL1::ChannelCoordinate::FCAL3
@ FCAL3
Definition: ChannelCoordinate.h:23
LVL1::ChannelCoordinate::m_eta
double m_eta
central eta
Definition: ChannelCoordinate.h:49
LVL1::ChannelCoordinate::m_phi
double m_phi
central phi
Definition: ChannelCoordinate.h:50
LVL1::ChannelCoordinate::NONE
@ NONE
Definition: ChannelCoordinate.h:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LVL1::ChannelCoordinate::FCAL2
@ FCAL2
Definition: ChannelCoordinate.h:23
LVL1::ChannelCoordinate::eta
double eta() const
Definition: ChannelCoordinate.h:61
LVL1::ChannelCoordinate::HAD
@ HAD
Definition: ChannelCoordinate.h:23
LVL1::ChannelCoordinate::m_phiGran
double m_phiGran
phi granularity
Definition: ChannelCoordinate.h:52