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