construction wrapper seems to work
This commit is contained in:
+11
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user