Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1 from pmandrik/FFF_DQMTOOLS_V1
Browse files Browse the repository at this point in the history
Add run_unique_key to .global files in simulation
  • Loading branch information
jfernan2 authored May 18, 2021
2 parents c51eec3 + 1cc84ec commit 2bdd472
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion applets/fff_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,18 @@ def create_run_directory(self):

def create_global_file(self):
# Creates the hidden .run*.global run file on the ramdisk.
# run_unique_key value - https://github.com/cms-sw/cmssw/pull/33644#issuecomment-840511487
# like self.config["run_unique_key"] = '4e94e771-add6-41be-8683-c5f6a7a9ed1f'
file_name = '.run%d.global' % self.config["run"]
full_name = os.path.join(self.config["ramdisk"], file_name)

atomic_write(full_name, 'run_key = %s' % self.config["run_key"])
run_unique_key = '4e94e771-add6-41be-8683-c5f6a7a9ed1f'
if "run_unique_key" in self.config : run_unique_key = self.config["run_unique_key"]

body = 'run_key = %s\n' % self.config["run_key"]
body += 'run_unique_key = %s\n' % run_unique_key

atomic_write(full_name, body)
log.info('Created hidden .global run file %s' % full_name)

def create_eor(self):
Expand Down
1 change: 1 addition & 0 deletions misc/fff_simulator_dqmtools.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"source": "/fff/output/playback_files/run256936/",
"ramdisk": "/fff/ramdisk/",
"run_key": "pp_run",
"run_unique_key": "4e94e771-add6-41be-8683-c5f6a7a9ed1X",
"lumi_timeout": 23.4,
"lumi_to_skip": [3, 4],
"number_of_ls": 1500,
Expand Down

0 comments on commit 2bdd472

Please sign in to comment.