| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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"
16 #include "GaudiAlg/GaudiHistoTool.h"
17 #include "GaudiAlg/GaudiTuples.h"
18
19 //=============================================================================
20 // Null algorithm like constructor for tool
21 // should NEVER be used...
22 //=============================================================================
23 template <>
24 GaudiTuples<GaudiHistoTool>::GaudiTuples( const std::string& /* name */,
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 <>
38 GaudiTuples<GaudiHistoAlg>::GaudiTuples( const std::string& /* type */ ,
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 <>
52 GaudiTuples<GaudiHistoAlg>::GaudiTuples( const std::string& name,
53 ISvcLocator * pSvcLocator )
54 : GaudiHistoAlg ( name , pSvcLocator )
55 {
56 initGaudiTuplesConstructor();
57 }
58 //=============================================================================
59
60 //=============================================================================
61 // Standard tool constructor, initializes variables
62 //=============================================================================
63 template <>
64 GaudiTuples<GaudiHistoTool>::GaudiTuples( const std::string& type ,
65 const std::string& name ,
66 const IInterface* parent )
67 : GaudiHistoTool ( type , name , parent )
68 {
69 initGaudiTuplesConstructor();
70 }
71 //=============================================================================
72
73 // ============================================================================
74 // The END
75 // ============================================================================
GaudiTuples.h
GaudiException
Define general base for Gaudi exception.
Definition: GaudiException.h:23
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
GaudiHistoTool.h
Header file for class : GaudiHistoTool.
GaudiTuples::GaudiTuples
GaudiTuples(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
std::string
STL class.
gaudirun.type
string type
Definition: gaudirun.py:151
StatusCode::FAILURE
Definition: StatusCode.h:29
IInterface
Definition of the basic interface.
Definition: IInterface.h:234
GaudiHistoTool
Simple class to extend the functionality of class GaudiTool.
Definition: GaudiHistoTool.h:42
GaudiTuples::initGaudiTuplesConstructor
void initGaudiTuplesConstructor()
Constructor initialization and job options.
Definition: GaudiTuples.h:330
GaudiHistoAlg.h
GaudiHistoAlg
Simple class to extend the functionality of class GaudiAlgorithm.
Definition: GaudiHistoAlg.h:37