ATLAS Offline Software
Loading...
Searching...
No Matches
IndexFillerTool.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: IndexFillerTool.h 486128 2012-03-02 08:54:20Z krasznaa $
14
15
16#ifndef D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
17#define D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
18
19
22
23
24namespace D3PD {
25
26
31 : public BlockFillerToolImpl
32{
33public:
40 IndexFillerTool (const std::string& type,
41 const std::string& name,
42 const IInterface* parent);
43
44
46 virtual StatusCode initialize() override;
47
48
57 virtual StatusCode configureD3PD (IAddVariable* tree,
58 const std::type_info& ti) override;
59
60
66 virtual StatusCode book() override;
67
68
95 virtual StatusCode fillUntyped (const void* p,
96 bool again = false) override;
97
98
99private:
102 std::string m_targetLabel;
103
107 std::vector<std::string> m_targetLabels;
108
113
115 ToolHandle<ICollectionGetterRegistryTool> m_registry;
116
120
123
126
129};
130
131
132} // namespace D3PD
133
134
135#endif // not D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
Non-template parts of BlockFillerTool.
Cache pointer -> index mappings for a Getter used for index assocs.
BlockFillerToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Common interface for adding a variable to a tuple.
std::string m_containerIndexName
Variable name to use for the index of the container in which the object was found.
std::string m_targetLabel
Property: The label of the collection getter defining the collection within which to index.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
bool m_allowMissing
Property: Don't give an error if the target getter fails to find the input objects.
IndexMap m_map
Map from objects to indices.
int * m_index
Index variable.
ToolHandle< ICollectionGetterRegistryTool > m_registry
Property: The ICollectionGetterRegistryTool instance.
virtual StatusCode fillUntyped(const void *p, bool again=false) override
Fill one block.
std::vector< std::string > m_targetLabels
Property: The list of labels of collection getters defining the collections within which to index.
IndexFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
int * m_containerIndex
Container index variable.
virtual StatusCode book() override
Declare tuple variables.
Block filler tool for noisy FEB information.
TChain * tree