125 if valType ==
"compare":
126 alignmentsList = alignments.split(
"," )
127 firstAlignList = alignmentsList[0].
split()
128 firstAlignName = firstAlignList[0].
strip()
129 if firstAlignName ==
"IDEAL":
130 raise AllInOneError(
"'IDEAL' has to be the second (reference)" 131 " alignment in 'compare <val_name>: " 132 "<alignment> <reference>'.")
133 if len( firstAlignList ) > 1:
134 firstRun = firstAlignList[1]
136 raise AllInOneError(
"Have to provide a run number for geometry comparison")
138 firstAlignName = firstAlign.name
139 secondAlignList = alignmentsList[1].
split()
140 secondAlignName = secondAlignList[0].
strip()
141 if secondAlignName ==
"IDEAL":
142 secondAlign = secondAlignName
144 if len( secondAlignList ) > 1:
145 secondRun = secondAlignList[1]
147 raise AllInOneError(
"Have to provide a run number for geometry comparison")
150 secondAlignName = secondAlign.name
152 validation = GeometryComparison( name, firstAlign, secondAlign,
154 self.__commandLineOptions.getImages)
155 elif valType ==
"offline":
156 validation = OfflineValidation( name,
158 elif valType ==
"preexistingoffline":
159 validation = PreexistingOfflineValidation(name, self.
__config)
160 elif valType ==
"offlineDQM":
161 validation = OfflineValidationDQM( name,
163 elif valType ==
"mcValidate":
164 validation = MonteCarloValidation( name,
166 elif valType ==
"preexistingmcValidate":
167 validation = PreexistingMonteCarloValidation(name, self.
__config)
168 elif valType ==
"split":
169 validation = TrackSplittingValidation( name,
171 elif valType ==
"preexistingsplit":
172 validation = PreexistingTrackSplittingValidation(name, self.
__config)
173 elif valType ==
"zmumu":
174 validation = ZMuMuValidation( name,
176 elif valType ==
"primaryvertex":
179 elif valType ==
"preexistingprimaryvertex":
180 validation = PreexistingPrimaryVertexValidation(name, self.
__config)
182 raise AllInOneError(
"Unknown validation mode '%s'"%valType)
def __getValidation(self, valType, name, alignments, config, options)