ATLAS Offline Software
CaloMomentsDumper.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_CALOMOMENTSDUMPER_H
8 #define CALORECGPU_CALOMOMENTSDUMPER_H
9 
12 #include <string>
13 
14 
15 class CaloCell_ID;
16 
25  public AthAlgTool, virtual public CaloClusterCollectionProcessor
26 {
27  public:
28 
29  CaloMomentsDumper(const std::string & type, const std::string & name, const IInterface * parent);
30 
32 
33  virtual StatusCode initialize() override;
34 
35  virtual StatusCode execute (const EventContext& ctx, xAOD::CaloClusterContainer* cluster_collection) const override;
36 
37  virtual ~CaloMomentsDumper() = default;
38 
39  private:
40 
41 
46  Gaudi::Property<std::string> m_savePath{this, "SavePath", "./cluster_dump", "Path to where the files should be saved"};
47 
51  Gaudi::Property<std::string> m_filePrefix{this, "FilePrefix", "", "Prefix of the saved files"};
52 
56  Gaudi::Property<std::string> m_fileSuffix{this, "FileSuffix", "", "Suffix of the saved files"};
57 
61  Gaudi::Property<unsigned int> m_numWidth{this, "NumberWidth", 9, "The number of digits to reserve for the events"};
62 
63 };
64 
65 #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:61
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
Execute on an entire collection of clusters.
Definition: CaloMomentsDumper.cxx:27
CaloMomentsDumper::m_savePath
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
Definition: CaloMomentsDumper.h:46
CaloClusterCollectionProcessor
Definition: CaloClusterCollectionProcessor.h:32
CaloMomentsDumper::m_filePrefix
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
Definition: CaloMomentsDumper.h:51
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
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
CaloMomentsDumper::CaloMomentsDumper
CaloMomentsDumper(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloMomentsDumper.cxx:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
CaloMomentsDumper::initialize
virtual StatusCode initialize() override
Definition: CaloMomentsDumper.cxx:22
CaloMomentsDumper::m_fileSuffix
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Definition: CaloMomentsDumper.h:56
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
CaloMomentsDumper::~CaloMomentsDumper
virtual ~CaloMomentsDumper()=default