ATLAS Offline Software
Namespaces | Macros
CaloGPUClusterAndCellDataMonitor.cxx File Reference
#include "CaloGPUClusterAndCellDataMonitor.h"
#include "CaloRecGPU/Helpers.h"
#include "CaloRecGPU/CUDAFriendlyClasses.h"
#include "StoreGate/DataHandle.h"
#include "CaloUtils/CaloClusterCollectionProcessor.h"
#include "CaloRecGPU/CaloClusterGPUProcessor.h"
#include "AthenaMonitoringKernel/Monitored.h"
#include "CLHEP/Units/SystemOfUnits.h"
#include <map>
#include <numeric>
#include <algorithm>

Go to the source code of this file.

Namespaces

 ClusterProperties
 
 ExtraClusterComparisons
 
 CellProperties
 
 CellTypes
 

Macros

#define CALORECGPU_BASIC_CLUSTER_PROPERTY(NAME, ...)
 
#define CALORECGPU_CLUSTER_MOMENT(...)   CALORECGPU_CLUSTER_MOMENT_INNER(__VA_ARGS__, 1, 1)
 
#define CALORECGPU_CLUSTER_MOMENT_INNER(NAME, PROPERTY, UNIT, ...)   CALORECGPU_BASIC_CLUSTER_PROPERTY(moments_ ## NAME, return cluster_moments . PROPERTY [cluster_index] / UNIT;)
 
#define CALORECGPU_COMPARED_CLUSTER_PROPERTY(NAME, ...)
 
#define CALORECGPU_BASIC_CELL_PROPERTY(NAME, ...)
 
#define CALORECGPU_BASIC_CELL_TYPE(NAME, ...)
 

Macro Definition Documentation

◆ CALORECGPU_BASIC_CELL_PROPERTY

#define CALORECGPU_BASIC_CELL_PROPERTY (   NAME,
  ... 
)
Value:
struct cells_ ## NAME \
{ \
static std::string name() \
{ \
return # NAME; \
} \
static double get_property([[maybe_unused]] const ConstantDataHolder & constant_data, \
[[maybe_unused]] const CaloRecGPU::CellInfoArr & cell_info, \
[[maybe_unused]] const CaloRecGPU::CellStateArr & cell_state, \
[[maybe_unused]] const CaloRecGPU::ClusterInfoArr & cluster_info, \
[[maybe_unused]] const CaloRecGPU::ClusterMomentsArr & cluster_moments, \
[[maybe_unused]] const int cell ) \
{ \
__VA_ARGS__ \
} \
};

Definition at line 1351 of file CaloGPUClusterAndCellDataMonitor.cxx.

◆ CALORECGPU_BASIC_CELL_TYPE

#define CALORECGPU_BASIC_CELL_TYPE (   NAME,
  ... 
)
Value:
struct cell_type_ ## NAME \
{ \
static std::string name() \
{ \
return # NAME; \
} \
static bool is_type([[maybe_unused]] const ConstantDataHolder & constant_data, \
[[maybe_unused]] const CaloRecGPU::CellInfoArr & cell_info, \
[[maybe_unused]] const CaloRecGPU::CellStateArr & cell_state, \
[[maybe_unused]] const CaloRecGPU::ClusterInfoArr & cluster_info, \
[[maybe_unused]] const CaloRecGPU::ClusterMomentsArr & cluster_moments, \
[[maybe_unused]] const int cell ) \
{ \
__VA_ARGS__ \
} \
};

Definition at line 1462 of file CaloGPUClusterAndCellDataMonitor.cxx.

◆ CALORECGPU_BASIC_CLUSTER_PROPERTY

#define CALORECGPU_BASIC_CLUSTER_PROPERTY (   NAME,
  ... 
)
Value:
struct clusters_ ## NAME \
{ \
static std::string name() \
{ \
return # NAME; \
} \
static double get_property([[maybe_unused]] const ConstantDataHolder & constant_data, \
[[maybe_unused]] const CaloRecGPU::CellInfoArr & cell_info, \
[[maybe_unused]] const CaloRecGPU::CellStateArr & cell_state, \
[[maybe_unused]] const CaloRecGPU::ClusterInfoArr & cluster_info, \
[[maybe_unused]] const CaloRecGPU::ClusterMomentsArr & cluster_moments, \
[[maybe_unused]] const int cluster_index ) \
{ \
__VA_ARGS__ \
} \
};

Definition at line 1105 of file CaloGPUClusterAndCellDataMonitor.cxx.

◆ CALORECGPU_CLUSTER_MOMENT

#define CALORECGPU_CLUSTER_MOMENT (   ...)    CALORECGPU_CLUSTER_MOMENT_INNER(__VA_ARGS__, 1, 1)

Definition at line 1135 of file CaloGPUClusterAndCellDataMonitor.cxx.

◆ CALORECGPU_CLUSTER_MOMENT_INNER

#define CALORECGPU_CLUSTER_MOMENT_INNER (   NAME,
  PROPERTY,
  UNIT,
  ... 
)    CALORECGPU_BASIC_CLUSTER_PROPERTY(moments_ ## NAME, return cluster_moments . PROPERTY [cluster_index] / UNIT;)

Definition at line 1136 of file CaloGPUClusterAndCellDataMonitor.cxx.

◆ CALORECGPU_COMPARED_CLUSTER_PROPERTY

#define CALORECGPU_COMPARED_CLUSTER_PROPERTY (   NAME,
  ... 
)
Value:
struct clusters_ ## NAME \
{ \
static std::string name() \
{ \
return # NAME; \
} \
static double get_property([[maybe_unused]] const ConstantDataHolder & constant_data, \
[[maybe_unused]] const CaloRecGPU::CellInfoArr & cell_info_1, \
[[maybe_unused]] const CaloRecGPU::CellStateArr & cell_state_1, \
[[maybe_unused]] const CaloRecGPU::ClusterInfoArr & cluster_info_1, \
[[maybe_unused]] const CaloRecGPU::ClusterMomentsArr & cluster_moments_1, \
[[maybe_unused]] const int cluster_index_1, \
[[maybe_unused]] const CaloRecGPU::CellInfoArr & cell_info_2, \
[[maybe_unused]] const CaloRecGPU::CellStateArr & cell_state_2, \
[[maybe_unused]] const CaloRecGPU::ClusterInfoArr & cluster_info_2, \
[[maybe_unused]] const CaloRecGPU::ClusterMomentsArr & cluster_moments_2, \
[[maybe_unused]] const int cluster_index_2) \
{ \
__VA_ARGS__ \
} \
};

Definition at line 1301 of file CaloGPUClusterAndCellDataMonitor.cxx.

ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
CaloRecGPU::CellStateArr
Definition: EventInfoDefinitions.h:323
CaloRecGPU::ClusterInfoArr
Definition: EventInfoDefinitions.h:328
CaloRecGPU::CellInfoArr
Definition: EventInfoDefinitions.h:188
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloRecGPU::ClusterMomentsArr
Definition: EventInfoDefinitions.h:342
CaloRecGPU::ConstantDataHolder
Definition: DataHolders.h:19