ATLAS Offline Software
MakerAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef D3PDMAKERCORECOMPS_MAKERALG_H
14 #define D3PDMAKERCORECOMPS_MAKERALG_H
15 
16 
21 #include "GaudiKernel/ServiceHandle.h"
22 #include "GaudiKernel/ToolHandle.h"
24 #include <vector>
25 
26 
27 namespace D3PD {
28 
29 
44 class MakerAlg
45  : public FilteredAlgorithm
46 {
47 public:
53  MakerAlg (const std::string& name,
54  ISvcLocator* svcloc);
55 
56 
58  virtual StatusCode initialize();
59 
60 
62  virtual StatusCode finalize();
63 
64 
66  virtual StatusCode execute();
67 
68 
69 private:
72 
75 
76 
79 
81  ToolHandleArray<IObjFillerTool> m_tools;
82 
84  ToolHandleArray<IMetadataTool> m_metadataTools;
85 
87  bool m_audit;
88 
90  std::string m_tuplePath;
91 
94 
96  bool m_booked;
97 
100 };
101 
102 
103 } // namespace D3PD
104 
105 
106 #endif //not D3PDMAKERCORECOMPS_MAKERALG_H
D3PD::MakerAlg::fillToolWithoutAuditor
StatusCode fillToolWithoutAuditor(IObjFillerTool &tool)
Cakk fill on a tool without an auditor.
Definition: MakerAlg.cxx:166
D3PD::IObjFillerTool
Abstract interface for tool to fill an object in the D3PD.
Definition: IObjFillerTool.h:45
D3PD::MakerAlg::m_tools
ToolHandleArray< IObjFillerTool > m_tools
Property: List of object filler tools to run.
Definition: MakerAlg.h:81
D3PD::MakerAlg::execute
virtual StatusCode execute()
Standard Gaudi execute method.
Definition: MakerAlg.cxx:108
FilteredAlgorithm
algorithm that marks for write data objects in SG
Definition: FilteredAlgorithm.h:33
FilteredAlgorithm.h
IMetadataTool.h
Write metadata to a D3PD.
D3PD::MakerAlg::m_metadataTools
ToolHandleArray< IMetadataTool > m_metadataTools
Property: List of metadata tools to run.
Definition: MakerAlg.h:84
D3PD::ID3PD
Define an abstract interface for building a D3PD tree.
Definition: ID3PD.h:37
D3PD::MakerAlg::m_tuplePath
std::string m_tuplePath
Property: The tuple name.
Definition: MakerAlg.h:90
D3PD::MakerAlg::m_fillFunction
StatusCode(D3PD::MakerAlg::* m_fillFunction)(IObjFillerTool &)
Pointer to the fill function to be used.
Definition: MakerAlg.h:99
IObjFillerTool.h
Abstract interface for tool to fill an object in the D3PD.
D3PD::MakerAlg::fillToolWithAuditor
StatusCode fillToolWithAuditor(IObjFillerTool &tool)
Call fill() on a tool with an auditor.
Definition: MakerAlg.cxx:151
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::MakerAlg::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: MakerAlg.cxx:54
D3PD::MakerAlg::m_d3pd
ID3PD * m_d3pd
The created tuple. Note: we don't take ownership.
Definition: MakerAlg.h:93
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::MakerAlg::MakerAlg
MakerAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
Definition: MakerAlg.cxx:26
D3PD::MakerAlg::m_booked
bool m_booked
Flag that we've called book().
Definition: MakerAlg.h:96
D3PD::MakerAlg::m_d3pdSvc
ServiceHandle< ID3PDSvc > m_d3pdSvc
Property: The D3PD creation service.
Definition: MakerAlg.h:78
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
D3PD::MakerAlg::m_audit
bool m_audit
Property: Audit the tools with PerfMon or not?
Definition: MakerAlg.h:87
D3PD::MakerAlg::finalize
virtual StatusCode finalize()
Standard Gaudi finalize method.
Definition: MakerAlg.cxx:94
ID3PD.h
Abstract interface for a D3PD tree.
ID3PDSvc.h
Abstract interface for service to create D3PD trees.
D3PD::MakerAlg
Algorithm to create a D3PD tree.
Definition: MakerAlg.h:46
ServiceHandle
Definition: ClusterMakerTool.h:37