124 if valType ==
"compare":
125 alignmentsList = alignments.split(
"," )
126 firstAlignList = alignmentsList[0].
split()
127 firstAlignName = firstAlignList[0].
strip()
128 if firstAlignName ==
"IDEAL":
129 raise AllInOneError(
"'IDEAL' has to be the second (reference)" 130 " alignment in 'compare <val_name>: " 131 "<alignment> <reference>'.")
132 if len( firstAlignList ) > 1:
133 firstRun = firstAlignList[1]
137 firstAlignName = firstAlign.name
138 secondAlignList = alignmentsList[1].
split()
139 secondAlignName = secondAlignList[0].
strip()
140 if len( secondAlignList ) > 1:
141 secondRun = secondAlignList[1]
144 if secondAlignName ==
"IDEAL":
145 secondAlign = secondAlignName
149 secondAlignName = secondAlign.name
151 validation = GeometryComparison( name, firstAlign, secondAlign,
153 self.__commandLineOptions.getImages)
154 elif valType ==
"offline":
155 validation = OfflineValidation( name,
157 elif valType ==
"preexistingoffline":
158 validation = PreexistingOfflineValidation(name, self.
__config)
159 elif valType ==
"offlineDQM":
160 validation = OfflineValidationDQM( name,
162 elif valType ==
"mcValidate":
163 validation = MonteCarloValidation( name,
165 elif valType ==
"preexistingmcValidate":
166 validation = PreexistingMonteCarloValidation(name, self.
__config)
167 elif valType ==
"split":
168 validation = TrackSplittingValidation( name,
170 elif valType ==
"preexistingsplit":
171 validation = PreexistingTrackSplittingValidation(name, self.
__config)
172 elif valType ==
"zmumu":
173 validation = ZMuMuValidation( name,
175 elif valType ==
"primaryvertex":
178 elif valType ==
"preexistingprimaryvertex":
179 validation = PreexistingPrimaryVertexValidation(name, self.
__config)
181 raise AllInOneError(
"Unknown validation mode '%s'"%valType)
def __getValidation(self, valType, name, alignments, config, options)