1 from __future__
import absolute_import
3 from .
import configTemplates
4 from .genericValidation
import GenericValidationData_CTSR, ParallelValidation, ValidationForPresentation, ValidationWithPlotsSummary
5 from .helperFunctions
import replaceByMap
6 from .presentation
import SubsectionFromList, SubsectionOnePage
7 from .TkAlExceptions
import AllInOneError
11 configBaseName =
"TkAlTrackSplitting" 12 scriptBaseName =
"TkAlTrackSplitting" 13 crabCfgBaseName =
"TkAlTrackSplitting" 14 resultBaseName =
"TrackSplitting" 15 outputBaseName =
"TrackSplitting" 16 mandatories = {
"trackcollection"}
21 return configTemplates.TrackSplittingTemplate
25 return configTemplates.TrackSplittingSequence
32 return super(TrackSplittingValidation, self).
createScript(path)
38 repMap = super(TrackSplittingValidation, self).
getRepMap(alignment)
39 if repMap[
"subdetector"] ==
"none":
42 subdetselection =
"process.AlignmentTrackSelector.minHitsPerSubDet.in.oO[subdetector]Oo. = 2" 44 "nEvents": self.
general[
"maxevents"],
45 "TrackCollection": self.
general[
"trackcollection"],
46 "subdetselection": subdetselection,
55 if no argument or "" is passed a string with an instantiation is 56 returned, else the validation is appended to the list 60 return ' "{},"'.
format(comparestring)
65 parameters =
" ".
join(os.path.join(
"root://eoscms//eos/cms", file.lstrip(
"/"))
for file
in repMap[
"resultFiles"])
67 mergedoutputfile = os.path.join(
"root://eoscms//eos/cms", repMap[
"finalResultFile"].lstrip(
"/"))
68 return "hadd -f %s %s" % (mergedoutputfile, parameters)
72 return "TkAlTrackSplitPlot.C" 76 return configTemplates.trackSplitPlotTemplate
80 return "TrackSplittingPlots" 92 (
"hist[.]Delta_pt",
"$p_T$"),
93 (
"hist[.]Delta_(eta|phi)",
"Angles"),
94 (
"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)