ATLAS Offline Software
Loading...
Searching...
No Matches
VectorFillerTool.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: VectorFillerTool.h 618070 2014-09-22 19:05:34Z ssnyder $
14
15
16#ifndef D3PDMAKERCORECOMPS_VECTORFILLERTOOL_H
17#define D3PDMAKERCORECOMPS_VECTORFILLERTOOL_H
18
19
23#include "GaudiKernel/ToolHandle.h"
24#include "GaudiKernel/IIncidentListener.h"
25
26
27namespace D3PD {
28
29// Forward declaration(s):
30class ID3PD;
31
69 : public extends<VectorFillerToolBase, IObjFillerTool, IIncidentListener>
70{
71public:
78 VectorFillerTool (const std::string& type,
79 const std::string& name,
80 const IInterface* parent);
81
82
84 virtual StatusCode initialize();
85
86
93 virtual StatusCode configureD3PD (IAddVariable* tree);
94
95
101 virtual StatusCode book();
102
103
112 virtual StatusCode fill();
113
114
115 // addVariable() inherited from base.
116
117
124 virtual bool isContainerFiller() const;
125
126
130 virtual void handle( const Incident& inc );
131
132
133private:
135 ToolHandle<ICollectionGetterTool> m_getter;
136
138 std::string m_objectName;
139
142
145
148};
149
150
151} // namespace D3PD
152
153
154#endif // not D3PDMAKERCORECOMPS_VECTORFILLERTOOL_H
Abstract interface to get a collection of objects and iterate over it.
Abstract interface for tool to fill an object in the D3PD.
Common code for wrapping filled variables up into a vector.
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_allowMissing
Property: If true, the input object is allowed to be missing.
virtual StatusCode book()
Declare tuple variables.
VectorFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
virtual bool isContainerFiller() const
Find out if the filler handles containers or single objects.
ToolHandle< ICollectionGetterTool > m_getter
Property: The collection getter tool.
std::string m_objectName
Property: the name of the D3PDObject that created this tool.
ID3PD * m_tree
Pointer to the ID3PD object used.
virtual StatusCode fill()
Fill one object.
virtual StatusCode configureD3PD(IAddVariable *tree)
Configure the tool.
bool m_saveMetadata
Property: If true, the metadata about the variables is saved.
Block filler tool for noisy FEB information.
TChain * tree