Skip to content

Commit

Permalink
Merge pull request #42132 from syuvivida/CMSSW_13_0_X
Browse files Browse the repository at this point in the history
[13_0_X] Online DQM: replace the hard-coded output directory name of event display clients with an input argument, backport of 41986 and 42128
  • Loading branch information
cmsbuild authored Jul 8, 2023
2 parents 1ba05df + 9a024fe commit baf8989
Show file tree
Hide file tree
Showing 4 changed files with 29 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
14 changes: 14 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,20 @@
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
# this additional input argument was added in the hltd framework
# only for the visualization clients
# Note, the other clients do not use this input parameter

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
13 changes: 13 additions & 0 deletions DQM/Integration/python/config/pbsource_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@
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
# this additional input argument was added in the hltd framework
# only for the visualization clients
# Note, the other clients do not use this input parameter

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 baf8989

Please sign in to comment.