The Gaudi Framework  v36r13 (995e4364)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TemplatedAlg.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 // Include files
12 #include "GaudiKernel/DataObject.h"
15 #include "GaudiKernel/MsgStream.h"
16 
17 #include "TemplatedAlg.h"
18 #include <vector>
19 
20 // Static Factory declaration
23 
25 DECLARE_COMPONENT_WITH_ID( t1, "TAlgIS" )
27 DECLARE_COMPONENT_WITH_ID( t2, "TAlgDB" )
28 
29 //------------------------------------------------------------------------------
30 template <typename T, typename R>
31 StatusCode TemplatedAlg<T, R>::initialize() {
32  //------------------------------------------------------------------------------
34  info() << "Initializing TemplatedAlg instance " << name() << " of type " << demangle( typeid( *this ) ) << endmsg;
35  return StatusCode::SUCCESS;
36 }
37 
38 //------------------------------------------------------------------------------
39 template <typename T, typename R>
41  //------------------------------------------------------------------------------
42  return StatusCode::SUCCESS;
43 }
44 
45 //------------------------------------------------------------------------------
46 template <typename T, typename R>
48  //------------------------------------------------------------------------------
49  return StatusCode::SUCCESS;
50 }
TemplatedAlg::finalize
StatusCode finalize() override
Definition: TemplatedAlg.cpp:47
TemplatedAlg
Definition: TemplatedAlg.py:1
IDataProviderSvc.h
DECLARE_COMPONENT_WITH_ID
#define DECLARE_COMPONENT_WITH_ID(type, id)
Definition: PluginServiceV1.h:47
TimingHistograms.name
name
Definition: TimingHistograms.py:25
StatusCode
Definition: StatusCode.h:65
TemplatedAlg
Definition: TemplatedAlg.h:25
TemplatedAlg.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
DataObject.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
TemplatedAlg::execute
StatusCode execute() override
standard execution method
Definition: TemplatedAlg.cpp:40
t2
TemplatedAlg< double, bool > t2
Definition: TemplatedAlg.cpp:22
Gaudi::PluginService::v1::Details::demangle
GAUDIPS_API std::string demangle(const std::type_info &id)
Return a canonical name for type_info object (implementation borrowed from GaudiKernel/System).
Definition: PluginServiceV1.cpp:131
t1
TemplatedAlg< int, std::vector< std::string > > t1
Definition: TemplatedAlg.cpp:21
IEventProcessor.h
MsgStream.h