ATLAS Offline Software
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 $
16 #ifndef D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
17 #define D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
18 
19 
22 
23 
24 namespace D3PD {
25 
26 
31  : public BlockFillerToolImpl
32 {
33 public:
40  IndexFillerTool (const std::string& type,
41  const std::string& name,
42  const IInterface* parent);
43 
44 
46  virtual StatusCode initialize() override;
47 
48 
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 
99 private:
102  std::string m_targetLabel;
103 
107  std::vector<std::string> m_targetLabels;
108 
112  std::string m_containerIndexName;
113 
115  ToolHandle<ICollectionGetterRegistryTool> m_registry;
116 
120 
122  int* m_index;
123 
126 
129 };
130 
131 
132 } // namespace D3PD
133 
134 
135 #endif // not D3PDMAKERCORECOMPS_INDEXFILLERTOOL_H
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::IndexFillerTool::m_targetLabels
std::vector< std::string > m_targetLabels
Property: The list of labels of collection getters defining the collections within which to index.
Definition: IndexFillerTool.h:107
D3PD::IndexFillerTool::m_map
IndexMap m_map
Map from objects to indices.
Definition: IndexFillerTool.h:128
D3PD::IndexFillerTool::m_containerIndexName
std::string m_containerIndexName
Variable name to use for the index of the container in which the object was found.
Definition: IndexFillerTool.h:112
tree
TChain * tree
Definition: tile_monitor.h:30
D3PD::IndexFillerTool::book
virtual StatusCode book() override
Declare tuple variables.
Definition: IndexFillerTool.cxx:102
D3PD::IndexFillerTool::configureD3PD
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
Definition: IndexFillerTool.cxx:80
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::IndexFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: IndexFillerTool.cxx:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::IndexFillerTool::m_registry
ToolHandle< ICollectionGetterRegistryTool > m_registry
Property: The ICollectionGetterRegistryTool instance.
Definition: IndexFillerTool.h:115
IndexMap.h
Cache pointer -> index mappings for a Getter used for index assocs.
D3PD::IndexFillerTool::fillUntyped
virtual StatusCode fillUntyped(const void *p, bool again=false) override
Fill one block.
Definition: IndexFillerTool.cxx:162
D3PD::IndexFillerTool::IndexFillerTool
IndexFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: IndexFillerTool.cxx:30
D3PD::IndexMap
Definition: IndexMap.h:44
D3PD::IndexFillerTool::m_index
int * m_index
Index variable.
Definition: IndexFillerTool.h:122
D3PD::IndexFillerTool::m_targetLabel
std::string m_targetLabel
Property: The label of the collection getter defining the collection within which to index.
Definition: IndexFillerTool.h:102
D3PD::BlockFillerToolImpl
Non-template parts of BlockFillerTool.
Definition: BlockFillerToolImpl.h:44
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::IndexFillerTool::m_allowMissing
bool m_allowMissing
Property: Don't give an error if the target getter fails to find the input objects.
Definition: IndexFillerTool.h:119
D3PD::IndexFillerTool::m_containerIndex
int * m_containerIndex
Container index variable.
Definition: IndexFillerTool.h:125
BlockFillerToolImpl.h
Non-template parts of BlockFillerTool.
D3PD::IndexFillerTool
Fill an index of an object within a container.
Definition: IndexFillerTool.h:32