construction wrapper seems to work

This commit is contained in:
Jan Kieseler
2023-09-07 23:31:46 +02:00
parent 3521cfd79e
commit 0adb64f763
6 changed files with 237 additions and 109 deletions
+11 -1
View File
@@ -112,9 +112,19 @@ int main(int argc,char** argv)
}
#endif
ConstructionWrapper cw;
cw.addLayer(1, "G4_Pb", false, 2, 2);
cw.addLayer(10, "G4_Si", true, 2, 2);
cw.addLayer(1, "G4_Pb", false, 2, 2);
cw.addLayer(20, "G4_Si", true, 2, 2);
cw.addLayer(4, "G4_Pb", false, 2, 2);
cw.addLayer(3, "G4_Si", true, 2, 2);
// Set mandatory initialization classes
//
auto detConstruction = new B4::DetectorConstruction();
auto detConstruction = new B4::DetectorConstruction(cw);
// FOR LATER: assign constructionwrapper here (will be passed from other function)
runManager->SetUserInitialization(detConstruction);
auto physicsList = new FTFP_BERT;