MuELProcess.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::mueloss::MuELProcess
5 
6 \brief Enumeration of muon energy loss processes
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created December 10, 2003
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 
19 #ifndef _MUELOSS_PROCESS_H_
20 #define _MUELOSS_PROCESS_H_
21 
23 
24 using namespace genie::constants;
25 
26 namespace genie {
27 namespace mueloss {
28 
29 typedef enum EMuELProcess {
30 
37 
39 
41 {
42 public:
43  //__________________________________________________________________________
44  static const char * AsString(MuELProcess_t p) {
45  switch(p) {
46  case eMupIonization : return "ionization"; break;
47  case eMupPairProduction : return "direct e+e- pair production"; break;
48  case eMupBremsstrahlung : return "bremsstrahlung"; break;
49  case eMupNuclearInteraction: return "nuclear interaction"; break;
50  case eMupSum : return "all"; break;
51  case eMupUndefined:
52  default:
53  return "undefined process"; break;
54  }
55  return "undefined process";
56  }
57  //__________________________________________________________________________
58  static double Threshold(MuELProcess_t p) {
59  switch(p) {
60  case eMupIonization : return kMuonMass; break;
61  case eMupPairProduction : return kMuonMass+2*kElectronMass; break;
62  case eMupBremsstrahlung : return kMuonMass; break;
63  case eMupNuclearInteraction: return kMuonMass; break;
64  case eMupSum : return kMuonMass; break;
65  case eMupUndefined:
66  default:
67  return 999999999; break;
68  }
69  return 99999999;
70  }
71  //__________________________________________________________________________
72 };
73 
74 } // mueloss namespace
75 } // genie namespace
76 
77 #endif // _MUELOSS_PROCESS_H_
Basic constants.
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
static const double kElectronMass
Definition: Constants.h:70
static double Threshold(MuELProcess_t p)
Definition: MuELProcess.h:58
Enumeration of muon energy loss processes.
Definition: MuELProcess.h:40
p
Definition: test.py:223
static const double kMuonMass
Definition: Constants.h:71
static const char * AsString(MuELProcess_t p)
Definition: MuELProcess.h:44
enum genie::mueloss::EMuELProcess MuELProcess_t