ATLAS Offline Software
Public Member Functions | List of all members
python.BeamSpotPostProcessing.PlotBCID Class Reference
Inheritance diagram for python.BeamSpotPostProcessing.PlotBCID:
Collaboration diagram for python.BeamSpotPostProcessing.PlotBCID:

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 473 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.PlotBCID.run (   self)

Definition at line 474 of file BeamSpotPostProcessing.py.

474  def run(self):
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)
500  else:
501  raise PostProcessingError('ERROR: No beam spot ntuple file %s - did BeamSpotNt step run?\n' % bsNtFileName,self.executedSteps)

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10