ATLAS Offline Software
Loading...
Searching...
No Matches
GPUClusterSorter.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3//
4// Dear emacs, this is -*- c++ -*-
5//
6
7
8#ifndef CALORECGPU_GPUCLUSTERSORTER_H
9#define CALORECGPU_GPUCLUSTERSORTER_H
10
12
18
20
21#include "GaudiKernel/ServiceHandle.h"
22
24
25#include "CLHEP/Units/SystemOfUnits.h"
26
33
34
36 public extends<AthAlgTool, CaloClusterGPUProcessor>, public CaloGPUTimed, public CaloGPUCUDAInitialization
37{
38 public:
39
40 GPUClusterSorter(const std::string & type, const std::string & name, const IInterface * parent);
41
42 virtual StatusCode initialize() override
43 {
45 }
46
47 virtual StatusCode initialize_non_CUDA() override;
48
49 virtual StatusCode initialize_CUDA() override;
50
51 virtual StatusCode execute (const EventContext & ctx,
52 const CaloRecGPU::ConstantDataHolder & constant_data,
53 CaloRecGPU::EventDataHolder & event_data,
54 void * temporary_buffer) const override;
55
56 virtual StatusCode finalize() override;
57
58 virtual ~GPUClusterSorter() = default;
59
60 private:
61
66 Gaudi::Property<bool> m_cutClustersInAbsE {this, "ClusterCutsInAbsEt", true, "Do cluster cuts in Abs Et instead of Et"};
67
74
75 Gaudi::Property<float> m_clusterETThreshold {this, "ClusterEtorAbsEtCut", 0.*CLHEP::MeV, "Cluster E_t or Abs E_t cut"};
76
78 ServiceHandle<IGPUKernelSizeOptimizerSvc> m_kernelSizeOptimizer { this, "KernelSizeOptimizer", "GPUKernelSizeOptimizerSvc", "CUDA kernel size optimization service." };
79
81 ToolHandle<AthCUDA::IStreamTool> m_streamTool {this, "StreamTool", "", "CUDA stream tool."};
82
83};
84
85#endif //CALORECGPU_GPUCLUSTERSORTER_H
Define macros for attributes used to control the static checker.
Base class to provide some basic common infrastructure for initializing CUDA only at the right place ...
CaloGPUTimed(T *ptr)
Holds CPU and GPU versions of the geometry and cell noise information, which are assumed to be consta...
Definition DataHolders.h:27
Holds the mutable per-event information (clusters and cells) and provides utilities to convert betwee...
Definition DataHolders.h:73
virtual StatusCode execute(const EventContext &ctx, const CaloRecGPU::ConstantDataHolder &constant_data, CaloRecGPU::EventDataHolder &event_data, void *temporary_buffer) const override
Gaudi::Property< float > m_clusterETThreshold
cut on the clusters.
Gaudi::Property< bool > m_cutClustersInAbsE
if set to true cluster cuts are on , if false on .
ToolHandle< AthCUDA::IStreamTool > m_streamTool
Tool providing the CUDA stream to use.
virtual StatusCode initialize_CUDA() override
Initialization that invokes CUDA functions.
ServiceHandle< IGPUKernelSizeOptimizerSvc > m_kernelSizeOptimizer
Handle to the CUDA kernel block and grid size optimization service.
virtual ~GPUClusterSorter()=default
GPUClusterSorter(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode finalize() override
virtual StatusCode initialize() override
virtual StatusCode initialize_non_CUDA() override
Initialization that does not invoke CUDA functions.