Definition at line 327 of file BeamSpotPostProcessing.py.
◆ run()
def python.BeamSpotPostProcessing.UploadBeamSpot.run |
( |
|
self | ) |
|
Definition at line 328 of file BeamSpotPostProcessing.py.
329 beamSpotDbFileName = self.getFileName(
'-beamspot.db',
'AveBeamSpot')
330 cooltags = self.taskDict[
'COOLTAGS']
331 if not cooltags: cooltags =
''
335 beamspottag = COOLUtils.resolveCurrentBeamSpotFolder()
337 raise PostProcessingError(
'ERROR: Unable to resolve beamspot folder tag',self.executedSteps,TaskManager.StatusCodes[
'POSTPROCFAILED'])
340 if beamspottag
in cooltags.split():
341 self.log(
'WARNING: Beam spot already uploaded to COOL: %s - continue anyway' % beamspottag)
346 if self.dsName.
split(
'.')[-1] !=
'express_express' and self.dsName.
split(
'.')[-1] !=
'calibration_BeamSpot':
347 print (self.dsName.
split(
'.')[-1] )
348 self.log(text=
"WARNING: Not running on the express or BeamSpot stream, so won't upload anything - if this is intentional, please upload manually\n",doPrint=
True)
350 if os.path.exists(
'/'.
join([self.taskDir,beamSpotDbFileName])):
353 self.logExec(
'beamspotman.py -b -n -t %s upload %s %s' % (beamspottag,self.dsName,self.taskName))
356 self.log(text=
'ERROR: No beam spot COOL SQLite file %s\n Nothing to upload - was beam spot determination successful?\n' % beamSpotDbFileName,doPrint=
True)
The documentation for this class was generated from the following file: