GaudiHistosConstructors.cpp
Go to the documentation of this file.
1 // ============================================================================
2 /* @file GaudiHistosConstructors.cpp
3  *
4  * Specialised constructors for GaudiHistos
5  *
6  * @author Chris Jones Christopher.Rob.Jones@cern.ch
7  * @date 2005-08-08
8  */
9 // ============================================================================
10 
11 // ============================================================================
12 // GaudiAlg
13 // ============================================================================
15 #include "GaudiAlg/GaudiTool.h"
16 #include "GaudiAlg/GaudiHistos.h"
17 
18 //=============================================================================
19 // Null algorithm like constructor for tool
20 // should NEVER be used...
21 //=============================================================================
22 template <>
24  ISvcLocator * /* pSvcLocator */ )
25  : GaudiTool ( "ERROR", "ERROR", nullptr )
26 {
27  throw GaudiException( "Invalid GaudiHistos<GaudiTool> constructor",
28  "GaudiHistos", StatusCode::FAILURE );
29 }
30 //=============================================================================
31 
32 //=============================================================================
33 // Null tool like constructor for Algorithm
34 // should NEVER be used...
35 //=============================================================================
36 template <>
38  const std::string& /* name */ ,
39  const IInterface* /* parent */ )
40  : GaudiAlgorithm ( "ERROR", nullptr )
41 {
42  throw GaudiException( "Invalid GaudiHistos<GaudiAlgorithm> constructor",
43  "GaudiHistos", StatusCode::FAILURE );
44 }
45 //=============================================================================
46 
47 //=============================================================================
48 // Standard algorithm constructor, initializes variables
49 //=============================================================================
50 template <>
52  ISvcLocator * pSvcLocator )
53  : GaudiAlgorithm ( name, pSvcLocator )
54 {
55  initGaudiHistosConstructor();
56 }
57 //=============================================================================
58 
59 //=============================================================================
60 // Standard tool constructor, initializes variables
61 //=============================================================================
62 template <>
64  const std::string& name ,
65  const IInterface* parent )
66  : GaudiTool ( type , name , parent )
67 {
68  initGaudiHistosConstructor();
69 }
70 //=============================================================================
71 
72 // ============================================================================
73 // The END
74 // ============================================================================
Header file for class GaudiAlgorithm.
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
Header file for class GaudiAlgorithm.
STL class.
Definition of the basic interface.
Definition: IInterface.h:234
GaudiHistos(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
The useful base class for data processing algorithms.
The useful base class for tools.
Definition: GaudiTool.h:101