ATLAS Offline Software
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 $
16 #ifndef D3PDMAKERCORECOMPS_VECTORFILLERTOOL_H
17 #define D3PDMAKERCORECOMPS_VECTORFILLERTOOL_H
18 
19 
23 #include "GaudiKernel/ToolHandle.h"
24 #include "GaudiKernel/IIncidentListener.h"
25 
26 
27 namespace D3PD {
28 
29 // Forward declaration(s):
30 class ID3PD;
31 
69  : public extends<VectorFillerToolBase, IObjFillerTool, IIncidentListener>
70 {
71 public:
78  VectorFillerTool (const std::string& type,
79  const std::string& name,
80  const IInterface* parent);
81 
82 
84  virtual StatusCode initialize();
85 
86 
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 
133 private:
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
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
D3PD::VectorFillerTool::handle
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
Definition: VectorFillerTool.cxx:150
D3PD::ID3PD
Define an abstract interface for building a D3PD tree.
Definition: ID3PD.h:37
tree
TChain * tree
Definition: tile_monitor.h:30
ICollectionGetterTool.h
Abstract interface to get a collection of objects and iterate over it.
D3PD::VectorFillerTool::configureD3PD
virtual StatusCode configureD3PD(IAddVariable *tree)
Configure the tool.
Definition: VectorFillerTool.cxx:78
D3PD::VectorFillerTool::VectorFillerTool
VectorFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: VectorFillerTool.cxx:30
IObjFillerTool.h
Abstract interface for tool to fill an object in the D3PD.
D3PD::VectorFillerTool::fill
virtual StatusCode fill()
Fill one object.
Definition: VectorFillerTool.cxx:119
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::VectorFillerTool::isContainerFiller
virtual bool isContainerFiller() const
Find out if the filler handles containers or single objects.
Definition: VectorFillerTool.cxx:136
D3PD::VectorFillerTool::m_allowMissing
bool m_allowMissing
Property: If true, the input object is allowed to be missing.
Definition: VectorFillerTool.h:141
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
VectorFillerToolBase.h
Common code for wrapping filled variables up into a vector.
D3PD::VectorFillerTool::m_objectName
std::string m_objectName
Property: the name of the D3PDObject that created this tool.
Definition: VectorFillerTool.h:138
D3PD::VectorFillerTool::m_tree
ID3PD * m_tree
Pointer to the ID3PD object used.
Definition: VectorFillerTool.h:147
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::VectorFillerTool::m_saveMetadata
bool m_saveMetadata
Property: If true, the metadata about the variables is saved.
Definition: VectorFillerTool.h:144
D3PD::VectorFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: VectorFillerTool.cxx:94
D3PD::VectorFillerTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: VectorFillerTool.cxx:54
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70
D3PD::VectorFillerTool::m_getter
ToolHandle< ICollectionGetterTool > m_getter
Property: The collection getter tool.
Definition: VectorFillerTool.h:135