diff --git a/benchmarks/calorimeters/options/emcal_barrel_reco.py b/benchmarks/calorimeters/options/emcal_barrel_reco.py deleted file mode 100644 index 37565e42c1162056f1a2d8173dc6af312b42d6c5..0000000000000000000000000000000000000000 --- a/benchmarks/calorimeters/options/emcal_barrel_reco.py +++ /dev/null @@ -1,63 +0,0 @@ -####################################### -# EMCAL Barrel detector Reconstruction -# J.KIM 04/02/2021 -####################################### - -from Gaudi.Configuration import * -import os - -from GaudiKernel.DataObjectHandleBase import DataObjectHandleBase -from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc -from GaudiKernel import SystemOfUnits as units - -detector_name = "topside" -if "JUGGLER_DETECTOR" in os.environ : - detector_name = str(os.environ["JUGGLER_DETECTOR"])+"/"+detector_name - -input_sim_file = "jug_input.root" -if "JUGGLER_SIM_FILE" in os.environ : - input_sim_file = str(os.environ["JUGGLER_SIM_FILE"]) -else : - print(" ERROR : JUGGLER_SIM_FILE not set" ) - -output_rec_file = "jug_rec.root" -if "JUGGLER_REC_FILE" in os.environ : - output_rec_file = str(os.environ["JUGGLER_REC_FILE"]) -else : - print(" ERROR : JUGGLER_REC_FILE not set" ) - -n_events = 100 -if "JUGGLER_N_EVENTS" in os.environ : - n_events = str(os.environ["JUGGLER_N_EVENTS"]) - -geo_service = GeoSvc("GeoSvc", detectors=["{}.xml".format(detector_name)]) -podioevent = EICDataSvc("EventDataSvc", inputs=["sim_output/{}".format(input_sim_file)], OutputLevel=DEBUG) - -from Configurables import PodioInput -from Configurables import Jug__Base__InputCopier_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_ as MCCopier -from Configurables import Jug__Base__InputCopier_dd4pod__CalorimeterHitCollection_dd4pod__CalorimeterHitCollection_ as CalCopier - -podioinput = PodioInput("PodioReader", collections=["mcparticles","EcalBarrelAstroPixHits"], OutputLevel=DEBUG) - -# Thrown Information -copier = MCCopier("MCCopier", - inputCollection="mcparticles", - outputCollection="mcparticles2", - OutputLevel=DEBUG) -# Geant4 Information -embarrelcopier = CalCopier("CalBarrelCopier", - inputCollection="EcalBarrelAstroPixHits", - outputCollection="EcalBarrelAstroPixHits2", - OutputLevel=DEBUG) - -out = PodioOutput("out", filename=output_rec_file) - -out.outputCommands = ["keep *"] - -ApplicationMgr( - TopAlg = [podioinput, copier, embarrelcopier, out], - EvtSel = 'NONE', - EvtMax = n_events, - ExtSvc = [podioevent], - OutputLevel=DEBUG - ) diff --git a/benchmarks/calorimeters/scripts/emcal_barrel_electrons_analysis.cxx b/benchmarks/calorimeters/scripts/emcal_barrel_electrons_analysis.cxx index 8bbbf84569f033d296693e3e74567b207aec00e9..e944518ae24832bc3631d241483dd5da21cf1f52 100644 --- a/benchmarks/calorimeters/scripts/emcal_barrel_electrons_analysis.cxx +++ b/benchmarks/calorimeters/scripts/emcal_barrel_electrons_analysis.cxx @@ -66,9 +66,9 @@ void emcal_barrel_electrons_analysis(const char* input_fname = "sim_output/sim_e }; // Define variables - auto d1 = d0.Define("Ethr", Ethr, {"mcparticles2"}) - .Define("nhits", nhits, {"EcalBarrelAstroPixHits2"}) - .Define("Esim", Esim, {"EcalBarrelAstroPixHits2"}) + auto d1 = d0.Define("Ethr", Ethr, {"mcparticles"}) + .Define("nhits", nhits, {"EcalBarrelAstroPixHits"}) + .Define("Esim", Esim, {"EcalBarrelAstroPixHits"}) .Define("fsam", fsam, {"Esim","Ethr"}) ; diff --git a/benchmarks/calorimeters/scripts/emcal_barrel_pions_analysis.cxx b/benchmarks/calorimeters/scripts/emcal_barrel_pions_analysis.cxx index be1e9b47fa40dfbb1d0923573fdd62393b42dca1..a30ae4c64dcda5d9e35ccc96bfbb7cf5ed7457d3 100644 --- a/benchmarks/calorimeters/scripts/emcal_barrel_pions_analysis.cxx +++ b/benchmarks/calorimeters/scripts/emcal_barrel_pions_analysis.cxx @@ -66,9 +66,9 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal }; // Define variables - auto d1 = d0.Define("Ethr", Ethr, {"mcparticles2"}) - .Define("nhits", nhits, {"EcalBarrelAstroPixHits2"}) - .Define("Esim", Esim, {"EcalBarrelAstroPixHits2"}) + auto d1 = d0.Define("Ethr", Ethr, {"mcparticles"}) + .Define("nhits", nhits, {"EcalBarrelAstroPixHits"}) + .Define("Esim", Esim, {"EcalBarrelAstroPixHits"}) .Define("fsam", fsam, {"Esim","Ethr"}) ;