ATLAS Offline Software
BookkeeperDumperTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_BOOKKEEPER_TOOLS__BOOKKEEPER_DUMPER_TOOL_H
6 #define EVENT_BOOKKEEPER_TOOLS__BOOKKEEPER_DUMPER_TOOL_H
7 
21 #ifndef XAOD_STANDALONE
23 #endif
24 
26 #ifndef XAOD_STANDALONE
27  , public virtual IMetaDataTool
28 #endif
29 {
30 #ifndef XAOD_STANDALONE
33 #endif
34 
35 public:
36  BookkeeperDumperTool(const std::string &name = "BookkeeperDumperTool");
37 
38  virtual StatusCode initialize() final;
39 
40  virtual StatusCode beginInputFile() final;
41  virtual StatusCode endInputFile() final { return StatusCode::SUCCESS; }
42  virtual StatusCode metaDataStop() final { return StatusCode::SUCCESS; }
43 
44 #ifndef XAOD_STANDALONE
45  virtual StatusCode beginInputFile(const SG::SourceID &) final { return StatusCode::SUCCESS; }
46  virtual StatusCode endInputFile(const SG::SourceID &) final { return StatusCode::SUCCESS; }
47 #endif
48 
49  Gaudi::Property<bool> m_allVariations{this, "AllVariations", false, "Dump all variations"};
50  Gaudi::Property<bool> m_standaloneMode{this, "StandaloneMode", false, "Dump on initialize when running standalone"};
51 };
52 
53 #endif
BookkeeperDumperTool::beginInputFile
virtual StatusCode beginInputFile(const SG::SourceID &) final
Function called when a new input file is opened.
Definition: BookkeeperDumperTool.h:45
PropertyWrapper.h
IMetaDataTool.h
This file contains the class definition for the IMetaDataTool class.
BookkeeperDumperTool::initialize
virtual StatusCode initialize() final
Dummy implementation of the initialisation function.
Definition: BookkeeperDumperTool.cxx:24
BookkeeperDumperTool::BookkeeperDumperTool
BookkeeperDumperTool(const std::string &name="BookkeeperDumperTool")
Declare the correct constructor for Athena.
Definition: BookkeeperDumperTool.cxx:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
BookkeeperDumperTool
Definition: BookkeeperDumperTool.h:29
BookkeeperDumperTool::m_standaloneMode
Gaudi::Property< bool > m_standaloneMode
Definition: BookkeeperDumperTool.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
SG::SourceID
std::string SourceID
Definition: AthenaKernel/AthenaKernel/SourceID.h:25
BookkeeperDumperTool::beginInputFile
virtual StatusCode beginInputFile() final
Function called when a new input file is opened.
Definition: BookkeeperDumperTool.cxx:34
AsgMetadataTool.h
IMetaDataTool
This class provides the interface for MetaDataTools.
Definition: IMetaDataTool.h:21
BookkeeperDumperTool::m_allVariations
Gaudi::Property< bool > m_allVariations
Definition: BookkeeperDumperTool.h:49
BookkeeperDumperTool::endInputFile
virtual StatusCode endInputFile(const SG::SourceID &) final
Function called when the currently open input file got completely processed.
Definition: BookkeeperDumperTool.h:46
BookkeeperDumperTool::metaDataStop
virtual StatusCode metaDataStop() final
Function called when the tool should prepare to write its metadata.
Definition: BookkeeperDumperTool.h:42
BookkeeperDumperTool::endInputFile
virtual StatusCode endInputFile() final
Function called when the currently open input file got completely processed.
Definition: BookkeeperDumperTool.h:41