GENIEGenerator
Loading...
Searching...
No Matches
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 <c.andreopoulos \at cern.ch>
9 University of Liverpool
10
11\created October 22, 2005
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_CMP_H_
19#define _ALG_CMP_H_
20
21#ifndef ROOT_Rtypes
22#include "Rtypes.h"
23#endif
24
25namespace genie {
26
35
36
37class 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
static const char * AsString(AlgCmp_t alg)
Definition AlgCmp.h:41
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
EAlgCmp
Definition AlgCmp.h:27
@ kAlgCmpDiffConfig
Definition AlgCmp.h:31
@ kAlgCmpIdentical
Definition AlgCmp.h:30
@ kAlgCmpUnknown
Definition AlgCmp.h:29
@ kAlgCmpDiffAlg
Definition AlgCmp.h:32
enum genie::EAlgCmp AlgCmp_t