ATLAS Offline Software
Loading...
Searching...
No Matches
ContainerFlagFillerTool.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$
14
15
16#ifndef D3PDMAKERCORECOMPS_CONTAINERFLAGFILLERTOOL_H
17#define D3PDMAKERCORECOMPS_CONTAINERFLAGFILLERTOOL_H
18
19
23#include "GaudiKernel/ToolHandle.h"
24
25
26namespace D3PD {
27
28
41 : public BlockFillerToolImpl
42{
43public:
50 ContainerFlagFillerTool (const std::string& type,
51 const std::string& name,
52 const IInterface* parent);
53
54
56 virtual StatusCode initialize();
57
58
67 virtual StatusCode configureD3PD (IAddVariable* tree,
68 const std::type_info& ti);
69
70
76 virtual StatusCode book();
77
78
89 virtual StatusCode fillUntyped (const void* p,
90 bool again = false);
91
92
93private:
95 std::vector<std::string> m_flagNames;
96
98 ToolHandleArray<ICollectionGetterTool> m_getters;
99
102
104 std::vector<bool*> m_flags;
105
108};
109
110
111} // namespace D3PD
112
113
114#endif // not D3PDMAKERCORECOMPS_CONTAINERFLAGFILLERTOOL_H
Non-template parts of BlockFillerTool.
Abstract interface to get a collection of objects and iterate over it.
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.
virtual StatusCode initialize()
Function initializing the tool.
std::vector< std::string > m_flagNames
Property: The flag names.
bool m_allowMissing
Property: If true, missing containers will not be considered errors.
std::vector< bool * > m_flags
Variables: The flags created in the D3PD.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
virtual StatusCode book()
Declare tuple variables.
ToolHandleArray< ICollectionGetterTool > m_getters
Property: The container getters that are used to compute the flags.
IndexMap m_map
Map to manage index lookups.
ContainerFlagFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode fillUntyped(const void *p, bool again=false)
Fill one block.
Common interface for adding a variable to a tuple.
Block filler tool for noisy FEB information.
TChain * tree