15#include "GaudiKernel/Guards.h"
38 "The D3PD creation service.");
40 "List of IObjFillerTool instances to run.");
42 "List of IMetadataTool instances to run.");
44 "The name of the tuple. The interpretation of this "
45 "depends on the D3PDSvc.");
47 "Audit the tools using PerfMon?");
67 const std::string iniStr{
"ini"};
68 for (
size_t i = 0; i <
m_tools.size(); i++) {
69 Gaudi::Guards::AuditorGuard auditor(
m_tools[ i ]->name() +
70 ":cfg", auditorSvc(), iniStr );
74 for (
size_t i = 0; i <
m_tools.size(); i++) {
88 return StatusCode::SUCCESS;
101 CHECK( FilteredAlgorithm::finalize() );
102 return StatusCode::SUCCESS;
116 const std::string evtStr{
"evt"};
117 for (
size_t i = 0; i <
m_tools.size(); i++) {
118 Gaudi::Guards::AuditorGuard auditor(
m_tools[ i ]->name() +
119 ":book", auditorSvc(), evtStr );
123 for (
size_t i = 0; i <
m_tools.size(); i++) {
136 for (
size_t i = 0; i <
m_tools.size(); i++) {
142 return StatusCode::SUCCESS;
155 Gaudi::Guards::AuditorGuard auditor( tool.name() +
156 ":fill", auditorSvc(),
"evt" );
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Abstract interface for a D3PD tree.
Algorithm to create a D3PD tree.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ID3PD * m_d3pd
The created tuple. Note: we don't take ownership.
virtual StatusCode execute(const EventContext &ctx)
Standard Gaudi execute method.
StatusCode(D3PD::MakerAlg::* m_fillFunction)(IObjFillerTool &)
Pointer to the fill function to be used.
StatusCode fillToolWithoutAuditor(IObjFillerTool &tool)
Cakk fill on a tool without an auditor.
virtual StatusCode initialize()
Standard Gaudi initialize method.
StatusCode fillToolWithAuditor(IObjFillerTool &tool)
Call fill() on a tool with an auditor.
ServiceHandle< ID3PDSvc > m_d3pdSvc
Property: The D3PD creation service.
bool m_audit
Property: Audit the tools with PerfMon or not?
MakerAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
virtual StatusCode finalize()
Standard Gaudi finalize method.
bool m_booked
Flag that we've called book().
ToolHandleArray< IObjFillerTool > m_tools
Property: List of object filler tools to run.
std::string m_tuplePath
Property: The tuple name.
ToolHandleArray< IMetadataTool > m_metadataTools
Property: List of metadata tools to run.
Base class for stream algorithms using DecisionSvc.
bool isEventAccepted(const EventContext &ctx) const
Test whether this event should be output.
virtual StatusCode initialize() override
Block filler tool for noisy FEB information.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
virtual StatusCode book()
Declare tuple variables.