ATLAS Offline Software
|
Classes | |
class | COOLQuery |
Functions | |
def | openBeamSpotDbFile (fileName, forceNew=False, folderName='/Indet/Beampos', dbName='BEAMSPOT') |
def | writeBeamSpotEntry (folderHandle, tag='nominal', runMin=0, runMax=(1<< 31) -1, lbMin=0, lbMax=(1<< 32) -2, status=0, posX=0., posY=0., posZ=0., sigmaX=30., sigmaY=30., sigmaZ=500., tiltX=0., tiltY=0., sigmaXY=0., posXErr=0., posYErr=0., posZErr=0., sigmaXErr=0., sigmaYErr=0., sigmaZErr=0., tiltXErr=0., tiltYErr=0., sigmaXYErr=0.) |
def | COOLToUnixTime (coolTime) |
def | resolveCurrentAlias (tagtype='ST') |
def | resolveNextAlias (tagtype='ST') |
def | resolveCurrentBeamSpotFolder (db='COOLOFL_INDET/CONDBR2', folder='/Indet/Beampos') |
def | resolveNextBeamSpotFolder (db='COOLOFL_INDET/CONDBR2', folder='/Indet/Beampos') |
def | resolveBLKTag (blktag, db='COOLOFL_INDET/CONDBR2', folder='/Indet/Beampos') |
Variables | |
string | __author__ = 'Juerg Beringer' |
string | __version__ = 'COOLUtils.py atlas/athena' |
c = COOLQuery() | |
lbDict = c.getLbTimes(142193) | |
def python.COOLUtils.COOLToUnixTime | ( | coolTime | ) |
Definition at line 111 of file COOLUtils.py.
def python.COOLUtils.openBeamSpotDbFile | ( | fileName, | |
forceNew = False , |
|||
folderName = '/Indet/Beampos' , |
|||
dbName = 'BEAMSPOT' |
|||
) |
Open a beam spot SQLite COOL file and get a `folderHandle` to the beam spot folder. If the folder doesn't exist yet, it is created. If the SQLite file doesn't exist, it is created. If forceNew=True, any previously existing output file with the specified name is overwritten.
Definition at line 22 of file COOLUtils.py.
def python.COOLUtils.resolveBLKTag | ( | blktag, | |
db = 'COOLOFL_INDET/CONDBR2' , |
|||
folder = '/Indet/Beampos' |
|||
) |
Resolve a global tag into the corresponding tag for given folder in the database specified
Definition at line 322 of file COOLUtils.py.
def python.COOLUtils.resolveCurrentAlias | ( | tagtype = 'ST' | ) |
Definition at line 280 of file COOLUtils.py.
def python.COOLUtils.resolveCurrentBeamSpotFolder | ( | db = 'COOLOFL_INDET/CONDBR2' , |
|
folder = '/Indet/Beampos' |
|||
) |
Resolve the beamspot folder tag for the current BLK tag alisa
Definition at line 305 of file COOLUtils.py.
def python.COOLUtils.resolveNextAlias | ( | tagtype = 'ST' | ) |
Definition at line 289 of file COOLUtils.py.
def python.COOLUtils.resolveNextBeamSpotFolder | ( | db = 'COOLOFL_INDET/CONDBR2' , |
|
folder = '/Indet/Beampos' |
|||
) |
Resolve the beamspot folder tag for the next BLK tag alias
Definition at line 312 of file COOLUtils.py.
def python.COOLUtils.writeBeamSpotEntry | ( | folderHandle, | |
tag = 'nominal' , |
|||
runMin = 0 , |
|||
runMax = (1 << 31)-1 , |
|||
lbMin = 0 , |
|||
lbMax = (1 << 32)-2 , |
|||
status = 0 , |
|||
posX = 0. , |
|||
posY = 0. , |
|||
posZ = 0. , |
|||
sigmaX = 30. , |
|||
sigmaY = 30. , |
|||
sigmaZ = 500. , |
|||
tiltX = 0. , |
|||
tiltY = 0. , |
|||
sigmaXY = 0. , |
|||
posXErr = 0. , |
|||
posYErr = 0. , |
|||
posZErr = 0. , |
|||
sigmaXErr = 0. , |
|||
sigmaYErr = 0. , |
|||
sigmaZErr = 0. , |
|||
tiltXErr = 0. , |
|||
tiltYErr = 0. , |
|||
sigmaXYErr = 0. |
|||
) |
Write a beam spot entry for a given IOV into a beam spot folder whose 'folderHandle' is passsed. The IOV is specified in terms of run and LB range. Note that lbMax is inclusive. The default parameters for the position and tilt are zero, the ones for the widths are large non-constraining widths of 30mm (500mm) transverse (longitudinal).
Definition at line 63 of file COOLUtils.py.
|
private |
Definition at line 6 of file COOLUtils.py.
|
private |
Definition at line 7 of file COOLUtils.py.
python.COOLUtils.c = COOLQuery() |
Definition at line 339 of file COOLUtils.py.
python.COOLUtils.lbDict = c.getLbTimes(142193) |
Definition at line 343 of file COOLUtils.py.