material printout added but doesn't work yet
This commit is contained in:
+2
-1
@@ -23,7 +23,8 @@ void makeG4System(M& m, std::string name){
|
||||
.def("run_gui", &G4System::run_gui)
|
||||
.def("run_batch", &G4System::run_batch, py::arg("nEvents"), py::arg("partSpecies"), py::arg("minEnergy_GeV"), py::arg("maxEnergy_GeV"))
|
||||
.def("run_visualize", &G4System::run_visualize, py::arg("partSpecies"), py::arg("minEnergy_GeV"), py::arg("maxEnergy_GeV"))
|
||||
.def("applyUICommand", &G4System::applyUICommand, py::arg("command"));
|
||||
.def("applyUICommand", &G4System::applyUICommand, py::arg("command"))
|
||||
.def("printMaterial", &G4System::printMaterial, py::arg("name"));
|
||||
}
|
||||
|
||||
PYBIND11_MODULE(minicalo, m) {
|
||||
|
||||
+2
-1
@@ -10,4 +10,5 @@ G4s = G4System()
|
||||
G4s.init(cw)
|
||||
G4s.run_batch(100, "gamma", 1, 5) #100 events, photons, 1000 MeV to 5000 MeV
|
||||
|
||||
G4s.run_visualize("gamma", 1, 5)
|
||||
#G4s.run_visualize("gamma", 1, 5)
|
||||
G4s.printMaterial("G4_Pb")
|
||||
Reference in New Issue
Block a user