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)
 ~AtlasGeoPoint ()=default
 AtlasGeoPoint (const AtlasGeoPoint &p)=default
AtlasGeoPointoperator= (const AtlasGeoPoint &p)=default
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/3]

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/3]

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

◆ ~AtlasGeoPoint()

AtlasGeoPoint::~AtlasGeoPoint ( )
default

◆ AtlasGeoPoint() [3/3]

AtlasGeoPoint::AtlasGeoPoint ( const AtlasGeoPoint & p)
default

Member Function Documentation

◆ eta()

float AtlasGeoPoint::eta ( ) const
inline

Definition at line 74 of file AtlasGeoPoint.h.

75{
76 return m_eta;
77}

◆ isValid()

bool AtlasGeoPoint::isValid ( ) const
inline

Definition at line 64 of file AtlasGeoPoint.h.

65{
66 return m_eta >= ETA_MIN
67 && m_eta <= ETA_MAX
68 && m_phi >= PHI_MIN
69 && m_phi <= PHI_MAX;
70}
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)
default

◆ phi()

float AtlasGeoPoint::phi ( ) const
inline

Definition at line 81 of file AtlasGeoPoint.h.

82{
83 return m_phi;
84}

◆ setEta()

void AtlasGeoPoint::setEta ( const float eta)
inline

Definition at line 88 of file AtlasGeoPoint.h.

89{
90 m_eta = eta;
91}

◆ setPhi()

void AtlasGeoPoint::setPhi ( const float phi)
inline

Definition at line 95 of file AtlasGeoPoint.h.

96{
97 m_phi = phi;
98}

Member Data Documentation

◆ ETA_MAX

float AtlasGeoPoint::ETA_MAX = 5
staticconstexpr

Definition at line 38 of file AtlasGeoPoint.h.

◆ ETA_MIN

float AtlasGeoPoint::ETA_MIN = -5
staticconstexpr

Definition at line 37 of file AtlasGeoPoint.h.

◆ m_eta

float AtlasGeoPoint::m_eta
private

Definition at line 56 of file AtlasGeoPoint.h.

◆ m_phi

float AtlasGeoPoint::m_phi
private

Definition at line 58 of file AtlasGeoPoint.h.

◆ PHI_MAX

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

Definition at line 34 of file AtlasGeoPoint.h.

◆ PHI_MIN

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

Definition at line 33 of file AtlasGeoPoint.h.


The documentation for this class was generated from the following files: