Skip to content

Commit

Permalink
More expert options for CSC TP producer and analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Dildick committed Jul 2, 2021
1 parent 05dbb7f commit 7d544cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
if options.B904Setup and options.B904RunNumber == "YYMMDD_HHMMSS":
sys.exit("B904 setup was selected. Please provide a valid Run Number")

if (not options.B904Setup) and int(options.runNumber) == 0:
sys.exit("Please provide a valid CMS Run Number")

process = cms.Process("ANALYSIS", Run3)
process.load("FWCore.MessageService.MessageLogger_cfi")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
options.register ("saveEdmOutput", True, VarParsing.multiplicity.singleton, VarParsing.varType.bool)
options.register ("preTriggerAnalysis", False, VarParsing.multiplicity.singleton, VarParsing.varType.bool)
options.register ("dropNonMuonCollections", True, VarParsing.multiplicity.singleton, VarParsing.varType.bool)
options.register ("dqmOutputFile", "step_DQM.root", VarParsing.multiplicity.singleton, VarParsing.varType.string)
options.parseArguments()

process_era = Run3
Expand Down Expand Up @@ -123,7 +124,7 @@
dataTier = cms.untracked.string('DQMIO'),
filterName = cms.untracked.string('')
),
fileName = cms.untracked.string('file:step_DQM.root'),
fileName = cms.untracked.string('file:{}'.format(options.dqmOutputFile)),
outputCommands = process.DQMEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
Expand Down

0 comments on commit 7d544cf

Please sign in to comment.