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] ...@@ -24,8 +24,8 @@ rndmengine.Seeds = [42]
############################################################################## ##############################################################################
# Event Data Svc # Event Data Svc
############################################################################## ##############################################################################
from Configurables import CEPCDataSvc from Configurables import K4DataSvc
dsvc = CEPCDataSvc("EventDataSvc") dsvc = K4DataSvc("EventDataSvc")
############################################################################## ##############################################################################
...@@ -58,18 +58,19 @@ from Configurables import SLCIORdr ...@@ -58,18 +58,19 @@ from Configurables import SLCIORdr
from Configurables import HepMCRdr from Configurables import HepMCRdr
from Configurables import GenPrinter from Configurables import GenPrinter
# gun = GtGunTool("GtGunTool") gun = GtGunTool("GtGunTool")
# gun.Particles = ["pi+"] gun.Particles = ["pi+"]
# gun.Energies = [100.] # GeV gun.EnergyMins = [100.] # GeV
gun.EnergyMaxs = [100.] # GeV
# gun.ThetaMins = [] # rad; 45deg gun.ThetaMins = [0] # rad; 45deg
# gun.ThetaMaxs = [] # rad; 45deg gun.ThetaMaxs = [180.] # rad; 45deg
# gun.PhiMins = [] # rad; 0deg gun.PhiMins = [0] # rad; 0deg
# gun.PhiMaxs = [] # rad; 360deg gun.PhiMaxs = [360.] # rad; 360deg
stdheprdr = StdHepRdr("StdHepRdr") # stdheprdr = StdHepRdr("StdHepRdr")
stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizard195/bhabha.e0.p0.00001.stdhep" # stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizard195/bhabha.e0.p0.00001.stdhep"
# lciordr = SLCIORdr("SLCIORdr") # 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" # 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 ...@@ -80,8 +81,8 @@ stdheprdr.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizar
genprinter = GenPrinter("GenPrinter") genprinter = GenPrinter("GenPrinter")
genalg = GenAlgo("GenAlgo") genalg = GenAlgo("GenAlgo")
# genalg.GenTools = ["GtGunTool"] genalg.GenTools = ["GtGunTool"]
genalg.GenTools = ["StdHepRdr"] # genalg.GenTools = ["StdHepRdr"]
# genalg.GenTools = ["StdHepRdr", "GenPrinter"] # genalg.GenTools = ["StdHepRdr", "GenPrinter"]
# genalg.GenTools = ["SLCIORdr", "GenPrinter"] # genalg.GenTools = ["SLCIORdr", "GenPrinter"]
# genalg.GenTools = ["HepMCRdr", "GenPrinter"] # genalg.GenTools = ["HepMCRdr", "GenPrinter"]
......
...@@ -115,7 +115,7 @@ AnExampleDetElemTool::ConstructSDandField() { ...@@ -115,7 +115,7 @@ AnExampleDetElemTool::ConstructSDandField() {
if (g4sd == nullptr) { if (g4sd == nullptr) {
std::string tmp = typ; std::string tmp = typ;
tmp[0] = ::toupper(tmp[0]); tmp[0] = ::toupper(tmp[0]);
typ = "Geant4CEPC" + tmp; typ = "Geant4" + tmp;
g4sd = dd4hep::PluginService::Create<G4VSensitiveDetector*>(typ, nam, lcdd); g4sd = dd4hep::PluginService::Create<G4VSensitiveDetector*>(typ, nam, lcdd);
if (g4sd == nullptr) { if (g4sd == nullptr) {
dd4hep::PluginDebug dbg; 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