From 3fb574b9f8dfbde24ee86ff2057fd99fb91c0d53 Mon Sep 17 00:00:00 2001
From: lintao <lintao51@gmail.com>
Date: Sun, 29 Nov 2020 12:01:50 +0800
Subject: [PATCH] WIP: try to use glob to load all slcio files. The current
problem: some slcio files are failed to open.
---
Examples/options/tut_analysis_TotalInvMass.py | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/Examples/options/tut_analysis_TotalInvMass.py b/Examples/options/tut_analysis_TotalInvMass.py
index 8bbdc13c..eb7faebb 100644
--- a/Examples/options/tut_analysis_TotalInvMass.py
+++ b/Examples/options/tut_analysis_TotalInvMass.py
@@ -8,9 +8,14 @@ dsvc = k4DataSvc("EventDataSvc")
# read LCIO files
from Configurables import k4LCIOInput
lcioinput = k4LCIOInput("k4LCIOInput")
-lcioinput.inputs = [
-"/cefs/higgs/yudan/CEPC240/Reco_tpc_1800/qqh/Reco_qqh__00001.slcio"
-]
+
+import glob
+
+# inputlists = ["/cefs/higgs/yudan/CEPC240/Reco_tpc_1800/qqh/Reco_qqh__00001.slcio"]
+inputlists = ["/cefs/higgs/yudan/CEPC240/Reco_tpc_1800/qqh/Reco_qqh__00003.slcio"]
+# inputlists = glob.glob("/cefs/higgs/yudan/CEPC240/Reco_tpc_1800/qqh/Reco_qqh__*.slcio")
+
+lcioinput.inputs = inputlists
lcioinput.collections = [
"MCParticle:MCParticle",
"CalorimeterHit:ECALBarrel",
@@ -36,7 +41,7 @@ from Configurables import ApplicationMgr
ApplicationMgr(
TopAlg = [lcioinput, total_inv_mass],
EvtSel = 'NONE',
- EvtMax = 10,
+ EvtMax = -1,
ExtSvc = [dsvc],
OutputLevel=INFO #DEBUG
)
--
GitLab