CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
G4ProcessTypeEnumerator.cc
Go to the documentation of this file.
2 
3 static const int nprocesses = 49;
4 static const std::string g4processes[nprocesses] = { "Primary",
5  "Transportation", "CoupleTrans", "CoulombScat", "Ionisation", "Brems",
6  "PairProdCharged", "Annih", "AnnihToMuMu", "AnnihToHad", "NuclearStopp",
7  "Msc", "Rayleigh", "PhotoElectric", "Compton", "Conv",
8  "ConvToMuMu", "Cerenkov", "Scintillation", "SynchRad", "TransRad",
9  "OpAbsorp", "OpBoundary", "OpRayleigh", "OpWLS", "OpMieHG",
10  "DNAElastic", "DNAExcit", "DNAIonisation", "DNAVibExcit", "DNAAttachment",
11  "DNAChargeDec", "DNAChargeInc", "HadElastic", "HadInelastic", "HadCapture",
12  "HadFission", "HadAtRest", "HadCEX", "Decay", "DecayWSpin",
13  "DecayPiWSpin", "DecayRadio", "DecayUnKnown", "DecayExt", "GFlash", "StepLimiter",
14  "UsrSpecCuts", "NeutronKiller"};
15 static const int g4subtype[nprocesses] = {
16  0, // Primary generator
17  91, // Transportation
18  92, // CoupleTrans
19  1, // CoulombScat
20  2, // Ionisation
21  3, // Brems
22  4, // PairProdCharged
23  5, // Annih
24  6, // AnnihToMuMu
25  7, // AnnihToHad
26  8, // NuclearStopp
27  10, // Msc
28  11, //
29  12, // PhotoElectric
30  13, // Compton
31  14, // Conv
32  15, // ConvToMuMu
33  21,
34  22,
35  23,
36  24,
37  31,
38  32,
39  33,
40  34,
41  35,
42  51,
43  52,
44  53,
45  54,
46  55,
47  56,
48  57,
49  111, // HadElastic
50  121, // HadInelastic
51  131, // HadCapture
52  141, // HadFission
53  151, // HadAtRest
54  161,
55  201, // Decay
56  202, // DecayWSpin
57  203, // DecayPiWSpin
58  210, // DecayRadio
59  211, // DecayUnKnown
60  231, // DecayExt
61  301, // GFlash
62  401, // StepLimiter
63  402,
64  403 // NeutronKiller
65 };
66 
68 {}
69 
71 {}
72 
74 {
75  std::string res = "";
76  for(int i=0; i<nprocesses; ++i) {
77  if(idx == g4subtype[i]) {
78  res = g4processes[i];
79  break;
80  }
81  }
82  return res;
83 }
84 
86 {
87  int idx = 0;
88  for(int i=0; i<nprocesses; ++i) {
89  if(name == g4processes[i]) {
90  idx = g4subtype[i];
91  break;
92  }
93  }
94  return idx;
95 }
int i
Definition: DBlmapReader.cc:9
unsigned int processId(const G4VProcess *p)
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
static const std::string g4processes[nprocesses]
static const int nprocesses
static const int g4subtype[nprocesses]