Skip to content
Snippets Groups Projects
Commit 5e4d1993 authored by Dmitry Popov's avatar Dmitry Popov
Browse files

switch to opt2 in calo test

parent 463664ec
No related branches found
No related tags found
2 merge requests!61Release of v106r2,!58Switch to the stock EMStandardOpt2 physics list
......@@ -28,7 +28,7 @@ def create_cfg_file(n_evts=10000, name='G4SamplingCaloTest.mac'):
'/testem/det/setAbsor 2 Scintillator 4 mm\n' +
'/testem/det/setSizeYZ 20 cm\n' +
'#\n' +
'/testem/phys/addPhysics emstandard_opt1nocuts\n' +
'/testem/phys/addPhysics emstandard_opt2\n' +
'#\n' +
'#/gun/particle e-\n' +
'#/gun/energy 100 GeV\n' +
......
......@@ -169,6 +169,7 @@ void PhysicsList::AddPhysicsList(const G4String& name)
} else if (name == "emstandard_opt2") {
std::cout << "Passed 'emstandard_opt2' in Physicslist.cc" << std::endl;
fEmName = name;
delete fEmPhysicsList;
fEmPhysicsList = new G4EmStandardPhysics_option2();
......@@ -189,7 +190,7 @@ void PhysicsList::AddPhysicsList(const G4String& name)
// LHCb
else if (name == "emstandard_opt1nocuts") {
fEmName = name;
std::cout << "Passed if statement in Physicslist.cc" << std::endl;
std::cout << "Passed 'emstandard_opt1nocuts' in Physicslist.cc" << std::endl;
delete fEmPhysicsList;
fEmPhysicsList = new G4EmStandardPhysics_option1NoApplyCuts();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment