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

19 :
20 m_eta(std::numeric_limits<float>::max()),
21 m_phi(std::numeric_limits<float>::max())
22 {;}

◆ 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 {;}
float eta() const
float phi() const

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}
static const float PHI_MAX
static const float PHI_MIN
static constexpr float ETA_MIN
static constexpr float ETA_MAX

◆ 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

float AtlasGeoPoint::ETA_MAX = 5
staticconstexpr

Definition at line 34 of file AtlasGeoPoint.h.

◆ ETA_MIN

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: