File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,13 @@ source $ARCUBE_DIR/util/init.inc.sh
2121inName=${ARCUBE_IN_NAME} .${globalIdx}
2222inFile=${ARCUBE_OUTDIR_BASE} /run-ndlar-flow/${ARCUBE_IN_NAME} /FLOW/${subDir} /${inName} .FLOW.hdf5
2323
24+ # Is this data or MC?
25+ isData=1
26+ [ " ${ARCUBE_PANDORA_INPUT_FORMAT} " == " SPMC" ] && isData=0
27+
2428# Convert input HDF5 file to ROOT
2529source $ARCUBE_PANDORA_INSTALL /pandora.venv/bin/activate
26- python3 $ARCUBE_PANDORA_INSTALL /LArRecoND/ndlarflow/h5_to_root_ndlarflow.py $inFile 0 $tmpOutDir
30+ run python3 $ARCUBE_PANDORA_INSTALL /LArRecoND/ndlarflow/h5_to_root_ndlarflow.py $inFile $isData $tmpOutDir
2731deactivate
2832
2933# Move ROOT file from tmpOutDir to output directory
Original file line number Diff line number Diff line change @@ -36,7 +36,19 @@ run ${ARCUBE_PANDORA_INSTALL}/LArRecoND/bin/PandoraInterface -i ${ARCUBE_PANDORA
3636
3737# Move LArRecoND hierarchy analysis ROOT file to output dir
3838tmpAnaOut=${tmpRunDir} /LArRecoND.root
39+ tmpMCHierOut=${tmpRunDir} /MCHierarchy.root
40+ tmpEvtHierOut=${tmpRunDir} /EventHierarchy.root
41+
3942anaOutDir=${outDir} /LAR_RECO_ND/${subDir}
4043anaOutFile=${anaOutDir} /${outName} .LAR_RECO_ND.root
44+ mcHierOutDir=${outDir} /MC_HIER/${subDir}
45+ mcHierOutFile=${mcHierOutDir} /${outName} .MC_HIER.root
46+ evtHierOutDir=${outDir} /EVT_HIER/${subDir}
47+ evtHierOutFile=${evtHierOutDir} /${outName} .EVT_HIER.root
48+
4149mkdir -p ${anaOutDir}
4250mv " ${tmpAnaOut} " " ${anaOutFile} "
51+ mkdir -p ${mcHierOutDir}
52+ mv " ${tmpMCHierOut} " " ${mcHierOutFile} "
53+ mkdir -p ${evtHierOutDir}
54+ mv " ${tmpEvtHierOut} " " ${evtHierOutFile} "
You can’t perform that action at this time.
0 commit comments