ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCaloEventCnv
src
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):
16
#include "
AthenaBaseComps/AthAlgorithm.h
"
17
#include "
xAODEventInfo/EventInfo.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
xAODCaloEvent/CaloClusterContainer.h
"
20
21
class
ClusterDumper
:
public
AthAlgorithm
{
22
23
public
:
25
using
AthAlgorithm::AthAlgorithm
;
26
28
virtual
StatusCode
initialize
();
30
virtual
StatusCode
execute
(
const
EventContext& ctx);
31
32
virtual
StatusCode
finalize
();
33
34
35
36
private
:
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
AthAlgorithm.h
CaloClusterContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ClusterDumper
Definition
ClusterDumper.h:21
ClusterDumper::m_fileOut
std::ofstream m_fileOut
Definition
ClusterDumper.h:47
ClusterDumper::m_containerName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_containerName
The key for the output xAOD::CaloClusterContainer.
Definition
ClusterDumper.h:38
ClusterDumper::execute
virtual StatusCode execute(const EventContext &ctx)
Function executing the algorithm.
Definition
ClusterDumper.cxx:46
ClusterDumper::m_reducedPrecision
Gaudi::Property< bool > m_reducedPrecision
Definition
ClusterDumper.h:43
ClusterDumper::finalize
virtual StatusCode finalize()
Definition
ClusterDumper.cxx:39
ClusterDumper::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition
ClusterDumper.cxx:14
ClusterDumper::m_fileMutex
std::mutex m_fileMutex
Definition
ClusterDumper.h:49
ClusterDumper::m_printCellLinks
Gaudi::Property< bool > m_printCellLinks
Definition
ClusterDumper.h:42
ClusterDumper::m_out
std::ostream * m_out
Definition
ClusterDumper.h:46
ClusterDumper::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
ClusterDumper.h:39
ClusterDumper::m_fileName
Gaudi::Property< std::string > m_fileName
Definition
ClusterDumper.h:41
ClusterDumper::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Delegate algorithm constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0