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