ATLAS Offline Software
BasicConstantGPUDataExporter.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2002-2023 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 
29  public AthAlgTool, virtual public 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 
52  Gaudi::Property<bool> m_keepCPUData {this, "KeepCPUData", true, "Keep CPU version of GPU data format"};
53 
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
BasicConstantGPUDataExporter::initialize
virtual StatusCode initialize() override
Definition: BasicConstantGPUDataExporter.cxx:33
BasicConstantGPUDataExporter::m_noiseCDOKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Key of the CaloNoise Conditions data object.
Definition: BasicConstantGPUDataExporter.h:57
BasicConstantGPUDataExporter
Standard tool to export calorimeter geometry and cell noise to GPU.
Definition: BasicConstantGPUDataExporter.h:30
BasicConstantGPUDataExporter::convert
virtual StatusCode convert(CaloRecGPU::ConstantDataHolder &constant_data, const bool override_keep_CPU_info) const override
Fill the @ConstantDataHolder with the relevant information.
Definition: BasicConstantGPUDataExporter.cxx:50
BasicConstantGPUDataExporter::BasicConstantGPUDataExporter
BasicConstantGPUDataExporter(const std::string &type, const std::string &name, const IInterface *parent)
Definition: BasicConstantGPUDataExporter.cxx:25
CaloGPUTimed
Base class to provide some basic common infrastructure for timing measurements...
Definition: CaloGPUTimed.h:25
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
BasicConstantGPUDataExporter::m_hasBeenInitialized
bool m_hasBeenInitialized
Definition: BasicConstantGPUDataExporter.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
BasicConstantGPUDataExporter::finalize
virtual StatusCode finalize() override
Definition: BasicConstantGPUDataExporter.cxx:419
test_pyathena.parent
parent
Definition: test_pyathena.py:15
BasicConstantGPUDataExporter::m_keepCPUData
Gaudi::Property< bool > m_keepCPUData
If true, do not delete the CPU version of the GPU-friendly data representation.
Definition: BasicConstantGPUDataExporter.h:52
BasicConstantGPUDataExporter::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Key for the CaloDetDescrManager in the Condition Store.
Definition: BasicConstantGPUDataExporter.h:62
CaloClusterGPUTransformers.h
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloNoise.h
SG::ReadCondHandleKey< CaloNoise >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloRecGPU::ConstantDataHolder
Definition: DataHolders.h:19
CaloGPUTimed.h
AthAlgTool
Definition: AthAlgTool.h:26
BasicConstantGPUDataExporter::~BasicConstantGPUDataExporter
virtual ~BasicConstantGPUDataExporter()=default
ICaloClusterGPUConstantTransformer
Base class for tools that convert constant information to the GPU-friendly format used in CaloGPUHybr...
Definition: CaloClusterGPUTransformers.h:27