ATLAS Offline Software
Loading...
Searching...
No Matches
BasicConstantGPUDataExporter.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#ifndef CALORECGPU_BASICCONSTANTGPUDATAEXPORTER_H
8#define CALORECGPU_BASICCONSTANTGPUDATAEXPORTER_H
9
16
17
27
29 public extends<AthAlgTool, ICaloClusterGPUConstantTransformer>, public CaloGPUTimed
30{
31 public:
32
33 BasicConstantGPUDataExporter(const std::string & type, const std::string & name, const IInterface * parent);
34
35 virtual StatusCode initialize() override;
36
37 virtual StatusCode convert (CaloRecGPU::ConstantDataHolder & constant_data, const bool override_keep_CPU_info) const override;
38
39 virtual StatusCode convert (const EventContext & ctx, CaloRecGPU::ConstantDataHolder & constant_data, const bool override_keep_CPU_info) const override;
40
41 virtual StatusCode finalize() override;
42
43 virtual ~BasicConstantGPUDataExporter() = default;
44
45 private:
46
51
52 Gaudi::Property<bool> m_keepCPUData {this, "KeepCPUData", true, "Keep CPU version of GPU data format"};
53
56
57 SG::ReadCondHandleKey<CaloNoise> m_noiseCDOKey{this, "CaloNoiseKey", "totalNoise", "SG Key of CaloNoise data object"};
58
62 SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this, "CaloDetDescrManager", "CaloDetDescrManager",
63 "SG Key for CaloDetDescrManager in the Condition Store"};
64
65
67
68};
69
70#endif //CALORECGPU_BASICCONSTANTGPUDATAEXPORTER_H
Definition of CaloDetDescrManager.
virtual StatusCode initialize() override
virtual StatusCode convert(CaloRecGPU::ConstantDataHolder &constant_data, const bool override_keep_CPU_info) const override
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Key for the CaloDetDescrManager in the Condition Store.
virtual ~BasicConstantGPUDataExporter()=default
BasicConstantGPUDataExporter(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< bool > m_keepCPUData
If true, do not delete the CPU version of the GPU-friendly data representation.
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Key of the CaloNoise Conditions data object.
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