2 from genericValidation
import GenericValidation, GenericValidationData
3 from geometryComparison
import GeometryComparison
4 from helperFunctions
import boolfromstring, getCommandOutput2, parsecolor, parsestyle
5 from monteCarloValidation
import MonteCarloValidation
6 from offlineValidation
import OfflineValidation
7 from primaryVertexValidation
import PrimaryVertexValidation
8 from plottingOptions
import PlottingOptions
9 from TkAlExceptions
import AllInOneError
10 from trackSplittingValidation
import TrackSplittingValidation
11 from zMuMuValidation
import ZMuMuValidation
15 Object representing a validation that has already been run, 16 but should be included in plots. 18 defaults = {
"title":
".oO[name]Oo."}
19 mandatories = {
"file",
"color",
"style"}
20 removemandatories = {
"dataset",
"maxevents",
"trackcollection"}
26 theUpdate = config.getResultingSection(
"preexisting"+self.valType+
":"+self.
name,
29 self.general.update(theUpdate)
33 msg =
"The characters '|', '\"', and ',' cannot be used in the alignment title!" 40 if "is not found" in output:
raise RuntimeError
46 config.checkInput(
"preexisting"+self.valType+
":"+self.
name,
47 knownSimpleOptions = knownOpts,
48 ignoreOptions = ignoreOpts)
78 raise AllInOneError(
"Shouldn't be here...")
83 deprecateddefaults = {
87 "OfflineTreeBaseDir":
"",
90 defaults = deprecateddefaults.copy()
92 super(PreexistingOfflineValidation, self).
__init__(valName, config)
95 raise AllInOneError(
"The '%s' option has been moved to the [plots:offline] section. Please specify it there."%option)
98 result = super(PreexistingOfflineValidation, self).
getRepMap()
100 "filetoplot": self.
general[
"file"],
108 removemandatories = {
"isda",
"ismc",
"runboundary",
"vertexcollection",
"lumilist",
"ptCut",
"etaCut",
"runControl",
"numberOfBins"}
110 result = super(PreexistingPrimaryVertexValidation, self).
getRepMap()
112 "filetoplot": self.
general[
"file"],
126 class PreexistingZMuMuValidation(PreexistingValidation):
128 raise AllInOneError(
"Preexisting Z->mumu validation not implemented")
133 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 appendToMerge(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 boolfromstring(string, name)
def __init__(self, args, kwargs)
def __init__(self, valName, config)
def appendToMerge(self, args, kwargs)