ATLAS Offline Software
SingleAssociationToolImpl.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$
16 #ifndef D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
17 #define D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
18 
19 
24 #include <vector>
25 
26 
27 namespace D3PD {
28 
29 
45  : public extends1<AthAlgTool, ISingleAssociationTool>,
46  public AddVariable
47 {
48 public:
55  SingleAssociationToolImpl (const std::string& type,
56  const std::string& name,
57  const IInterface* parent);
58 
59 
70  const std::type_info& ti);
71 
72 
79  virtual StatusCode book();
80 
81 
85  virtual const std::type_info& fromTypeinfo() const = 0;
86 
87 
88 protected:
94  const void* doConversion (const void* p);
95 
96 
111  const std::type_info& ti,
112  const std::vector<const std::type_info*>& tis,
113  size_t& which);
114 
115 
116 private:
118  std::string m_prefix;
119 
121  std::string m_blockName;
122 
125 };
126 
127 
128 } // namespace D3PD
129 
130 
131 #endif // not D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
D3PD::SingleAssociationToolImpl::m_inputConverter
TypeConverter m_inputConverter
Helper to convert source object pointers.
Definition: SingleAssociationToolImpl.h:124
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::SingleAssociationToolImpl::m_prefix
std::string m_prefix
Parameter: source object prefix.
Definition: SingleAssociationToolImpl.h:118
D3PD::AddVariable
Common implementation of IAddVariable.
Definition: AddVariable.h:38
D3PD::SingleAssociationToolImpl::m_blockName
std::string m_blockName
Property: the name of this block.
Definition: SingleAssociationToolImpl.h:121
D3PD::SingleAssociationToolImpl::SingleAssociationToolImpl
SingleAssociationToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: SingleAssociationToolImpl.cxx:28
tree
TChain * tree
Definition: tile_monitor.h:30
TypeConverter.h
Helper to convert pointers.
D3PD::SingleAssociationToolImpl::configureD3PD
virtual StatusCode configureD3PD(D3PD::IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
Definition: SingleAssociationToolImpl.cxx:51
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
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
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
python.Utils.unixtools.which
def which(filename, env=os.environ)
UNIX-style which ---------------------------------------------------------—.
Definition: unixtools.py:39
D3PD::SingleAssociationToolImpl::doConversion
const void * doConversion(const void *p)
Helper to convert pointers to source objects.
Definition: SingleAssociationToolImpl.cxx:103
D3PD::SingleAssociationToolImpl::fromTypeinfo
virtual const std::type_info & fromTypeinfo() const =0
Return the std::type_info for the source of the association.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::SingleAssociationToolImpl
Non-template parts of SingleAssociationTool.
Definition: SingleAssociationToolImpl.h:47
AddVariable.h
Common implementation of IAddVariable.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::SingleAssociationToolImpl::book
virtual StatusCode book()
Create any needed tuple variables.
Definition: SingleAssociationToolImpl.cxx:92
D3PD::SingleAssociationToolImpl::configureMulti
StatusCode configureMulti(D3PD::IAddVariable *tree, const std::type_info &ti, const std::vector< const std::type_info * > &tis, size_t &which)
Configure during initialization: type-check.
Definition: SingleAssociationToolImpl.cxx:74