ATLAS Offline Software
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 $
16 #ifndef D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
17 #define D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
18 
19 
24 #include "GaudiKernel/ToolHandle.h"
25 
26 
27 namespace D3PD {
28 
29 
53  : public extends<AthAlgTool, IBlockFillerTool>, public AddVariable
54 {
55 public:
62  ContainedAssociationFillerTool (const std::string& type,
63  const std::string& name,
64  const IInterface* parent);
65 
66 
68  virtual StatusCode initialize();
69 
70 
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 
125 private:
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 
146  bool* m_matched;
147 };
148 
149 
150 } // namespace D3PD
151 
152 
153 #endif // not D3PDMAKERCORECOMPS_CONTAINEDASSOCIATION_H
154 
D3PD::ContainedAssociationFillerTool::ContainedAssociationFillerTool
ContainedAssociationFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: ContainedAssociationFillerTool.cxx:28
D3PD::ContainedAssociationFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: ContainedAssociationFillerTool.cxx:93
D3PD::ContainedAssociationFillerTool::m_blockFillers
ToolHandleArray< IBlockFillerTool > m_blockFillers
Property: The list of block filler tools.
Definition: ContainedAssociationFillerTool.h:130
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
D3PD::ContainedAssociationFillerTool::configureD3PD
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
Definition: ContainedAssociationFillerTool.cxx:75
D3PD::ContainedAssociationFillerTool::fillUntyped
virtual StatusCode fillUntyped(const void *p, bool again=false)
Fill one block.
Definition: ContainedAssociationFillerTool.cxx:136
D3PD::AddVariable
Common implementation of IAddVariable.
Definition: AddVariable.h:38
tree
TChain * tree
Definition: tile_monitor.h:30
D3PD::ContainedAssociationFillerTool::m_prefix
std::string m_prefix
Property: The variable name prefix.
Definition: ContainedAssociationFillerTool.h:133
ISingleAssociationTool.h
Abstract interface to form a single association.
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::ContainedAssociationFillerTool
Represent a single association by containment.
Definition: ContainedAssociationFillerTool.h:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::ContainedAssociationFillerTool::m_associator
ToolHandle< ISingleAssociationTool > m_associator
Property: The association tool instance.
Definition: ContainedAssociationFillerTool.h:127
D3PD::ContainedAssociationFillerTool::m_blockName
std::string m_blockName
Property: the name of this block.
Definition: ContainedAssociationFillerTool.h:139
D3PD::ContainedAssociationFillerTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: ContainedAssociationFillerTool.cxx:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
D3PD::ContainedAssociationFillerTool::m_suffix
std::string m_suffix
Property: The variable name suffix.
Definition: ContainedAssociationFillerTool.h:136
IBlockFillerTool.h
Abstract interface for tool to fill a block in the D3PD.
AddVariable.h
Common implementation of IAddVariable.
D3PD::ContainedAssociationFillerTool::m_matched
bool * m_matched
Variable to flag that the association succeeded.
Definition: ContainedAssociationFillerTool.h:146
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::ContainedAssociationFillerTool::m_matchedName
std::string m_matchedName
Property: The variable name to use for the matched flag.
Definition: ContainedAssociationFillerTool.h:143