diff --git a/Examples/options/tut_detsim.py b/Examples/options/tut_detsim.py index 6750292727e27d2c0f61da05ff99a1e29dd395e6..3c9071ed5e8580691c2d7412e9478feb83500ea9 100644 --- a/Examples/options/tut_detsim.py +++ b/Examples/options/tut_detsim.py @@ -24,8 +24,8 @@ rndmengine.Seeds = [42] ############################################################################## # Event Data Svc ############################################################################## -from Configurables import CEPCDataSvc -dsvc = CEPCDataSvc("EventDataSvc") +from Configurables import K4DataSvc +dsvc = K4DataSvc("EventDataSvc") ############################################################################## @@ -58,18 +58,19 @@ from Configurables import SLCIORdr from Configurables import HepMCRdr from Configurables import GenPrinter -# gun = GtGunTool("GtGunTool") -# gun.Particles = ["pi+"] -# gun.Energies = [100.] # GeV +gun = GtGunTool("GtGunTool") +gun.Particles = ["pi+"] +gun.EnergyMins = [100.] # GeV +gun.EnergyMaxs = [100.] # GeV -# gun.ThetaMins = [] # rad; 45deg -# gun.ThetaMaxs = [] # rad; 45deg +gun.ThetaMins = [0] # rad; 45deg +gun.ThetaMaxs = [180.] # rad; 45deg -# gun.PhiMins = [] # rad; 0deg -# gun.PhiMaxs = [] # rad; 360deg +gun.PhiMins = [0] # rad; 0deg +gun.PhiMaxs = [360.] # rad; 360deg -stdheprdr = StdHepRdr("StdHepRdr") -stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizard195/bhabha.e0.p0.00001.stdhep" +# stdheprdr = StdHepRdr("StdHepRdr") +# stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizard195/bhabha.e0.p0.00001.stdhep" # lciordr = SLCIORdr("SLCIORdr") # lciordr.Input = "/cefs/data/stdhep/lcio250/signal/Higgs/E250.Pbbh.whizard195/E250.Pbbh_X.e0.p0.whizard195/Pbbh_X.e0.p0.00001.slcio" @@ -80,8 +81,8 @@ stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizar genprinter = GenPrinter("GenPrinter") genalg = GenAlgo("GenAlgo") -# genalg.GenTools = ["GtGunTool"] -genalg.GenTools = ["StdHepRdr"] +genalg.GenTools = ["GtGunTool"] +# genalg.GenTools = ["StdHepRdr"] # genalg.GenTools = ["StdHepRdr", "GenPrinter"] # genalg.GenTools = ["SLCIORdr", "GenPrinter"] # genalg.GenTools = ["HepMCRdr", "GenPrinter"] diff --git a/Simulation/DetSimGeom/src/AnExampleDetElemTool.cpp b/Simulation/DetSimGeom/src/AnExampleDetElemTool.cpp index bca46749eeaee5453f6dbf9f65581338eac51388..ff31cdf11c5cf4167272597d227ea9c58a0f997e 100644 --- a/Simulation/DetSimGeom/src/AnExampleDetElemTool.cpp +++ b/Simulation/DetSimGeom/src/AnExampleDetElemTool.cpp @@ -115,7 +115,7 @@ AnExampleDetElemTool::ConstructSDandField() { if (g4sd == nullptr) { std::string tmp = typ; tmp[0] = ::toupper(tmp[0]); - typ = "Geant4CEPC" + tmp; + typ = "Geant4" + tmp; g4sd = dd4hep::PluginService::Create<G4VSensitiveDetector*>(typ, nam, lcdd); if (g4sd == nullptr) { dd4hep::PluginDebug dbg;