ATLAS Offline Software
Loading...
Searching...
No Matches
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
15class CaloCell_ID;
16
23
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
Base class for cluster processing tools called from CaloClusterMaker.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
Outputs cluster moments (and other assorted properties) to text files.
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
Gaudi::Property< unsigned int > m_numWidth
The number of digits to reserve for the events.
virtual ~CaloMomentsDumper()=default
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.