1 from __future__
import absolute_import
3 from .genericValidation
import GenericValidation, GenericValidationData
4 from .geometryComparison
import GeometryComparison
5 from .helperFunctions
import boolfromstring, getCommandOutput2, parsecolor, parsestyle
6 from .monteCarloValidation
import MonteCarloValidation
7 from .offlineValidation
import OfflineValidation
8 from .primaryVertexValidation
import PrimaryVertexValidation
9 from .plottingOptions
import PlottingOptions
10 from .TkAlExceptions
import AllInOneError
11 from .trackSplittingValidation
import TrackSplittingValidation
12 from .zMuMuValidation
import ZMuMuValidation
16 Object representing a validation that has already been run, 17 but should be included in plots. 19 defaults = {
"title":
".oO[name]Oo."}
20 mandatories = {
"file",
"color",
"style"}
21 removemandatories = {
"dataset",
"maxevents",
"trackcollection"}
27 theUpdate = config.getResultingSection(
"preexisting"+self.valType+
":"+self.
name,
30 self.general.update(theUpdate)
34 msg =
"The characters '|', '\"', and ',' cannot be used in the alignment title!" 41 if "is not found" in output:
raise RuntimeError
47 config.checkInput(
"preexisting"+self.valType+
":"+self.
name,
48 knownSimpleOptions = knownOpts,
49 ignoreOptions = ignoreOpts)
79 raise AllInOneError(
"Shouldn't be here...")
84 deprecateddefaults = {
88 "OfflineTreeBaseDir":
"",
91 defaults = deprecateddefaults.copy()
93 super(PreexistingOfflineValidation, self).
__init__(valName, config)
96 raise AllInOneError(
"The '%s' option has been moved to the [plots:offline] section. Please specify it there."%option)
99 result = super(PreexistingOfflineValidation, self).
getRepMap()
101 "filetoplot": self.
general[
"file"],
109 removemandatories = {
"isda",
"ismc",
"runboundary",
"vertexcollection",
"lumilist",
"ptCut",
"etaCut",
"runControl",
"numberOfBins"}
111 result = super(PreexistingPrimaryVertexValidation, self).
getRepMap()
113 "filetoplot": self.
general[
"file"],
127 class PreexistingZMuMuValidation(PreexistingValidation):
129 raise AllInOneError(
"Preexisting Z->mumu validation not implemented")
134 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)