ATLAS Offline Software
Loading...
Searching...
No Matches
VoidObjFillerTool.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/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: VoidObjFillerTool.h 618070 2014-09-22 19:05:34Z ssnyder $
14
15
16#ifndef D3PDMAKERCORECOMPS_VOIDOBJFILLERTOOL_H
17#define D3PDMAKERCORECOMPS_VOIDOBJFILLERTOOL_H
18
19
25#include "GaudiKernel/ToolHandle.h"
26#include "GaudiKernel/IIncidentListener.h"
27
28
29namespace D3PD {
30
31// Forward declaration(s):
32class ID3PD;
33
46 : public extends<AthAlgTool, IObjFillerTool, IIncidentListener>,
47 public AddVariable
48{
49public:
56 VoidObjFillerTool (const std::string& type,
57 const std::string& name,
58 const IInterface* parent
59 );
60
61
63 virtual StatusCode initialize();
64
65
72 virtual StatusCode configureD3PD (IAddVariable* tree);
73
74
80 virtual StatusCode book();
81
82
91 virtual StatusCode fill();
92
93
100 virtual bool isContainerFiller() const;
101
102
106 virtual void handle( const Incident& inc );
107
108
109private:
111 ToolHandleArray<IBlockFillerTool> m_blockFillers;
112
114 std::string m_prefix;
115
117 std::string m_blockName;
118
120 std::string m_objectName;
121
124
127};
128
129
130} // namespace D3PD
131
132
133
134#endif // not D3PDMAKERCORECOMPS_VOIDOBJFILLERTOOL_H
Common implementation of IAddVariable.
Helpers for checking error return status codes and reporting errors.
Abstract interface for tool to fill a block in the D3PD.
Abstract interface for tool to fill an object in the D3PD.
AddVariable(const std::string &prefix, const std::string &blockName=s_emptyString)
Constructor.
Common interface for adding a variable to a tuple.
Define an abstract interface for building a D3PD tree.
Definition ID3PD.h:37
virtual StatusCode initialize()
Standard Gaudi initialize method.
bool m_saveMetadata
Property: If true, the metadata about the variables is saved.
std::string m_objectName
Property: the name of the D3PDObject that created this tool.
virtual StatusCode fill()
Fill one object.
ID3PD * m_tree
Pointer to the ID3PD object used.
virtual bool isContainerFiller() const
Find out if the filler handles containers or single objects.
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
virtual StatusCode configureD3PD(IAddVariable *tree)
Configure the tool.
virtual StatusCode book()
Declare tuple variables.
std::string m_blockName
Property: the name of this block.
ToolHandleArray< IBlockFillerTool > m_blockFillers
Property: The list of block filler tools.
std::string m_prefix
Property: Variable prefix for this block.
VoidObjFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
TChain * tree