ATLAS Offline Software
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 
22 class ClusterDumper : public AthAlgorithm {
23 
24 public:
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 
37 private:
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 
46 
47 }; // class ClusterDumper
48 
49 #endif // XAODCREATORALGS_CLUSTERCREATOR_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ClusterDumper::m_containerName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_containerName
The key for the output xAOD::CaloClusterContainer.
Definition: ClusterDumper.h:39
ClusterDumper::m_fileName
std::string m_fileName
Definition: ClusterDumper.h:40
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
ClusterDumper
Definition: ClusterDumper.h:22
ClusterDumper::m_out
std::ostream * m_out
Definition: ClusterDumper.h:42
SG::ReadHandleKey< xAOD::CaloClusterContainer >
AthAlgorithm.h
ClusterDumper::finalize
virtual StatusCode finalize()
Definition: ClusterDumper.cxx:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ClusterDumper::m_fileOut
std::ofstream m_fileOut
Definition: ClusterDumper.h:43
AthAlgorithm
Definition: AthAlgorithm.h:47
ClusterDumper::m_fileMutex
std::mutex m_fileMutex
Definition: ClusterDumper.h:45
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ClusterDumper::execute
virtual StatusCode execute()
Function executing the algorithm.
Definition: ClusterDumper.cxx:55
CaloClusterContainer.h
ClusterDumper::ClusterDumper
ClusterDumper(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition: ClusterDumper.cxx:16
ClusterDumper::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: ClusterDumper.cxx:25