93 def __getValidation( self, valType, name, alignments, config, options ):
94 if valType ==
"compare":
95 alignmentsList = alignments.split(
"," )
96 firstAlignList = alignmentsList[0].
split()
97 firstAlignName = firstAlignList[0].strip()
98 if firstAlignName ==
"IDEAL":
99 raise AllInOneError(
"'IDEAL' has to be the second (reference)"
100 " alignment in 'compare <val_name>: "
101 "<alignment> <reference>'.")
102 if len( firstAlignList ) > 1:
103 firstRun = firstAlignList[1]
107 firstAlignName = firstAlign.name
108 secondAlignList = alignmentsList[1].
split()
109 secondAlignName = secondAlignList[0].strip()
110 if len( secondAlignList ) > 1:
111 secondRun = secondAlignList[1]
114 if secondAlignName ==
"IDEAL":
115 secondAlign = secondAlignName
119 secondAlignName = secondAlign.name
121 validation = GeometryComparison( name, firstAlign, secondAlign,
123 self.__commandLineOptions.getImages)
124 elif valType ==
"offline":
125 validation = OfflineValidation( name,
127 elif valType ==
"preexistingoffline":
128 validation = PreexistingOfflineValidation(name, self.
__config)
129 elif valType ==
"offlineDQM":
130 validation = OfflineValidationDQM( name,
132 elif valType ==
"mcValidate":
133 validation = MonteCarloValidation( name,
135 elif valType ==
"preexistingmcValidate":
136 validation = PreexistingMonteCarloValidation(name, self.
__config)
137 elif valType ==
"split":
138 validation = TrackSplittingValidation( name,
140 elif valType ==
"preexistingsplit":
141 validation = PreexistingTrackSplittingValidation(name, self.
__config)
142 elif valType ==
"zmumu":
143 validation = ZMuMuValidation( name,
146 raise AllInOneError(
"Unknown validation mode '%s'"%valType)