475 bsNtFileName = self.getFileName(
'-nt.root',
'BeamSpotNt')
476 dumpFileName = self.getFileName(
'-data.txt')
477 outFileNameLbGIF = self.getFileName(
'-vsLb.gif')
478 outFileNameLbPDF = self.getFileName(
'-vsLb.pdf')
479 outFileNameTimeGIF = self.getFileName(
'-vsTime.gif')
480 outFileNameTimePDF = self.getFileName(
'-vsTime.pdf')
481 outFileNameBCIDGIF = self.getFileName(
'-vsBCID.gif')
482 outFileNameBCIDPDF = self.getFileName(
'-vsBCID.pdf')
483 outFileNameTrainGIF = self.getFileName(
'-vsBunchPos.gif')
484 outFileNameTrainPDF = self.getFileName(
'-vsBunchPos.pdf')
485 if os.path.exists(
'/'.
join([self.taskDir,bsNtFileName])):
486 self.logExec(
"cd %s; rm -f %s; beamspotnt.py -v -f %s dump > %s" % (self.taskDir,dumpFileName,bsNtFileName,dumpFileName))
487 self.addResult(dumpFileName)
488 self.logExec(
"cd %s; beamspotnt.py --batch -o %s,%s -f %s summary" % (self.taskDir,outFileNameLbGIF,outFileNameLbPDF,bsNtFileName))
489 self.addResult(outFileNameLbGIF)
490 self.addResult(outFileNameLbPDF)
491 self.logExec(
"cd %s; beamspotnt.py --batch --time -o %s,%s -f %s summary" % (self.taskDir,outFileNameTimeGIF,outFileNameTimePDF,bsNtFileName))
492 self.addResult(outFileNameTimeGIF)
493 self.addResult(outFileNameTimePDF)
494 self.logExec(
"cd %s; beamspotnt.py --batch -m 0.2 --perbcid -o %s,%s -f %s summary" % (self.taskDir,outFileNameBCIDGIF,outFileNameBCIDPDF,bsNtFileName))
495 self.addResult(outFileNameBCIDGIF)
496 self.addResult(outFileNameBCIDPDF)
497 self.logExec(
"cd %s; beamspotnt.py --batch --vsbunchpos -o %s,%s -f %s summary" % (self.taskDir,outFileNameTrainGIF,outFileNameTrainPDF,bsNtFileName))
498 self.addResult(outFileNameTrainGIF)
499 self.addResult(outFileNameTrainPDF)
501 raise PostProcessingError(
'ERROR: No beam spot ntuple file %s - did BeamSpotNt step run?\n' % bsNtFileName,self.executedSteps)