1 from __future__
import absolute_import
5 from .
import configTemplates
6 from .genericValidation
import GenericValidationData_CTSR, ParallelValidation, ValidationWithPlots
7 from .helperFunctions
import replaceByMap
8 from .presentation
import SubsectionFromList, SubsectionOnePage
9 from .TkAlExceptions
import AllInOneError
13 configBaseName =
"TkAlOverlapValidation"
14 scriptBaseName =
"TkAlOverlapValidation"
15 crabCfgBaseName =
"TkAlOverlapValidation"
16 resultBaseName =
"OverlapValidation"
17 outputBaseName =
"OverlapValidation"
18 mandatories = {
"trackcollection"}
23 return configTemplates.overlapTemplate
27 return configTemplates.overlapValidationSequence
34 repMap = super(OverlapValidation, self).
getRepMap(alignment)
36 "nEvents": self.
general[
"maxevents"],
37 "TrackCollection": self.
general[
"trackcollection"],
43 if no argument or "" is passed a string with an instantiation is
44 returned, else the validation is appended to the list
51 parameters =
" ".
join(os.path.join(
"root://eoscms//eos/cms", file.lstrip(
"/"))
for file
in repMap[
"resultFiles"])
53 mergedoutputfile = os.path.join(
"root://eoscms//eos/cms", repMap[
"finalResultFile"].lstrip(
"/"))
54 return "hadd -f %s %s" % (mergedoutputfile, parameters)
58 return "TkAlOverlapValidation.py"
62 return configTemplates.overlapPlottingTemplate
66 return "OverlapValidationPlots"
70 return (
"rfcp .oO[plottingscriptpath]Oo. .\n"
71 "python .oO[plottingscriptname]Oo.")