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 <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created October 22, 2005
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _ALG_CMP_H_
19 #define _ALG_CMP_H_
20 
21 #ifndef ROOT_Rtypes
22 #include "Rtypes.h"
23 #endif
24 
25 namespace genie {
26 
27 typedef enum EAlgCmp {
28 
33 
34 } AlgCmp_t;
35 
36 
37 class AlgCmp {
38 
39  public:
40 
41  static const char * AsString(AlgCmp_t alg) {
42  switch (alg) {
43  case kAlgCmpIdentical: return "Algorithm [same], configuration [same]"; break;
44  case kAlgCmpDiffConfig: return "Algorithm [same], configuration [diff]"; break;
45  case kAlgCmpDiffAlg: return "Algorithm [diff]"; break;
46  case kAlgCmpUnknown: return "Undefined algorithm comparison result"; break;
47  default: break;
48  }
49  return " ";
50  }
51 
52 };
53 
54 }
55 #endif
Encapsulates an enumeration of possible algorithm comparisons.
Definition: AlgCmp.h:37
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
enum genie::EAlgCmp AlgCmp_t
static const char * AsString(AlgCmp_t alg)
Definition: AlgCmp.h:41
EAlgCmp
Definition: AlgCmp.h:27