All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GaudiTuplesConstructors.cpp
Go to the documentation of this file.
1 
2 // ============================================================================
3 /* @file GaudiTuplesConstructors.cpp
4  *
5  * Specialised constructors for GaudiTuples
6  *
7  * @author Chris Jones Christopher.Rob.Jones@cern.ch
8  * @date 2005-08-08
9  */
10 // ============================================================================
11 
12 // ============================================================================
13 // GaudiAlg
14 // ============================================================================
15 #include "GaudiAlg/GaudiHistoAlg.h"
17 #include "GaudiAlg/GaudiTuples.h"
18 
19 //=============================================================================
20 // Null algorithm like constructor for tool
21 // should NEVER be used...
22 //=============================================================================
23 template <>
25  ISvcLocator * /* pSvcLocator */ )
26  : GaudiHistoTool ( "ERROR" , "ERROR" , nullptr )
27 {
28  throw GaudiException( "Invalid GaudiTuples<GaudiTool> constructor",
29  "GaudiTuples", StatusCode::FAILURE );
30 }
31 //=============================================================================
32 
33 //=============================================================================
34 // Null tool like constructor for Algorithm
35 // should NEVER be used...
36 //=============================================================================
37 template <>
39  const std::string& /* name */ ,
40  const IInterface* /* parent */ )
41  : GaudiHistoAlg ( "ERROR" , nullptr )
42 {
43  throw GaudiException( "Invalid GaudiTuples<GaudiAlgorithm> constructor",
44  "GaudiTuples", StatusCode::FAILURE );
45 }
46 //=============================================================================
47 
48 //=============================================================================
49 // Standard algorithm constructor, initializes variables
50 //=============================================================================
51 template <>
53  ISvcLocator * pSvcLocator )
54  : GaudiHistoAlg ( name , pSvcLocator )
55 {
57 }
58 //=============================================================================
59 
60 //=============================================================================
61 // Standard tool constructor, initializes variables
62 //=============================================================================
63 template <>
65  const std::string& name ,
66  const IInterface* parent )
67  : GaudiHistoTool ( type , name , parent )
68 {
70 }
71 //=============================================================================
72 
73 // ============================================================================
74 // The END
75 // ============================================================================
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:725
Header file for class : GaudiHistoTool.
GaudiTuples(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
STL class.
Definition of the basic interface.
Definition: IInterface.h:234
Simple class to extend the functionality of class GaudiTool.
void initGaudiTuplesConstructor()
Constructor initialization and job options.
Definition: GaudiTuples.h:319
Simple class to extend the functionality of class GaudiAlgorithm.
Definition: GaudiHistoAlg.h:37
const std::string & type() const override
The type of the algorithm object.
Definition: Algorithm.h:165