Enumerations | |
| enum | ECut { kCUTGAM, kCUTELE, kCUTNEU, kCUTHAD, kCUTMUO, kBCUTE, kBCUTM, kDCUTE, kDCUTM, kPPCUTM, kTOFMAX, kNCut } |
| enum | EProcess { kANNI, kBREM, kCOMP, kDCAY, kDRAY, kHADR, kLOSS, kMULS, kMUNU, kPAIR, kPFIS, kPHOT, kNProcess } |
Functions | |
| const char * | AsString (ECut cut) |
| const char * | AsString (EProcess process) |
| int | GetCut (const char *cutname) |
| int | GetProcess (const char *processname) |
|
|
Definition at line 18 of file MCApp.h. Referenced by MCApplication::InitSwimMedia(). 00018 {
00019 // Flags to specify threshold cuts. Kinetic energy cuts in GeV.
00020 // Time of flight cut in seconds. Specified in order that they
00021 // appear in Geant3 "CUTS" flag.
00022 kCUTGAM, // cut for gammas
00023 kCUTELE, // cut for electrons
00024 kCUTNEU, // cut for neutral hadrons
00025 kCUTHAD, // cut for charged hadrons
00026 kCUTMUO, // cut for muons
00027 kBCUTE, // cut for electron bremsstrahlung
00028 kBCUTM, // cut for muon and hadron bremsstrahlung
00029 kDCUTE, // cut for delta rays by electrons
00030 kDCUTM, // cut for delta rays by muons
00031 kPPCUTM, // total energy cut for direct pair production by muons
00032 kTOFMAX, // time of flight cut in seconds
00033 kNCut // Number of cuts in enumerated list
00034 };
|
|
|
Definition at line 36 of file MCApp.h. Referenced by MCApplication::InitSwimMedia(). 00036 {
00037 // Flags to control physics processes. In general:
00038 // 0 = process is disabled.
00039 // 1 = process enabled with production of secondaries
00040 // 2 = process enabled without production of secondaries
00041 // unless otherwise specified.
00042 // Process flags are listed in alphabetical order.
00043 kANNI, // Positron annihilation
00044 kBREM, // Bremsstrahlung
00045 kCOMP, // Compton scattering
00046 kDCAY, // Decay in flight
00047 kDRAY, // Delta ray production
00048 kHADR, // Hadronic interactions.
00049 // HADR 0=None
00050 // 1,2,3=GHEISHA
00051 // 4=FLUKA
00052 // 5=MICAP(low E)/FLUKA(high E)
00053 // 6=GCALOR
00054 kLOSS, // Continuous energy loss
00055 // LOSS 0=None
00056 // 1=Continuous loss w/drays above DCUTE, fluctuations below
00057 // 2=Continuous loss w/o drays and full Landau fluctuations
00058 // 3=Same as 1
00059 // 4=Energy loss without fluctuation.
00060 kMULS, // Multiple scattering
00061 // MULS 0=None
00062 // 1=Multiple scattering according to Moliere theory
00063 // 2=Same as 1
00064 // 3=Pure Gaussian scattering according to the Rossi formula
00065 kMUNU, // Muon nuclear interaction
00066 kPAIR, // Pair production
00067 kPFIS, // Photofission (nuclear fission induced by photon)
00068 kPHOT, // Photoelectric effect
00069 kNProcess // Number of cuts in enumerated list
00070 };
|
|
|
Definition at line 99 of file MCApp.cxx. References kANNI, kBREM, kCOMP, kDCAY, kDRAY, kHADR, kLOSS, kMULS, kMUNU, kPAIR, kPFIS, kPHOT, and MSG. 00099 {
00100 // Purpose: Convert enumerated mc process to a process string.
00101 //
00102 // Argument: process: enumerated EProcess described in MCApp.h.
00103 //
00104 // Return: process string. If unknown, returns "Unknown".
00105 //
00106 // Contact: S. Kasahara
00107 //
00108
00109 switch ( process ) {
00110 case kANNI:
00111 return "ANNI";
00112 case kBREM:
00113 return "BREM";
00114 case kCOMP:
00115 return "COMP";
00116 case kDCAY:
00117 return "DCAY";
00118 case kDRAY:
00119 return "DRAY";
00120 case kHADR:
00121 return "HADR";
00122 case kLOSS:
00123 return "LOSS";
00124 case kMULS:
00125 return "MULS";
00126 case kMUNU:
00127 return "MUNU";
00128 case kPAIR:
00129 return "PAIR";
00130 case kPFIS:
00131 return "PFIS";
00132 case kPHOT:
00133 return "PHOT";
00134
00135 default:
00136 MSG("MCApp",Msg::kWarning)
00137 << "MCApp::AsString called with unknown process" << (int)process << endl;
00138 return "Unknown";
00139 }//end of switch
00140
00141 }
|
|
|
Definition at line 26 of file MCApp.cxx. References kBCUTE, kBCUTM, kCUTELE, kCUTGAM, kCUTHAD, kCUTMUO, kCUTNEU, kDCUTE, kDCUTM, kPPCUTM, kTOFMAX, and MSG. 00026 {
00027 // Purpose: Convert enumerated mc cut to a cut string.
00028 //
00029 // Argument: cut: enumerated ECut described in MCApp.h.
00030 //
00031 // Return: cut string. If unknown, returns "Unknown".
00032 //
00033 // Contact: S. Kasahara
00034 //
00035
00036 switch ( cut ) {
00037 case kCUTGAM:
00038 return "CUTGAM";
00039 case kCUTELE:
00040 return "CUTELE";
00041 case kCUTNEU:
00042 return "CUTNEU";
00043 case kCUTHAD:
00044 return "CUTHAD";
00045 case kCUTMUO:
00046 return "CUTMUO";
00047 case kBCUTE:
00048 return "BCUTE";
00049 case kBCUTM:
00050 return "BCUTM";
00051 case kDCUTE:
00052 return "DCUTE";
00053 case kDCUTM:
00054 return "DCUTM";
00055 case kPPCUTM:
00056 return "PPCUTM";
00057 case kTOFMAX:
00058 return "TOFMAX";
00059
00060 default:
00061 MSG("MCApp",Msg::kWarning)
00062 << "MCApp::AsString called with unknown cut"
00063 << (int)cut << endl;
00064 return "Unknown";
00065 }//end of switch
00066
00067 }
|
|
|
Definition at line 70 of file MCApp.cxx. 00070 {
00071 // Purpose: Convert text string cut to an enumerated code.
00072 //
00073 // Argument: cut string
00074 //
00075 // Return: returns -1 if no match
00076 //
00077 // Contact: S. Kasahara
00078 //
00079
00080 TString tmpstr(cut);
00081 tmpstr.ToLower();
00082 if ( strcmp(tmpstr.Data(),"cutgam") == 0 ) return MCApp::kCUTGAM;
00083 else if ( strcmp(tmpstr.Data(),"cutele") == 0 ) return MCApp::kCUTELE;
00084 else if ( strcmp(tmpstr.Data(),"cutneu") == 0 ) return MCApp::kCUTNEU;
00085 else if ( strcmp(tmpstr.Data(),"cuthad") == 0 ) return MCApp::kCUTHAD;
00086 else if ( strcmp(tmpstr.Data(),"cutmuo") == 0 ) return MCApp::kCUTMUO;
00087 else if ( strcmp(tmpstr.Data(),"bcute") == 0 ) return MCApp::kBCUTE;
00088 else if ( strcmp(tmpstr.Data(),"bcutm") == 0 ) return MCApp::kBCUTM;
00089 else if ( strcmp(tmpstr.Data(),"dcute") == 0 ) return MCApp::kDCUTE;
00090 else if ( strcmp(tmpstr.Data(),"dcutm") == 0 ) return MCApp::kDCUTM;
00091 else if ( strcmp(tmpstr.Data(),"ppcutm") == 0 ) return MCApp::kPPCUTM;
00092 else if ( strcmp(tmpstr.Data(),"tofmax") == 0 ) return MCApp::kTOFMAX;
00093
00094 return -1;
00095
00096 }
|
|
|
Definition at line 144 of file MCApp.cxx. 00144 {
00145 // Purpose: Convert text string process to an enumerated code.
00146 //
00147 // Argument: process string
00148 //
00149 // Return: returns -1 if no match
00150 //
00151 // Contact: S. Kasahara
00152 //
00153
00154 TString tmpstr(process);
00155 tmpstr.ToLower();
00156 if ( strcmp(tmpstr.Data(),"anni") == 0 ) return MCApp::kANNI;
00157 else if ( strcmp(tmpstr.Data(),"brem") == 0 ) return MCApp::kBREM;
00158 else if ( strcmp(tmpstr.Data(),"comp") == 0 ) return MCApp::kCOMP;
00159 else if ( strcmp(tmpstr.Data(),"dcay") == 0 ) return MCApp::kDCAY;
00160 else if ( strcmp(tmpstr.Data(),"dray") == 0 ) return MCApp::kDRAY;
00161 else if ( strcmp(tmpstr.Data(),"hadr") == 0 ) return MCApp::kHADR;
00162 else if ( strcmp(tmpstr.Data(),"loss") == 0 ) return MCApp::kLOSS;
00163 else if ( strcmp(tmpstr.Data(),"muls") == 0 ) return MCApp::kMULS;
00164 else if ( strcmp(tmpstr.Data(),"munu") == 0 ) return MCApp::kMUNU;
00165 else if ( strcmp(tmpstr.Data(),"pair") == 0 ) return MCApp::kPAIR;
00166 else if ( strcmp(tmpstr.Data(),"pfis") == 0 ) return MCApp::kPFIS;
00167 else if ( strcmp(tmpstr.Data(),"phot") == 0 ) return MCApp::kPHOT;
00168
00169 return -1;
00170
00171 }
|
1.3.9.1