ATLAS Offline Software
Loading...
Searching...
No Matches
ContainedAssociationFillerTool.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: ContainedAssociationFillerTool.h 618070 2014-09-22 19:05:34Z ssnyder $
14
15
16#ifndef D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
17#define D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
18
19
24#include "GaudiKernel/ToolHandle.h"
25
26
27namespace D3PD {
28
29
53 : public extends<AthAlgTool, IBlockFillerTool>, public AddVariable
54{
55public:
62 ContainedAssociationFillerTool (const std::string& type,
63 const std::string& name,
64 const IInterface* parent);
65
66
68 virtual StatusCode initialize();
69
70
79 virtual StatusCode configureD3PD (IAddVariable* tree,
80 const std::type_info& ti);
81
82
88 virtual StatusCode book();
89
90
120 virtual StatusCode fillUntyped (const void* p,
121 bool again = false);
122
123
124
125private:
127 ToolHandle<ISingleAssociationTool> m_associator;
128
130 ToolHandleArray<IBlockFillerTool> m_blockFillers;
131
133 std::string m_prefix;
134
136 std::string m_suffix;
137
139 std::string m_blockName;
140
143 std::string m_matchedName;
144
147};
148
149
150} // namespace D3PD
151
152
153#endif // not D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
154
Common implementation of IAddVariable.
Abstract interface for tool to fill a block in the D3PD.
Abstract interface to form a single association.
AddVariable(const std::string &prefix, const std::string &blockName=s_emptyString)
Constructor.
std::string m_blockName
Property: the name of this block.
bool * m_matched
Variable to flag that the association succeeded.
std::string m_suffix
Property: The variable name suffix.
virtual StatusCode book()
Declare tuple variables.
std::string m_matchedName
Property: The variable name to use for the matched flag.
virtual StatusCode fillUntyped(const void *p, bool again=false)
Fill one block.
ToolHandle< ISingleAssociationTool > m_associator
Property: The association tool instance.
std::string m_prefix
Property: The variable name prefix.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
virtual StatusCode initialize()
Standard Gaudi initialize method.
ToolHandleArray< IBlockFillerTool > m_blockFillers
Property: The list of block filler tools.
ContainedAssociationFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Common interface for adding a variable to a tuple.
Block filler tool for noisy FEB information.
TChain * tree