91 def __getValidation( self, valType, name, alignments, config, options ):
92 if valType ==
"compare":
93 alignmentsList = alignments.split(
"," )
94 firstAlignList = alignmentsList[0].
split()
95 firstAlignName = firstAlignList[0].strip()
96 if firstAlignName ==
"IDEAL":
97 raise AllInOneError(
"'IDEAL' has to be the second (reference)"
98 " alignment in 'compare <val_name>: "
99 "<alignment> <reference>'.")
100 if len( firstAlignList ) > 1:
101 firstRun = firstAlignList[1]
105 firstAlignName = firstAlign.name
106 secondAlignList = alignmentsList[1].
split()
107 secondAlignName = secondAlignList[0].strip()
108 if len( secondAlignList ) > 1:
109 secondRun = secondAlignList[1]
112 if secondAlignName ==
"IDEAL":
113 secondAlign = secondAlignName
117 secondAlignName = secondAlign.name
119 validation = GeometryComparison( name, firstAlign, secondAlign,
121 self.__commandLineOptions.getImages)
122 elif valType ==
"offline":
123 validation = OfflineValidation( name,
125 elif valType ==
"preexistingoffline":
126 validation = PreexistingOfflineValidation(name, self.
__config)
127 elif valType ==
"offlineDQM":
128 validation = OfflineValidationDQM( name,
130 elif valType ==
"mcValidate":
131 validation = MonteCarloValidation( name,
133 elif valType ==
"preexistingmcValidate":
134 validation = PreexistingMonteCarloValidation(name, self.
__config)
135 elif valType ==
"split":
136 validation = TrackSplittingValidation( name,
138 elif valType ==
"preexistingsplit":
139 validation = PreexistingTrackSplittingValidation(name, self.
__config)
140 elif valType ==
"zmumu":
141 validation = ZMuMuValidation( name,
144 raise AllInOneError(
"Unknown validation mode '%s'"%valType)