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

#include <AtlasGeoPoint.h>

Collaboration diagram for AtlasGeoPoint:

Public Member Functions

 AtlasGeoPoint ()
 
 AtlasGeoPoint (const float eta, const float phi)
 
AtlasGeoPointoperator= (const AtlasGeoPoint &p)
 
bool isValid () const
 
float eta () const
 
float phi () const
 
void setEta (const float eta)
 
void setPhi (const float phi)
 

Static Public Attributes

static const float PHI_MIN = CaloPhiRange::phi_min()
 
static const float PHI_MAX = CaloPhiRange::phi_max()
 
static constexpr float ETA_MIN = -5
 
static constexpr float ETA_MAX = 5
 

Private Attributes

float m_eta
 
float m_phi
 

Detailed Description

Definition at line 15 of file AtlasGeoPoint.h.

Constructor & Destructor Documentation

◆ AtlasGeoPoint() [1/2]

AtlasGeoPoint::AtlasGeoPoint ( )
inline

Definition at line 19 of file AtlasGeoPoint.h.

◆ AtlasGeoPoint() [2/2]

AtlasGeoPoint::AtlasGeoPoint ( const float  eta,
const float  phi 
)
inline

Definition at line 24 of file AtlasGeoPoint.h.

24  :
25  m_eta(eta),
26  m_phi(phi)
27  {;}

Member Function Documentation

◆ eta()

float AtlasGeoPoint::eta ( ) const
inline

Definition at line 87 of file AtlasGeoPoint.h.

88 {
89  return m_eta;
90 }

◆ isValid()

bool AtlasGeoPoint::isValid ( ) const
inline

Definition at line 76 of file AtlasGeoPoint.h.

77 {
78  if ( ( m_eta >= ETA_MIN && m_phi >= PHI_MIN ) &&
79  ( m_eta <= ETA_MAX && m_phi <= PHI_MAX ) ){
80  return true;
81  }
82  return false;
83 }

◆ operator=()

AtlasGeoPoint & AtlasGeoPoint::operator= ( const AtlasGeoPoint p)
inline

Definition at line 64 of file AtlasGeoPoint.h.

65 {
66  if(this==&p){
67  return *this;
68  }
69  m_eta = p.eta();
70  m_phi = p.phi();
71  return *this;
72 }

◆ phi()

float AtlasGeoPoint::phi ( ) const
inline

Definition at line 94 of file AtlasGeoPoint.h.

95 {
96  return m_phi;
97 }

◆ setEta()

void AtlasGeoPoint::setEta ( const float  eta)
inline

Definition at line 101 of file AtlasGeoPoint.h.

102 {
103  m_eta = eta;
104 }

◆ setPhi()

void AtlasGeoPoint::setPhi ( const float  phi)
inline

Definition at line 108 of file AtlasGeoPoint.h.

109 {
110  m_phi = phi;
111 }

Member Data Documentation

◆ ETA_MAX

constexpr float AtlasGeoPoint::ETA_MAX = 5
staticconstexpr

Definition at line 34 of file AtlasGeoPoint.h.

◆ ETA_MIN

constexpr float AtlasGeoPoint::ETA_MIN = -5
staticconstexpr

Definition at line 33 of file AtlasGeoPoint.h.

◆ m_eta

float AtlasGeoPoint::m_eta
private

Definition at line 55 of file AtlasGeoPoint.h.

◆ m_phi

float AtlasGeoPoint::m_phi
private

Definition at line 57 of file AtlasGeoPoint.h.

◆ PHI_MAX

const float AtlasGeoPoint::PHI_MAX = CaloPhiRange::phi_max()
static

Definition at line 30 of file AtlasGeoPoint.h.

◆ PHI_MIN

const float AtlasGeoPoint::PHI_MIN = CaloPhiRange::phi_min()
static

Definition at line 29 of file AtlasGeoPoint.h.


The documentation for this class was generated from the following files:
AtlasGeoPoint::PHI_MAX
static const float PHI_MAX
Definition: AtlasGeoPoint.h:30
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
max
#define max(a, b)
Definition: cfImp.cxx:41
AtlasGeoPoint::phi
float phi() const
Definition: AtlasGeoPoint.h:94
AtlasGeoPoint::ETA_MAX
static constexpr float ETA_MAX
Definition: AtlasGeoPoint.h:34
AtlasGeoPoint::m_eta
float m_eta
Definition: AtlasGeoPoint.h:55
AtlasGeoPoint::m_phi
float m_phi
Definition: AtlasGeoPoint.h:57
AtlasGeoPoint::ETA_MIN
static constexpr float ETA_MIN
Definition: AtlasGeoPoint.h:33
AtlasGeoPoint::eta
float eta() const
Definition: AtlasGeoPoint.h:87
AtlasGeoPoint::PHI_MIN
static const float PHI_MIN
Definition: AtlasGeoPoint.h:29