ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterDumper.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODCREATORALGS_CLUSTERDUMPER_H
8#define XAODCREATORALGS_CLUSTERDUMPER_H
9
10// System include(s):
11#include <string>
12#include <fstream>
13#include <mutex>
14
15// Athena/Gaudi include(s):
20
22
23public:
26
28 virtual StatusCode initialize();
30 virtual StatusCode execute();
31
32 virtual StatusCode finalize();
33
34
35
36private:
38 SG::ReadHandleKey<xAOD::CaloClusterContainer> m_containerName{this,"ContainerName","CaloCalTopoClusters"};
39 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EvtInfo", "EventInfo", "EventInfo name"};
40
41 Gaudi::Property<std::string> m_fileName{this,"FileName",{}};
42 Gaudi::Property<bool> m_printCellLinks{this,"PrintCellLinks",true};
43 Gaudi::Property<bool> m_reducedPrecision{this,"ReducedPrecision",false,
44 "If true, use less precision in the output, to reduce exposure to FP rounding issues when comparing with a reference."};
45
46 std::ostream* m_out=&std::cout;
47 std::ofstream m_fileOut;
48
49 std::mutex m_fileMutex;
50
51}; // class ClusterDumper
52
53#endif // XAODCREATORALGS_CLUSTERCREATOR_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::ofstream m_fileOut
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_containerName
The key for the output xAOD::CaloClusterContainer.
Gaudi::Property< bool > m_reducedPrecision
virtual StatusCode finalize()
virtual StatusCode initialize()
Function initialising the algorithm.
std::mutex m_fileMutex
Gaudi::Property< bool > m_printCellLinks
std::ostream * m_out
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< std::string > m_fileName
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Delegate algorithm constructor.
virtual StatusCode execute()
Function executing the algorithm.
Property holding a SG store/key/clid from which a ReadHandle is made.