GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created November 20, 2004
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _STDHEP_STATUS_H_
19 #define _STDHEP_STATUS_H_
20 
21 #ifndef ROOT_Rtypes
22 #include "Rtypes.h"
23 #endif
24 
25 namespace genie {
26 
27 typedef enum EGHepStatus {
29  kIStInitialState = 0, /* generator-level initial state */
30  kIStStableFinalState = 1, /* generator-level final state: particles to be tracked by detector-level MC */
37  kIStHadronInTheNucleus = 14, /* hadrons inside the nucleus: marked for hadron transport modules to act on */
38  kIStFinalStateNuclearRemnant = 15, /* low energy nuclear fragments entering the record collectively as a 'hadronic blob' pseudo-particle */
39  kIStNucleonClusterTarget = 16 // for composite nucleons before phase space decay
40 }
42 
43 class GHepStatus {
44  public:
45 
46  static const char * AsString(GHepStatus_t Ist) {
47  switch (Ist) {
48  case kIStUndefined:
49  return "[undefined status]";
50  break;
51  case kIStInitialState:
52  return "[initial state]";
53  break;
55  return "[stable final state]";
56  break;
58  return "[intermediate state]";
59  break;
60  case kIStDecayedState:
61  return "[decayed state]";
62  break;
64  return "[other energetic initial state nucleons]";
65  break;
66  case kIStNucleonTarget:
67  return "[nucleon target]";
68  break;
70  return "[DIS pre-fragm. hadronic state]";
71  break;
73  return "[resonant pre-decayed state]";
74  break;
76  return "[hadron in the nucleus]";
77  break;
79  return "[nuclear remnant]";
80  break;
82  return "[nucleon cluster target]";
83  break;
84  default: break;
85  }
86  return "[-]";
87  }
88 };
89 
90 } // genie
91 #endif // _STDHEP_STATUS_H_
GHepParticle Status.
Definition: GHepStatus.h:43
static const char * AsString(GHepStatus_t Ist)
Definition: GHepStatus.h:46
EGHepStatus
Definition: GHepStatus.h:27
enum genie::EGHepStatus GHepStatus_t