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-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: ClusterDumper.h 581807 2014-02-06 08:40:10Z krasznaa $
8#ifndef XAODCREATORALGS_CLUSTERDUMPER_H
9#define XAODCREATORALGS_CLUSTERDUMPER_H
10
11// System include(s):
12#include <string>
13#include <fstream>
14#include <mutex>
15
16// Athena/Gaudi include(s):
18
21
23
24public:
26 ClusterDumper( const std::string& name, ISvcLocator* svcLoc );
27
29 virtual StatusCode initialize();
31 virtual StatusCode execute();
32
33 virtual StatusCode finalize();
34
35
36
37private:
39 SG::ReadHandleKey<xAOD::CaloClusterContainer> m_containerName{this,"ContainerName","CaloCalTopoClusters"};
40 std::string m_fileName;
41
42 std::ostream* m_out;
43 std::ofstream m_fileOut;
44
45 std::mutex m_fileMutex;
46
47}; // class ClusterDumper
48
49#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.
virtual StatusCode finalize()
virtual StatusCode initialize()
Function initialising the algorithm.
std::mutex m_fileMutex
std::ostream * m_out
virtual StatusCode execute()
Function executing the algorithm.
ClusterDumper(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
std::string m_fileName
Property holding a SG store/key/clid from which a ReadHandle is made.