Skip to content

Commit

Permalink
replace the hard-coded output directory name with an input argument
Browse files Browse the repository at this point in the history
  • Loading branch information
syuvivida committed Jun 15, 2023
1 parent e0f88d0 commit e472f88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

m = re.search(r"\((\w+)\)", str(source.runNumber))
runno = str(m.group(1))
outDir= '/fff/BU0/output/EvD/run'+runno+'/streamEvDOutput2'
outDir= options.outputBaseDir+'/EvD/run'+runno+'/streamEvDOutput2'
else:
runno = options.runNumber
outDir = "./upload"
Expand Down
2 changes: 1 addition & 1 deletion DQM/Integration/python/clients/visualization-live_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

m = re.search(r"\((\w+)\)", str(source.runNumber))
runno = str(m.group(1))
outDir= '/fff/BU0/output/EvD/run'+runno+'/streamEvDOutput'
outDir= options.outputBaseDir+'/EvD/run'+runno+'/streamEvDOutput'
else:
runno = options.runNumber
outDir = "./upload"
Expand Down
11 changes: 11 additions & 0 deletions DQM/Integration/python/config/inputsource_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@
VarParsing.VarParsing.varType.string,
"Unique run key from RCMS for Frontier")

# Parameter for output directory of the event display clients
# visualization-live and visualization-live-secondInstance

options.register('outputBaseDir',
'/fff/BU0/output',
VarParsing.VarParsing.multiplicity.singleton,
VarParsing.VarParsing.varType.string,
"Directory where the visualization output files will appear.")



options.parseArguments()

# Fix to allow scram to compile
Expand Down

0 comments on commit e472f88

Please sign in to comment.