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 defaults = {
"multiIOV":
"False"}
17 mandatories = {
"trackcollection"}
22 return configTemplates.TrackSplittingTemplate
26 return configTemplates.TrackSplittingSequence
33 return super(TrackSplittingValidation, self).
createScript(path)
39 repMap = super(TrackSplittingValidation, self).
getRepMap(alignment)
40 if repMap[
"subdetector"] ==
"none":
43 subdetselection =
"process.AlignmentTrackSelector.minHitsPerSubDet.in.oO[subdetector]Oo. = 2" 45 "nEvents": self.
general[
"maxevents"],
46 "TrackCollection": self.
general[
"trackcollection"],
47 "subdetselection": subdetselection,
56 if no argument or "" is passed a string with an instantiation is 57 returned, else the validation is appended to the list 61 return ' "{},"'.
format(comparestring)
66 parameters =
" ".
join(os.path.join(
"root://eoscms//eos/cms", file.lstrip(
"/"))
for file
in repMap[
"resultFiles"])
68 mergedoutputfile = os.path.join(
"root://eoscms//eos/cms", repMap[
"finalResultFile"].lstrip(
"/"))
69 return "hadd -f %s %s" % (mergedoutputfile, parameters)
73 return "TkAlTrackSplitPlot.C" 77 return configTemplates.trackSplitPlotTemplate
81 return "TrackSplittingPlots" 93 (
"hist[.]Delta_pt",
"$p_T$"),
94 (
"hist[.]Delta_(eta|phi)",
"Angles"),
95 (
"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)