ATLAS Offline Software
Loading...
Searching...
No Matches
HLT::MET::GridParameters Struct Reference

Parameters describing a grid. More...

#include <PeriodicGridBase.h>

Collaboration diagram for HLT::MET::GridParameters:

Public Member Functions

bool operator!= (const GridParameters &other) const
 Check inequality with other parameter sets.
bool operator== (const GridParameters &other) const
GridDisplacement displacement () const
 The.

Public Attributes

double maxEta {0.}
 The maximum |eta| value.
std::size_t nEtaTowers {0}
 The number of divisions along the eta axis.
std::size_t nPhiTowers {0}
 The number of divisions along the phi axis.
bool displaceEta {false}
 Whether the grid is displaced in eta.
bool displacePhi {false}
 Whether the grid is displaced in phi.

Detailed Description

Parameters describing a grid.

How the grid divides up the detector is described mainly by the extent in eta (phi is by definition 2*pi) and the number of divisions in eta and phi. However, the grids must also support being displaced slightly in eta and phi, so these members are also required.

Definition at line 42 of file PeriodicGridBase.h.

Member Function Documentation

◆ displacement()

GridDisplacement HLT::MET::GridParameters::displacement ( ) const

The.

See also
GridDisplacement enum

Definition at line 25 of file PeriodicGridBase.cxx.

26 {
27 return static_cast<GridDisplacement>(
30 }
GridDisplacement
Enum to describe the positioning of the grid.
@ PhiDisplaced
The grid is shifted by half a tower width in phi.
@ NoDisplacement
The grid is not shifted.
@ EtaDisplaced
The grid is shifted by half a tower width in eta.
bool displaceEta
Whether the grid is displaced in eta.
bool displacePhi
Whether the grid is displaced in phi.

◆ operator!=()

bool HLT::MET::GridParameters::operator!= ( const GridParameters & other) const

Check inequality with other parameter sets.

Definition at line 11 of file PeriodicGridBase.cxx.

12 {
13 return maxEta != other.maxEta ||
14 nEtaTowers != other.nEtaTowers ||
15 nPhiTowers != other.nPhiTowers ||
16 displaceEta != other.displaceEta ||
17 displacePhi != other.displacePhi;
18 }
std::size_t nPhiTowers
The number of divisions along the phi axis.
std::size_t nEtaTowers
The number of divisions along the eta axis.
double maxEta
The maximum |eta| value.

◆ operator==()

bool HLT::MET::GridParameters::operator== ( const GridParameters & other) const

Definition at line 20 of file PeriodicGridBase.cxx.

21 {
22 return !(*this != other);
23 }

Member Data Documentation

◆ displaceEta

bool HLT::MET::GridParameters::displaceEta {false}

Whether the grid is displaced in eta.

Definition at line 51 of file PeriodicGridBase.h.

51{false};

◆ displacePhi

bool HLT::MET::GridParameters::displacePhi {false}

Whether the grid is displaced in phi.

Definition at line 53 of file PeriodicGridBase.h.

53{false};

◆ maxEta

double HLT::MET::GridParameters::maxEta {0.}

The maximum |eta| value.

Definition at line 45 of file PeriodicGridBase.h.

45{0.};

◆ nEtaTowers

std::size_t HLT::MET::GridParameters::nEtaTowers {0}

The number of divisions along the eta axis.

Definition at line 47 of file PeriodicGridBase.h.

47{0};

◆ nPhiTowers

std::size_t HLT::MET::GridParameters::nPhiTowers {0}

The number of divisions along the phi axis.

Definition at line 49 of file PeriodicGridBase.h.

49{0};

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