ATLAS Offline Software
CaloCellsCounterGPU.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 //
4 // Dear emacs, this is -*- c++ -*-
5 //
6 
7 #ifndef CALORECGPU_CALOCELLSCOUNTERGPU_H
8 #define CALORECGPU_CALOCELLSCOUNTERGPU_H
9 
12 #include <string>
13 #include <atomic>
14 
23  public AthAlgTool, virtual public CaloClusterGPUProcessor
24 {
25  public:
26 
27  CaloCellsCounterGPU(const std::string & type, const std::string & name, const IInterface * parent);
28 
29  virtual StatusCode execute (const EventContext & ctx,
30  const CaloRecGPU::ConstantDataHolder & constant_data,
31  CaloRecGPU::EventDataHolder & event_data,
32  void * temporary_buffer) const override;
33 
34  virtual ~CaloCellsCounterGPU() = default;
35 
36  private:
37 
38 
43  Gaudi::Property<std::string> m_savePath{this, "SavePath", "./cell_counts", "Path to where the files should be saved"};
44 
48  Gaudi::Property<std::string> m_filePrefix{this, "FilePrefix", "", "Prefix of the saved files"};
49 
53  Gaudi::Property<std::string> m_fileSuffix{this, "FileSuffix", "", "Suffix of the saved files"};
54 
58  Gaudi::Property<unsigned int> m_numWidth{this, "NumberWidth", 9, "The number of digits to reserve for the events"};
59 
63  Gaudi::Property<float> m_seedThreshold {this, "SeedThresholdOnEorAbsEinSigma", 4., "Seed threshold (in units of noise Sigma)"};
64 
68  Gaudi::Property<float> m_growThreshold {this, "NeighborThresholdOnEorAbsEinSigma", 2., "Neighbor (grow) threshold (in units of noise Sigma)"};
69 
73  Gaudi::Property<float> m_cellThreshold {this, "CellThresholdOnEorAbsEinSigma", 0., "Cell (terminal) threshold (in units of noise Sigma)"};
74 
75 
76 };
77 
78 #endif //CALORECGPU_CALOCELLSCOUNTERGPU_H
CaloCellsCounterGPU::m_cellThreshold
Gaudi::Property< float > m_cellThreshold
Value to consider for the seed threshold.
Definition: CaloCellsCounterGPU.h:73
CaloCellsCounterGPU::execute
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.
Definition: CaloCellsCounterGPU.cxx:54
CaloCellsCounterGPU
Outputs counts of cells, both by type and cluster presence, with each cluster being identified by its...
Definition: CaloCellsCounterGPU.h:24
CaloCellsCounterGPU::CaloCellsCounterGPU
CaloCellsCounterGPU(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloCellsCounterGPU.cxx:18
CaloClusterGPUProcessor
Base class for GPU-accelerated cluster processing tools to be called from CaloGPUHybridClusterProcess...
Definition: CaloClusterGPUProcessor.h:27
CaloCellsCounterGPU::m_numWidth
Gaudi::Property< unsigned int > m_numWidth
The number of digits to reserve for the events.
Definition: CaloCellsCounterGPU.h:58
CaloCellsCounterGPU::m_growThreshold
Gaudi::Property< float > m_growThreshold
Value to consider for the seed threshold.
Definition: CaloCellsCounterGPU.h:68
CaloRecGPU::EventDataHolder
Definition: DataHolders.h:35
CaloClusterGPUProcessor.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCellsCounterGPU::m_seedThreshold
Gaudi::Property< float > m_seedThreshold
Value to consider for the seed threshold.
Definition: CaloCellsCounterGPU.h:63
CaloCellsCounterGPU::~CaloCellsCounterGPU
virtual ~CaloCellsCounterGPU()=default
CaloCellsCounterGPU::m_filePrefix
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
Definition: CaloCellsCounterGPU.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCellsCounterGPU::m_fileSuffix
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Definition: CaloCellsCounterGPU.h:53
CaloRecGPU::ConstantDataHolder
Definition: DataHolders.h:19
CaloCellsCounterGPU::m_savePath
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
Definition: CaloCellsCounterGPU.h:43
AthAlgTool
Definition: AthAlgTool.h:26