GHepStatus.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::GHepStatus
5 
6 \brief GHepParticle Status
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created November 20, 2004
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 _STDHEP_STATUS_H_
20 #define _STDHEP_STATUS_H_
21 
22 #ifndef ROOT_Rtypes
23 #include "Rtypes.h"
24 #endif
25 
26 namespace genie {
27 
28 typedef enum EGHepStatus {
30  kIStInitialState = 0, /* generator-level initial state */
31  kIStStableFinalState = 1, /* generator-level final state: particles to be tracked by detector-level MC */
38  kIStHadronInTheNucleus = 14, /* hadrons inside the nucleus: marked for hadron transport modules to act on */
39  kIStFinalStateNuclearRemnant = 15, /* low energy nuclear fragments entering the record collectively as a 'hadronic blob' pseudo-particle */
40  kIStNucleonClusterTarget = 16 // for composite nucleons before phase space decay
41 }
43 
44 class GHepStatus {
45  public:
46 
47  static const char * AsString(GHepStatus_t Ist) {
48  switch (Ist) {
49  case kIStUndefined:
50  return "[undefined status]";
51  break;
52  case kIStInitialState:
53  return "[initial state]";
54  break;
56  return "[stable final state]";
57  break;
59  return "[intermediate state]";
60  break;
61  case kIStDecayedState:
62  return "[decayed state]";
63  break;
65  return "[other energetic initial state nucleons]";
66  break;
67  case kIStNucleonTarget:
68  return "[nucleon target]";
69  break;
71  return "[DIS pre-fragm. hadronic state]";
72  break;
74  return "[resonant pre-decayed state]";
75  break;
77  return "[hadron in the nucleus]";
78  break;
80  return "[nuclear remnant]";
81  break;
83  return "[nucleon cluster target]";
84  break;
85  default: break;
86  }
87  return "[-]";
88  }
89 };
90 
91 } // genie
92 #endif // _STDHEP_STATUS_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
enum genie::EGHepStatus GHepStatus_t
GHepParticle Status.
Definition: GHepStatus.h:44
static const char * AsString(GHepStatus_t Ist)
Definition: GHepStatus.h:47
EGHepStatus
Definition: GHepStatus.h:28