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