ATLAS Offline Software
ToolHandleArray.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ASGTOOLS_TOOLHANDLEARRAY_H
6 #define ASGTOOLS_TOOLHANDLEARRAY_H
7 
8 // Local include(s):
9 #ifndef XAOD_STANDALONE
10 # include "GaudiKernel/ToolHandle.h"
11 #else // not XAOD_STANDALONE
12 
13 // System include(s):
14 #include <vector>
15 #include <initializer_list>
16 
17 // Local include(s):
18 #include "AsgTools/ToolHandle.h"
19 
31 template< class T >
32 class ToolHandleArray : public std::vector< ToolHandle< T > > {
33 
34 public:
36  ToolHandleArray();
38  ToolHandleArray( const std::initializer_list< ToolHandle< T > >& l );
40  ToolHandleArray( const std::initializer_list< std::string >& l );
42  template<typename Parent>
43  ToolHandleArray( Parent *parent, const std::string& name, const std::initializer_list< std::string >& l, const std::string& description = "" );
44 
46  StatusCode retrieve() const;
47 
48 }; // class ToolHandleArray
49 
50 // Include the implementation of the code:
52 
53 #endif // not XAOD_STANDALONE
54 #endif // ASGTOOLS_TOOLHANDLEARRAY_H
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ToolHandleArray.icc
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ToolHandle.h
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88