3 from genericValidation
import GenericValidationData_CTSR, ParallelValidation, ValidationForPresentation, ValidationWithPlotsSummary
4 from helperFunctions
import replaceByMap
5 from presentation
import SubsectionFromList, SubsectionOnePage
6 from TkAlExceptions
import AllInOneError
10 configBaseName =
"TkAlTrackSplitting" 11 scriptBaseName =
"TkAlTrackSplitting" 12 crabCfgBaseName =
"TkAlTrackSplitting" 13 resultBaseName =
"TrackSplitting" 14 outputBaseName =
"TrackSplitting" 15 mandatories = {
"trackcollection"}
20 return configTemplates.TrackSplittingTemplate
24 return configTemplates.TrackSplittingSequence
31 return super(TrackSplittingValidation, self).
createScript(path)
37 repMap = super(TrackSplittingValidation, self).
getRepMap()
38 if repMap[
"subdetector"] ==
"none":
41 subdetselection =
"process.AlignmentTrackSelector.minHitsPerSubDet.in.oO[subdetector]Oo. = 2" 43 "nEvents": self.
general[
"maxevents"],
44 "TrackCollection": self.
general[
"trackcollection"],
45 "subdetselection": subdetselection,
54 if no argument or "" is passed a string with an instantiation is 55 returned, else the validation is appended to the list 59 return ' "{},"'.
format(comparestring)
64 parameters =
" ".
join(os.path.join(
"root://eoscms//eos/cms", file.lstrip(
"/"))
for file
in repMap[
"resultFiles"])
66 mergedoutputfile = os.path.join(
"root://eoscms//eos/cms", repMap[
"finalResultFile"].lstrip(
"/"))
67 return "hadd -f %s %s" % (mergedoutputfile, parameters)
71 return "TkAlTrackSplitPlot.C" 75 return configTemplates.trackSplitPlotTemplate
79 return "TrackSplittingPlots" 91 (
"hist[.]Delta_pt",
"$p_T$"),
92 (
"hist[.]Delta_(eta|phi)",
"Angles"),
93 (
"hist[.]Delta_d(xy|z)",
"Vertex"),
def plottingscripttemplate(cls)
def createScript(self, path)
def ValidationSequence(self)
def ValidationTemplate(self)
def presentationsubsections(cls)
def createCrabCfg(self, path)
static std::string join(char **cmd)
def getRepMap(self, alignment=None)
def plottingscriptname(cls)
def getRepMap(self, alignment=None)
def getCompareStrings(self, requestId=None, plain=False)