AlgCmp.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::AlgCmp
5 
6 \brief Encapsulates an enumeration of possible algorithm comparisons
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created October 22, 2005
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _ALG_CMP_H_
20 #define _ALG_CMP_H_
21 
22 #ifndef ROOT_Rtypes
23 #include "Rtypes.h"
24 #endif
25 
26 namespace genie {
27 
28 typedef enum EAlgCmp {
29 
34 
35 } AlgCmp_t;
36 
37 
38 class AlgCmp {
39 
40  public:
41 
42  static const char * AsString(AlgCmp_t alg) {
43  switch (alg) {
44  case kAlgCmpIdentical: return "Algorithm [same], configuration [same]"; break;
45  case kAlgCmpDiffConfig: return "Algorithm [same], configuration [diff]"; break;
46  case kAlgCmpDiffAlg: return "Algorithm [diff]"; break;
47  case kAlgCmpUnknown: return "Undefined algorithm comparison result"; break;
48  default: break;
49  }
50  return " ";
51  }
52 
53 };
54 
55 }
56 #endif
Encapsulates an enumeration of possible algorithm comparisons.
Definition: AlgCmp.h:38
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
enum genie::EAlgCmp AlgCmp_t
static const char * AsString(AlgCmp_t alg)
Definition: AlgCmp.h:42
EAlgCmp
Definition: AlgCmp.h:28