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

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

Definition at line 57 of file HIEventShapeSummaryUtils.h.

57: layers(ll) {};
std::initializer_list< int > layers

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 };
int layer() const
calorimeter layer for which the quantities were calculated 0 - all calorimeter depth others numbers a...

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: