ATLAS Offline Software
IndexAssociationFillerTool.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: IndexAssociationFillerTool.h 618070 2014-09-22 19:05:34Z ssnyder $
16 #ifndef D3PDMAKERCORECOMPS_INDEXASSOCIATIONTOOL_H
17 #define D3PDMAKERCORECOMPS_INDEXASSOCIATIONTOOL_H
18 
19 
27 #include "GaudiKernel/ToolHandle.h"
28 
29 
30 namespace D3PD {
31 
32 
33 class ICollectionGetterTool;
34 
35 
62  : public extends1<AthAlgTool, IBlockFillerTool>, public AddVariable
63 {
64 public:
71  IndexAssociationFillerTool (const std::string& type,
72  const std::string& name,
73  const IInterface* parent);
74 
75 
77  virtual StatusCode initialize() override;
78 
79 
89  const std::type_info& ti) override;
90 
91 
97  virtual StatusCode book() override;
98 
99 
126  virtual StatusCode fillUntyped (const void* p,
127  bool again = false) override;
128 
129 
130 private:
132  ToolHandle<ISingleAssociationTool> m_associator;
133 
136  std::string m_targetLabel;
137 
139  std::string m_prefix;
140 
142  std::string m_blockName;
143 
145  ToolHandle<ICollectionGetterRegistryTool> m_registry;
146 
150 
152  int* m_index;
153 
157 
160 };
161 
162 
163 } // namespace D3PD
164 
165 
166 #endif // not D3PDMAKERCORECOMPS_INDEXASSOCIATIONTOOL_H
167 
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
D3PD::IndexAssociationFillerTool::m_map
IndexMap m_map
Map from objects to indices.
Definition: IndexAssociationFillerTool.h:159
ICollectionGetterRegistryTool.h
Abstract interface to keep a registry of collection getter tools.
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::IndexAssociationFillerTool::m_registry
ToolHandle< ICollectionGetterRegistryTool > m_registry
Property: The ICollectionGetterRegistryTool instance.
Definition: IndexAssociationFillerTool.h:145
D3PD::AddVariable
Common implementation of IAddVariable.
Definition: AddVariable.h:38
tree
TChain * tree
Definition: tile_monitor.h:30
D3PD::IndexAssociationFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: IndexAssociationFillerTool.cxx:59
D3PD::IndexAssociationFillerTool::m_index
int * m_index
Index variable.
Definition: IndexAssociationFillerTool.h:152
TypeConverter.h
Helper to convert pointers.
D3PD::TypeConverter
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Definition: TypeConverter.h:45
ISingleAssociationTool.h
Abstract interface to form a single association.
D3PD::IndexAssociationFillerTool::fillUntyped
virtual StatusCode fillUntyped(const void *p, bool again=false) override
Fill one block.
Definition: IndexAssociationFillerTool.cxx:150
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::IndexAssociationFillerTool::m_blockName
std::string m_blockName
Property: the name of this block.
Definition: IndexAssociationFillerTool.h:142
D3PD::IndexAssociationFillerTool::m_converter
TypeConverter m_converter
Helper to convert from pointer returned by the associator to pointer into the index container.
Definition: IndexAssociationFillerTool.h:156
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::IndexAssociationFillerTool::m_associator
ToolHandle< ISingleAssociationTool > m_associator
Property: The association tool instance.
Definition: IndexAssociationFillerTool.h:132
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::IndexAssociationFillerTool::configureD3PD
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
Definition: IndexAssociationFillerTool.cxx:85
D3PD::IndexAssociationFillerTool
Represent a single association by index.
Definition: IndexAssociationFillerTool.h:63
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::IndexAssociationFillerTool::m_targetLabel
std::string m_targetLabel
Property: The label of the collection getter defining the collection within which to index.
Definition: IndexAssociationFillerTool.h:136
IndexMap.h
Cache pointer -> index mappings for a Getter used for index assocs.
D3PD::IndexAssociationFillerTool::book
virtual StatusCode book() override
Declare tuple variables.
Definition: IndexAssociationFillerTool.cxx:111
IBlockFillerTool.h
Abstract interface for tool to fill a block in the D3PD.
D3PD::IndexMap
Definition: IndexMap.h:44
AddVariable.h
Common implementation of IAddVariable.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::IndexAssociationFillerTool::m_allowMissing
bool m_allowMissing
Property: Don't give an error if the target getter fails to find the input objects.
Definition: IndexAssociationFillerTool.h:149
D3PD::IndexAssociationFillerTool::m_prefix
std::string m_prefix
Property: The variable name prefix.
Definition: IndexAssociationFillerTool.h:139
D3PD::IndexAssociationFillerTool::IndexAssociationFillerTool
IndexAssociationFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: IndexAssociationFillerTool.cxx:29