ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
HLT::MET::PufitGridSet Struct Reference

Helper struct to contain a full set of grids. More...

#include <PufitGrid.h>

Collaboration diagram for HLT::MET::PufitGridSet:

Public Member Functions

 PufitGridSet (double maxEta, std::size_t nEta, std::size_t nPhi)
 
PufitGridSetoperator+= (const SignedKinematics &kin)
 Add kinematics. More...
 
PufitGridSetoperator-= (const SignedKinematics &kin)
 Subtract kinematics. More...
 
PufitGridoperator[] (GridDisplacement displacement)
 Select a grid. More...
 
const PufitGridoperator[] (GridDisplacement displacement) const
 

Public Attributes

std::array< PufitGrid, 4 > grids
 

Detailed Description

Helper struct to contain a full set of grids.

Definition at line 251 of file PufitGrid.h.

Constructor & Destructor Documentation

◆ PufitGridSet()

HLT::MET::PufitGridSet::PufitGridSet ( double  maxEta,
std::size_t  nEta,
std::size_t  nPhi 
)

Definition at line 215 of file PufitGrid.cxx.

216  : grids({PufitGrid(maxEta, nEta, nPhi, false, false),
217  PufitGrid(maxEta, nEta, nPhi, true, false),
218  PufitGrid(maxEta, nEta, nPhi, false, true),
219  PufitGrid(maxEta, nEta, nPhi, true, true)})
220  {
221  }

Member Function Documentation

◆ operator+=()

PufitGridSet & HLT::MET::PufitGridSet::operator+= ( const SignedKinematics kin)

Add kinematics.

Definition at line 223 of file PufitGrid.cxx.

224  {
225  for (PufitGrid &grid : grids)
226  grid += kin;
227  return *this;
228  }

◆ operator-=()

PufitGridSet & HLT::MET::PufitGridSet::operator-= ( const SignedKinematics kin)

Subtract kinematics.

Definition at line 229 of file PufitGrid.cxx.

230  {
231  for (PufitGrid &grid : grids)
232  grid -= kin;
233  return *this;
234  }

◆ operator[]() [1/2]

PufitGrid & HLT::MET::PufitGridSet::operator[] ( GridDisplacement  displacement)

Select a grid.

Definition at line 235 of file PufitGrid.cxx.

236  {
237  return grids[displacement];
238  }

◆ operator[]() [2/2]

const PufitGrid & HLT::MET::PufitGridSet::operator[] ( GridDisplacement  displacement) const

Definition at line 239 of file PufitGrid.cxx.

240  {
241  return grids[displacement];
242  }

Member Data Documentation

◆ grids

std::array<PufitGrid, 4> HLT::MET::PufitGridSet::grids

Definition at line 254 of file PufitGrid.h.


The documentation for this struct was generated from the following files:
TrigVSI::AlgConsts::nPhi
constexpr int nPhi
Default bin number of phi for vertex map.
Definition: Trigger/TrigTools/TrigVrtSecInclusive/TrigVrtSecInclusive/Constants.h:27
PUfitVar::maxEta
constexpr float maxEta
Definition: GepMETPufitAlg.cxx:13
HLT::MET::PufitGridSet::grids
std::array< PufitGrid, 4 > grids
Definition: PufitGrid.h:254
TrigVSI::AlgConsts::nEta
constexpr int nEta
Default bin number of eta for vertex map.
Definition: Trigger/TrigTools/TrigVrtSecInclusive/TrigVrtSecInclusive/Constants.h:26