GENIEGenerator
Loading...
Searching...
No Matches
AlgStatus.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::AlgStatus
5
6\brief Encapsulates an enumeration of possible algorithm execution states.
7
8\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9 University of Liverpool
10
11\created May 03, 2004
12
13\cpright Copyright (c) 2003-2025, The GENIE Collaboration
14 For the full text of the license visit http://copyright.genie-mc.org
15*/
16//____________________________________________________________________________
17
18#ifndef _ALG_STATUS_H_
19#define _ALG_STATUS_H_
20
21#ifndef ROOT_Rtypes
22#include "Rtypes.h"
23#endif
24
25namespace genie {
26
34
35
36class AlgStatus {
37
38public:
39
40 static const char * AsString(AlgStatus_t alg) {
41 switch (alg) {
42 case kAlgFail: return "Algorithm failed"; break;
43 case kAlgSuccess: return "Algorithm run successfully"; break;
44 case kAlgUndefinedStatus: return "Undefined alg status"; break;
45 default: break;
46 }
47 return " ";
48 }
49
50};
51
52}
53#endif
Encapsulates an enumeration of possible algorithm execution states.
Definition AlgStatus.h:36
static const char * AsString(AlgStatus_t alg)
Definition AlgStatus.h:40
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
enum genie::EAlgStatus AlgStatus_t
EAlgStatus
Definition AlgStatus.h:27
@ kAlgUndefinedStatus
Definition AlgStatus.h:29
@ kAlgSuccess
Definition AlgStatus.h:31
@ kAlgFail
Definition AlgStatus.h:30