2 from genericValidation
import GenericValidation, GenericValidationData
3 from geometryComparison
import GeometryComparison
4 from helperFunctions
import getCommandOutput2, parsecolor, parsestyle
5 from monteCarloValidation
import MonteCarloValidation
6 from offlineValidation
import OfflineValidation
7 from plottingOptions
import PlottingOptions
8 from TkAlExceptions
import AllInOneError
9 from trackSplittingValidation
import TrackSplittingValidation
10 from zMuMuValidation
import ZMuMuValidation
14 Object representing a validation that has already been run, 15 but should be included in plots. 17 defaults = {
"title":
".oO[name]Oo."}
18 mandatories = {
"file",
"color",
"style"}
19 removemandatories = {
"dataset",
"maxevents",
"trackcollection"}
25 theUpdate = config.getResultingSection(
"preexisting"+self.valType+
":"+self.
name,
28 self.general.update(theUpdate)
32 msg =
"The characters '|', '\"', and ',' cannot be used in the alignment title!" 39 if "is not found" in output:
raise RuntimeError
45 config.checkInput(
"preexisting"+self.valType+
":"+self.
name,
46 knownSimpleOptions = knownOpts,
47 ignoreOptions = ignoreOpts)
77 raise AllInOneError(
"Shouldn't be here...")
82 deprecateddefaults = {
86 "OfflineTreeBaseDir":
"",
89 defaults = deprecateddefaults.copy()
91 super(PreexistingOfflineValidation, self).
__init__(valName, config)
94 raise AllInOneError(
"The '%s' option has been moved to the [plots:offline] section. Please specify it there."%option)
97 result = super(PreexistingOfflineValidation, self).
getRepMap()
99 "filetoplot": self.
general[
"file"],
113 class PreexistingZMuMuValidation(PreexistingValidation):
115 raise AllInOneError(
"Preexisting Z->mumu validation not implemented")
120 raise AllInOneError(
"Preexisting geometry comparison not implemented")
def __init__(self, valName, config)
def getCommandOutput2(command)
def __init__(self, args, kwargs)
def createConfiguration(self, args, kwargs)
def createScript(self, args, kwargs)
def createFiles(self, args, kwargs)
def appendToMerge(self, args, kwargs)
def createCrabCfg(self, args, kwargs)
def PlottingOptions(config, valType)
dictionary deprecateddefaults
string defaultReferenceName
def __init__(self, args, kwargs)
def __init__(self, valName, config)
def appendToMerge(self, args, kwargs)