5 #include "G4EmStandardPhysics_option3.hh"
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4StoppingPhysics.hh"
10 #include "G4HadronElasticPhysics.hh"
11 #include "G4NeutronTrackingCut.hh"
12 #include "G4HadronicProcessStore.hh"
13 #include "G4EmParameters.hh"
16 int ver =
p.getUntrackedParameter<
int>(
"Verbosity", 0);
17 bool emPhys =
p.getUntrackedParameter<
bool>(
"EMPhysics",
true);
18 bool hadPhys =
p.getUntrackedParameter<
bool>(
"HadPhysics",
true);
19 bool tracking =
p.getParameter<
bool>(
"TrackingCut");
20 double timeLimit =
p.getParameter<
double>(
"MaxTrackTime") * CLHEP::ns;
21 double minFTFP =
p.getParameter<
double>(
"EminFTFP") *
CLHEP::GeV;
22 double maxBERT =
p.getParameter<
double>(
"EmaxBERT") *
CLHEP::GeV;
23 double maxBERTpi =
p.getParameter<
double>(
"EmaxBERTpi") *
CLHEP::GeV;
24 edm::LogVerbatim(
"PhysicsList") <<
"You are using the simulation engine: FTFP_BERT_EMY \n Flags for EM Physics "
25 << emPhys <<
", for Hadronic Physics " << hadPhys <<
" and tracking cut " <<
tracking
26 <<
" t(ns)= " << timeLimit / CLHEP::ns <<
"\n transition energy Bertini/FTFP from "
32 RegisterPhysics(
new G4EmStandardPhysics_option3(ver));
33 G4EmParameters::Instance()->SetMscStepLimitType(fUseSafetyPlus);
36 G4EmExtraPhysics* gn =
new G4EmExtraPhysics(ver);
41 this->RegisterPhysics(
new G4DecayPhysics(ver));
44 G4HadronicProcessStore::Instance()->SetVerbose(ver);
47 RegisterPhysics(
new G4HadronElasticPhysics(ver));
53 RegisterPhysics(
new G4StoppingPhysics(ver));
56 RegisterPhysics(
new G4IonPhysics(ver));
60 G4NeutronTrackingCut* ncut =
new G4NeutronTrackingCut(ver);
61 ncut->SetTimeLimit(timeLimit);
62 RegisterPhysics(ncut);