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

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 117 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.PlotBeamSpotMon.run (   self)

Definition at line 118 of file BeamSpotPostProcessing.py.

118  def run(self):
119  outFileNameGIF = self.getFileName('.gif')
120  outFileNamePDF = self.getFileName('.pdf')
121  histFileName = self.getFileName('-beamspotmonitoring.root')
122  if os.path.exists('/'.join([self.taskDir,histFileName])):
123  self.logExec('cd %s; rm -f %s %s %s' % (self.taskDir,histFileName,outFileNameGIF,outFileNamePDF))
124  postProcFiles = self.taskFileList('*-beamspotmonitoring.root','POSTPROCESSING',self.jobName)
125  self.log(text='Found %i monitoring files from POSTPROCESSING jobs ...' % len(postProcFiles))
126  completedFiles = self.taskFileList('*-beamspotmonitoring.root','COMPLETED',self.jobName)
127  self.log(text='Found %i monitoring files from COMPLETED jobs ...' % len(completedFiles))
128  histFiles = sorted(postProcFiles+completedFiles)
129  if len(histFiles)>0:
130  #self.logExec('cd %s; hadd -f %s %s' % (self.taskDir,histFileName,' '.join(histFiles)))
131  self.hadd(self.taskDir,histFileName,histFiles)
132  self.logExec('cd %s; plotBeamSpotMon.py -b -o %s,%s %s' % (self.taskDir,outFileNameGIF,outFileNamePDF,histFileName))
133  self.addResult(outFileNameGIF)
134  self.addResult(outFileNamePDF)
135  else:
136  self.log(text='No monitoring files yet ...')
137 
138 

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10