GHepFlags.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::GHepFlag
5 
6 \brief An enumeration of event flags. Each represents a physical condition
7  or a computational error. If any is set the event would be marked as
8  unphysical.
9 
10 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
11  University of Liverpool & STFC Rutherford Appleton Lab
12 
13 \created May 06, 2004
14 
15 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
16  For the full text of the license visit http://copyright.genie-mc.org
17  or see $GENIE/LICENSE
18 */
19 //____________________________________________________________________________
20 
21 #ifndef _GHEP_FLAGS_H_
22 #define _GHEP_FLAGS_H_
23 
24 namespace genie {
25 
26  typedef enum EGHepFlag {
27 
36 
37  } GHepFlag_t;
38 
39 class GHepFlags {
40 
41  public:
42  //__________________________________________________________________________
43  static const char * Describe(GHepFlag_t flag)
44  {
45  switch (flag) {
46  case kGenericErr :
47  return "Generic error";
48  break;
49  case kPauliBlock :
50  return "Pauli-blocked event";
51  break;
52  case kBelowThrNRF :
53  return "E<Ethr in hit nucleon rest frame";
54  break;
55  case kBelowThrERF :
56  return "E<Ethr in hit e- rest frame";
57  break;
58  case kKineGenErr :
59  return "Generic error in kinematic generation";
60  break;
61  case kHadroSysGenErr :
62  return "Generic error in f/s hadronic system generation";
63  break;
64  case kLeptoGenErr :
65  return "Generic error in f/s lepton generation";
66  break;
67  case kDecayErr :
68  return "Generic error during unstable particle decay";
69  break;
70  default:
71  return "Unknown GHEP flag";
72  break;
73  }
74  return "Unknown GHEP flag";
75  }
76  //__________________________________________________________________________
77  static unsigned int NFlags(void) { return 16; }
78  //__________________________________________________________________________
79 };
80 
81 } // genie namespace
82 
83 #endif // _GHEP_FLAGS_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
enum genie::EGHepFlag GHepFlag_t
static const char * Describe(GHepFlag_t flag)
Definition: GHepFlags.h:43
EGHepFlag
Definition: GHepFlags.h:26
static unsigned int NFlags(void)
Definition: GHepFlags.h:77