All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiHistosConstructors.cpp
Go to the documentation of this file.
1 // $Id: GaudiHistosConstructors.cpp,v 1.1 2005/09/23 16:14:20 hmd Exp $
2 
3 // ============================================================================
4 /* @file GaudiHistosConstructors.cpp
5  *
6  * Specialised constructors for GaudiHistos
7  *
8  * @author Chris Jones Christopher.Rob.Jones@cern.ch
9  * @date 2005-08-08
10  */
11 // ============================================================================
12 
13 // ============================================================================
14 // GaudiAlg
15 // ============================================================================
17 #include "GaudiAlg/GaudiTool.h"
18 #include "GaudiAlg/GaudiHistos.h"
19 
20 //=============================================================================
21 // Null algorithm like constructor for tool
22 // should NEVER be used...
23 //=============================================================================
24 template <>
25 GaudiHistos<GaudiTool>::GaudiHistos( const std::string & /* name */,
26  ISvcLocator * /* pSvcLocator */ )
27  : GaudiTool ( "ERROR", "ERROR", 0 )
28 {
29  throw GaudiException( "Invalid GaudiHistos<GaudiTool> constructor",
30  "GaudiHistos", StatusCode::FAILURE );
31 }
32 //=============================================================================
33 
34 //=============================================================================
35 // Null tool like constructor for Algorithm
36 // should NEVER be used...
37 //=============================================================================
38 template <>
39 GaudiHistos<GaudiAlgorithm>::GaudiHistos( const std::string& /* type */ ,
40  const std::string& /* name */ ,
41  const IInterface* /* parent */ )
42  : GaudiAlgorithm ( "ERROR", 0 )
43 {
44  throw GaudiException( "Invalid GaudiHistos<GaudiAlgorithm> constructor",
45  "GaudiHistos", StatusCode::FAILURE );
46 }
47 //=============================================================================
48 
49 //=============================================================================
50 // Standard algorithm constructor, initializes variables
51 //=============================================================================
52 template <>
53 GaudiHistos<GaudiAlgorithm>::GaudiHistos( const std::string & name,
54  ISvcLocator * pSvcLocator )
55  : GaudiAlgorithm ( name, pSvcLocator )
56 {
58 }
59 //=============================================================================
60 
61 //=============================================================================
62 // Standard tool constructor, initializes variables
63 //=============================================================================
64 template <>
66  const std::string& name ,
67  const IInterface* parent )
68  : GaudiTool ( type , name , parent )
69 {
71 }
72 //=============================================================================
73 
74 // ============================================================================
75 // The END
76 // ============================================================================
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:26
string type
Definition: gaudirun.py:126
Definition of the basic interface.
Definition: IInterface.h:160
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:99
void initGaudiHistosConstructor()
Constructor initialisation and job options.