Line | |
---|
1 | // %%%%%%%%%%%% |
---|
2 | // gemc headers |
---|
3 | // %%%%%%%%%%%% |
---|
4 | #include "MPhysicsList.h" |
---|
5 | #include "EMPhysics.h" |
---|
6 | #include "HadronPhysics.h" |
---|
7 | #include "IonPhysics.h" |
---|
8 | #include "GeneralPhysics.h" |
---|
9 | #include "OpticalPhysics.h" |
---|
10 | |
---|
11 | |
---|
12 | MPhysicsList::MPhysicsList(gemc_opts Opt): G4VModularPhysicsList() |
---|
13 | { |
---|
14 | gemcOpt = Opt; |
---|
15 | string hd_msg = gemcOpt.args["LOG_MSG"].args + " gemc Physics List: <<< "; |
---|
16 | double use_opt = gemcOpt.args["OPT_PH"].arg; |
---|
17 | double VERB = gemcOpt.args["PHY_VERBOSITY"].arg ; |
---|
18 | |
---|
19 | // default cut value |
---|
20 | defaultCutValue = 1.0*mm; |
---|
21 | |
---|
22 | // EM Physics |
---|
23 | RegisterPhysics( new EMPhysics(gemcOpt)); |
---|
24 | |
---|
25 | // Optical Physics |
---|
26 | if(use_opt) |
---|
27 | RegisterPhysics( new OpticalPhysics(gemcOpt)); |
---|
28 | |
---|
29 | // Hadron Physics |
---|
30 | RegisterPhysics( new HadronPhysics(gemcOpt)); |
---|
31 | |
---|
32 | // General Physics (decay processes) |
---|
33 | RegisterPhysics( new GeneralPhysics(gemcOpt) ); |
---|
34 | |
---|
35 | // Ion Physics |
---|
36 | RegisterPhysics( new IonPhysics(gemcOpt)); |
---|
37 | |
---|
38 | |
---|
39 | } |
---|
40 | |
---|
41 | MPhysicsList::~MPhysicsList(){} |
---|
42 | |
---|
43 | void MPhysicsList::SetCuts() |
---|
44 | { |
---|
45 | double VERB = gemcOpt.args["PHY_VERBOSITY"].arg ; |
---|
46 | |
---|
47 | SetCutsWithDefault(); |
---|
48 | if (VERB>2) DumpCutValuesTable(); |
---|
49 | } |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.