|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef CALORECGPU_CALOGPUOUTPUT_H
8 #define CALORECGPU_CALOGPUOUTPUT_H
37 void * temporary_buffer)
const override;
48 Gaudi::Property<std::string>
m_savePath{
this,
"SavePath",
"./saved_clusters",
"Path to where the files should be saved"};
53 Gaudi::Property<std::string>
m_filePrefix{
this,
"FilePrefix",
"",
"Prefix of the saved files"};
58 Gaudi::Property<std::string>
m_fileSuffix{
this,
"FileSuffix",
"",
"Suffix of the saved files"};
63 Gaudi::Property<unsigned int>
m_numWidth{
this,
"NumberWidth", 9,
"The number of digits to reserve for the events"};
68 Gaudi::Property<bool>
m_sortedAndCutClusters {
this,
"UseSortedAndCutClusters",
true,
"Sort the clusters by transverse energy, apply a cut and ensure contiguous tags"};
73 Gaudi::Property<bool>
m_onlyCellInfo {
this,
"OnlyOutputCellInfo",
false,
"Only output cell info"};
88 #endif //CALORECGPU_CALOGPUOUTPUT_H
virtual StatusCode execute(const EventContext &ctx, const CaloRecGPU::ConstantDataHolder &constant_data, CaloRecGPU::EventDataHolder &event_data, void *temporary_buffer) const override
Process the clusters on GPU.
Standard tool to output the GPU data representation to the non-standard file format that we have been...
Base class for GPU-accelerated cluster processing tools to be called from CaloGPUHybridClusterProcess...
Gaudi::Property< bool > m_onlyCellInfo
If true, only output cell info (useful for reducing disk usage when running the full standalone versi...
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< unsigned int > m_numWidth
The number of digits to reserve for the events.
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
CaloGPUOutput(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
std::mutex m_mutex
This mutex is locked when saving the constant data on the first event to ensure thread safety.
virtual ~CaloGPUOutput()=default
std::atomic< bool > m_constantDataSaved
A flag to signal that the constant data has been adequately saved.
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Gaudi::Property< bool > m_sortedAndCutClusters
If true, sort the clusters by transverse energy and compactify the tags to ensure sequentiality.