ATLAS Offline Software
Loading...
Searching...
No Matches
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.

Private Attributes

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

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

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}
double m_etaGran
eta granularity
CaloLayer m_layer
calo layer
double m_phiGran
phi granularity

◆ 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: