Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dqmio option to promptReco and harvesting scripts #7328

Merged
merged 1 commit into from
Jan 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions Configuration/DataProcessing/test/RunDQMHarvesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self):
self.run = None
self.globalTag = 'UNSPECIFIED::All'
self.inputLFN = None
self.dqmio = None

def __call__(self):
if self.scenario == None:
Expand Down Expand Up @@ -56,8 +57,12 @@ def __call__(self):


try:
kwds = {}
if not self.dqmio is None:
kwds['newDQMIO'] = self.dqmio

process = scenario.dqmHarvesting(self.dataset, self.run,
self.globalTag)
self.globalTag, **kwds)

except Exception, ex:
msg = "Error creating Harvesting config:\n"
Expand All @@ -78,7 +83,7 @@ def __call__(self):

if __name__ == '__main__':
valid = ["scenario=", "run=", "dataset=",
"global-tag=", "lfn="]
"global-tag=", "lfn=", "dqmio"]
usage = """RunDQMHarvesting.py <options>"""
try:
opts, args = getopt.getopt(sys.argv[1:], "", valid)
Expand All @@ -101,5 +106,7 @@ def __call__(self):
harvester.run = arg
if opt == "--dataset":
harvester.dataset = arg
if opt == "--dqmio":
harvester.dqmio = True

harvester()
9 changes: 8 additions & 1 deletion Configuration/DataProcessing/test/RunPromptReco.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(self):
self.writeAlcareco = False
self.writeAod = False
self.writeDqm = False
self.writeDqmio = False
self.noOutput = False
self.globalTag = None
self.inputLFN = None
Expand Down Expand Up @@ -62,6 +63,9 @@ def __call__(self):
if self.writeDqm:
dataTiers.append("DQM")
print "Configuring to Write out Dqm..."
if self.writeDqmio:
dataTiers.append("DQMIO")
print "Configuring to Write out Dqmio..."

try:
if self.noOutput:
Expand Down Expand Up @@ -96,7 +100,7 @@ def __call__(self):


if __name__ == '__main__':
valid = ["scenario=", "reco", "alcareco", "aod", "dqm",
valid = ["scenario=", "reco", "alcareco", "aod", "dqm", "dqmio",
"no-output", "global-tag=", "lfn="]
usage = \
"""
Expand All @@ -108,6 +112,7 @@ def __call__(self):
--alcareco (to enable ALCARECO output)
--aod (to enable AOD output)
--dqm (to enable DQM output)
--dqmio (to enable DQMIO output)
--no-output (create config with no output, overrides other settings)
--global-tag=GlobalTag
--lfn=/store/input/lfn
Expand Down Expand Up @@ -138,6 +143,8 @@ def __call__(self):
recoinator.writeAod = True
if opt == "--dqm":
recoinator.writeDqm = True
if opt == "--dqmio":
recoinator.writeDqmio = True
if opt == "--no-output":
recoinator.noOutput = True
if opt == "--global-tag":
Expand Down