163 if 'part' not in dict:
164 checkPart = [
'doNoisyStrip']
166 checkPart = dict[
'part']._value
168 if 'splitHitMap' not in dict:
171 checkSplit = dict[
'splitHitMap']._value
173 if 'prefix' not in dict:
176 checkPrefix=dict[
'prefix']._value
179 if checkPrefix !=
'':
183 if 'doHV' not in checkPart
and checkSplit != 1:
184 parser.add_argument(
'--outputCOOL', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
185 help =
'COOL DB',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'mycool.db'],runarg=
True))
188 if 'doNoisyStrip' in checkPart
and checkSplit == 1:
190 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
191 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
192 parser.add_argument(
'--outputLBFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
193 help =
'LB output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTLB.root'],runarg=
True))
195 if 'doNoisyStrip' in checkPart
and checkSplit != 1:
197 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
198 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
199 parser.add_argument(
'--outputLBFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
200 help =
'LB output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTLB.root'],runarg=
True))
201 parser.add_argument(
'--outputBSSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
202 help =
'Bad Strips summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BadStripsSummaryFile.xml'],runarg=
True))
203 parser.add_argument(
'--outputBSAllFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
204 help =
'Bad Strips All file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BadStripsAllFile.xml'],runarg=
True))
205 parser.add_argument(
'--outputBSNewFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
206 help =
'Bad Strips New file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BadStripsNewFile.xml'],runarg=
True))
208 if 'doHV' in checkPart:
209 parser.add_argument(
'--outputBadModulesFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
210 help =
'Bad Modules file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BadModulesFile.xml'],runarg=
True))
213 if 'doDeadChip' in checkPart
and checkSplit == 1:
214 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
215 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
216 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
217 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
219 if 'doDeadChip' in checkPart
and checkSplit != 1:
220 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
221 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
222 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
223 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
224 parser.add_argument(
'--outputDeadChipFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
225 help =
'Dead Chip file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'DeadChipsFile.xml'],runarg=
True))
226 parser.add_argument(
'--outputDeadSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
227 help =
'Dead Chip Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'DeadSummaryFile.xml'],runarg=
True))
230 if 'doDeadStrip' in checkPart
and checkSplit == 1:
231 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
232 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
233 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
234 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
236 if 'doDeadStrip' in checkPart
and checkSplit != 1:
237 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
238 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
239 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
240 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
241 parser.add_argument(
'--outputDeadStripFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
242 help =
'Dead Strip file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'DeadStripsFile.xml'],runarg=
True))
243 parser.add_argument(
'--outputDeadSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
244 help =
'Dead Strip Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'DeadSummaryFile.xml'],runarg=
True))
247 if 'doQuietChip' in checkPart
and checkSplit == 1:
248 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
249 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
250 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
251 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
253 if 'doQuietChip' in checkPart
and checkSplit != 1:
254 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
255 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
256 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
257 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
258 parser.add_argument(
'--outputDeadChipFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
259 help =
'Dead Chip file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'QuietChipsFile.xml'],runarg=
True))
260 parser.add_argument(
'--outputDeadSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
261 help =
'Dead Chip Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'QuietSummaryFile.xml'],runarg=
True))
264 if 'doQuietStrip' in checkPart
and checkSplit == 1:
265 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
266 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
267 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
268 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
270 if 'doQuietStrip' in checkPart
and checkSplit != 1:
271 parser.add_argument(
'--outputHITMapFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
272 help =
'HitMap output file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTHitMaps.root'],runarg=
True))
273 parser.add_argument(
'--outputBSErrorsFile', type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, runarg=
True,io=
'output'),
274 help =
'BS Errors file',group=
'Calibration',default=trfArgClasses.argNTUPFile([checkPrefix+
'SCTBSErrors.root'],runarg=
True))
275 parser.add_argument(
'--outputDeadStripFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
276 help =
'Dead Strip file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'QuietStripsFile.xml'],runarg=
True))
277 parser.add_argument(
'--outputDeadSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
278 help =
'Dead Strip Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'QuietSummaryFile.xml'],runarg=
True))
281 if 'doNoiseOccupancy' in checkPart:
282 parser.add_argument(
'--outputNOFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
283 help =
'Noise Occupancy file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'NoiseOccupancyFile.xml'],runarg=
True))
284 parser.add_argument(
'--outputNOSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
285 help =
'Noise Occupancy Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'NoiseOccupancySummaryFile.xml'],runarg=
True))
288 if 'doLorentzAngle' in checkPart:
289 parser.add_argument(
'--outputLAFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
290 help =
'Lorentz Angle file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'LorentzAngleFile.xml'],runarg=
True))
291 parser.add_argument(
'--outputLASummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
292 help =
'Lorentz Angle Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'LorentzAngleSummaryFile.xml'],runarg=
True))
295 if 'doRawOccupancy' in checkPart:
296 parser.add_argument(
'--outputROSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
297 help =
'Raw Occupancy Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'RawOccupancySummaryFile.xml'],runarg=
True))
300 if 'doEfficiency' in checkPart:
301 parser.add_argument(
'--outputEffModuleFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
302 help =
'Efficiency file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'EfficiencyModuleSummary.xml'],runarg=
True))
303 parser.add_argument(
'--outputEffSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
304 help =
'Efficiency Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'EfficiencySummaryFile.xml'],runarg=
True))
307 if 'doBSErrorDB' in checkPart:
308 parser.add_argument(
'--outputBSModuleFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
309 help =
'BS Errors Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BSErrorModuleSummary.xml'],runarg=
True))
310 parser.add_argument(
'--outputBSSummaryFile', type=trfArgClasses.argFactory(trfArgClasses.argFile, runarg=
True,io=
'output'),
311 help =
'BS Errors Summary file',group=
'Calibration',default=trfArgClasses.argFile([checkPrefix+
'BSErrorSummaryFile.xml'],runarg=
True))