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

Implemented option to run jobs in parallel for PV validation #24906

Merged
merged 2 commits into from Oct 24, 2018
Merged
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
@@ -1,11 +1,11 @@
import os
import configTemplates
import globalDictionaries
from genericValidation import GenericValidationData_CTSR, ValidationWithPlots, pythonboolstring
from genericValidation import GenericValidationData_CTSR, ParallelValidation, ValidationWithPlots, pythonboolstring
from helperFunctions import replaceByMap
from TkAlExceptions import AllInOneError

class PrimaryVertexValidation(GenericValidationData_CTSR, ValidationWithPlots):
class PrimaryVertexValidation(GenericValidationData_CTSR, ParallelValidation, ValidationWithPlots):
configBaseName = "TkAlPrimaryVertexValidation"
scriptBaseName = "TkAlPrimaryVertexValidation"
crabCfgBaseName = "TkAlPrimaryVertexValidation"
Expand All @@ -28,10 +28,7 @@ def __init__(self, valName, alignment, config):

if self.general["pvvalidationreference"].startswith("/store"):
self.general["pvvalidationreference"] = "root://eoscms//eos/cms" + self.general["pvvalidationreference"]
if self.NJobs > 1:
raise AllInOneError("Parallel jobs not implemented for the PrimaryVertex validation!\n"
"Please set parallelJobs = 1.")


@property
def ValidationTemplate(self):
return configTemplates.PrimaryVertexValidationTemplate
Expand Down