Skip to content
Snippets Groups Projects
Commit 3527359b authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: fixed the scripts and reuse the DD4hep Tracker SD.

parent 2e589041
No related branches found
No related tags found
No related merge requests found
......@@ -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"]
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment