ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
HI::ByLayers Struct Reference

#include <HIEventShapeSummaryUtils.h>

Collaboration diagram for HI::ByLayers:

Public Member Functions

constexpr ByLayers (std::initializer_list< int > ll)
 
bool operator() (const xAOD::HIEventShape *in_slice)
 

Public Attributes

std::initializer_list< int > layers
 

Detailed Description

Definition at line 54 of file HIEventShapeSummaryUtils.h.

Constructor & Destructor Documentation

◆ ByLayers()

constexpr HI::ByLayers::ByLayers ( std::initializer_list< int >  ll)
inlineconstexpr

Definition at line 57 of file HIEventShapeSummaryUtils.h.

57 : layers(ll) {};

Member Function Documentation

◆ operator()()

bool HI::ByLayers::operator() ( const xAOD::HIEventShape in_slice)
inline

Definition at line 58 of file HIEventShapeSummaryUtils.h.

59  {
60  for(int i : layers)
61  {
62  if(i==in_slice->layer()) return true;
63  }
64  return false;
65  };

Member Data Documentation

◆ layers

std::initializer_list<int> HI::ByLayers::layers

Definition at line 56 of file HIEventShapeSummaryUtils.h.


The documentation for this struct was generated from the following file:
detail::ll
long long ll
Definition: PrimitiveHelpers.h:46
xAOD::HIEventShape_v2::layer
int layer() const
HI::ByLayers::layers
std::initializer_list< int > layers
Definition: HIEventShapeSummaryUtils.h:56
lumiFormat.i
int i
Definition: lumiFormat.py:85