ATLAS Offline Software
CaloMomentsDumper.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_CALOMOMENTSDUMPER_H
8 #define CALORECGPU_CALOMOMENTSDUMPER_H
9 
12 #include <string>
13 
14 
15 class CaloCell_ID;
16 
25  public extends<AthAlgTool, CaloClusterCollectionProcessor>
26 {
27  public:
28 
29  using base_class::base_class;
30 
32 
33  virtual StatusCode execute (const EventContext& ctx, xAOD::CaloClusterContainer* cluster_collection) const override;
34 
35  virtual ~CaloMomentsDumper() = default;
36 
37  private:
38 
39 
44  Gaudi::Property<std::string> m_savePath{this, "SavePath", "./cluster_dump", "Path to where the files should be saved"};
45 
49  Gaudi::Property<std::string> m_filePrefix{this, "FilePrefix", "", "Prefix of the saved files"};
50 
54  Gaudi::Property<std::string> m_fileSuffix{this, "FileSuffix", "", "Suffix of the saved files"};
55 
59  Gaudi::Property<unsigned int> m_numWidth{this, "NumberWidth", 9, "The number of digits to reserve for the events"};
60 
61 };
62 
63 #endif //CALORECGPU_CALOMOMENTSDUMPER_H
CaloMomentsDumper::m_numWidth
Gaudi::Property< unsigned int > m_numWidth
The number of digits to reserve for the events.
Definition: CaloMomentsDumper.h:59
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
CaloMomentsDumper
Outputs cluster moments (and other assorted properties) to text files.
Definition: CaloMomentsDumper.h:26
CaloMomentsDumper::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
Definition: CaloMomentsDumper.cxx:16
CaloMomentsDumper::m_savePath
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
Definition: CaloMomentsDumper.h:44
CaloMomentsDumper::m_filePrefix
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
Definition: CaloMomentsDumper.h:49
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
CaloMomentsDumper::m_fileSuffix
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Definition: CaloMomentsDumper.h:54
CaloMomentsDumper::~CaloMomentsDumper
virtual ~CaloMomentsDumper()=default