![]() |
ATLAS Offline Software
|
Classes | |
| class | BeamSpotWriteAlg |
| class | Config |
Functions | |
| setBeamSpot (run, lb, x, y, z, status=7, dbname='sqlite://;schema=beampos.db;dbname=CONDBR2', tag='IndetBeamposOnl-HLT-UPD1-001-00') | |
| addFolderUpdate (event) | |
| modify (event) | |
| setup () | |
| run (flags) | |
Variables | |
| list | folderList = [] |
| log = logging.getLogger(__name__) | |
| parser = argparse.ArgumentParser(description=__doc__) | |
| metavar | |
| nargs | |
| help | |
| type | |
| int | |
| default | |
| str | |
| args = parser.parse_args() | |
| dr = EventStorage.pickDataReader(args.file[0]) | |
| output | |
| int | i = 0 |
| newevt = modify(event) | |
Module to test beamspot updates using a local sqlite file. Two steps are necessary: 1) Create a modified bytestream file that contains the correct COOL update information in the CTP fragment. To do this simply run this script with a RAW file and it will write a modified file into the current directory with beamspot updates on LBs as specified in Config.lb_updateBeamspot. 2) Configure a job with the BeamSpotWriteAlg in the topSequence. This algorithm will write a new beamspot into the sqlite file one LB before the actual update is triggered via the CTP fragment. See TrigP1Test/python/BeamSpotReader.py for an example.
| python.BeamSpotUpdate.addFolderUpdate | ( | event | ) |
Add COOL folder update to event
Definition at line 78 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.modify | ( | event | ) |
Definition at line 104 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.run | ( | flags | ) |
CA cfg function to be used from athenaHLT
Definition at line 139 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.setBeamSpot | ( | run, | |
| lb, | |||
| x, | |||
| y, | |||
| z, | |||
| status = 7, | |||
| dbname = 'sqlite://;schema=beampos.db;dbname=CONDBR2', | |||
| tag = 'IndetBeamposOnl-HLT-UPD1-001-00' ) |
Definition at line 62 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.setup | ( | ) |
Initial setup
Definition at line 124 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.args = parser.parse_args() |
Definition at line 179 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.default |
Definition at line 176 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.dr = EventStorage.pickDataReader(args.file[0]) |
Definition at line 180 of file BeamSpotUpdate.py.
| list python.BeamSpotUpdate.folderList = [] |
Definition at line 35 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.help |
Definition at line 175 of file BeamSpotUpdate.py.
| int python.BeamSpotUpdate.i = 0 |
Definition at line 190 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.int |
Definition at line 176 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.log = logging.getLogger(__name__) |
Definition at line 36 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.metavar |
Definition at line 175 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.nargs |
Definition at line 175 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.newevt = modify(event) |
Definition at line 195 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.output |
Definition at line 181 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.parser = argparse.ArgumentParser(description=__doc__) |
Definition at line 174 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.str |
Definition at line 177 of file BeamSpotUpdate.py.
| python.BeamSpotUpdate.type |
Definition at line 176 of file BeamSpotUpdate.py.