ATLAS Offline Software
Loading...
Searching...
No Matches
python.TileCalibCrest Namespace Reference

Classes

class  TileBlobReaderCrest
class  TileBlobWriterCrest

Functions

 getDrawerIdx (ros, drawer)
 plural (n, txt)

Variables

 Blob = cppyy.gbl.coral.Blob
 log = getLogger("TileCalibCrest")
int MINRUN = 0
int MINLBK = 0
tuple MAXRUN = (1<<31)-1
tuple MAXLBK = (1<<32)-1
tuple MAXRUNLUMI = (MAXRUN<<32)+MAXLBK
int LASPARTCHAN = 43

Function Documentation

◆ getDrawerIdx()

python.TileCalibCrest.getDrawerIdx ( ros,
drawer )
Calculates TileCalibDrawer index
from ros number and drawer number

Definition at line 691 of file TileCalibCrest.py.

691def getDrawerIdx(ros, drawer):
692 """
693 Calculates TileCalibDrawer index
694 from ros number and drawer number
695 """
696
697 if ros<0 or ros>4:
698 drawerIdx = drawer
699 else:
700 drawerIdx = TileCalibUtils.getDrawerIdx(ros, drawer)
701
702 return drawerIdx
703
704#____________________________________________________________________
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.

◆ plural()

python.TileCalibCrest.plural ( n,
txt )
merges integer number and text
and adds 's' at the end of text
if n is not equal 1

Definition at line 705 of file TileCalibCrest.py.

705def plural(n, txt):
706 """
707 merges integer number and text
708 and adds 's' at the end of text
709 if n is not equal 1
710 """
711
712 text = f'{n} {txt}'
713 if n!=1:
714 text += 's'
715 return text

Variable Documentation

◆ Blob

python.TileCalibCrest.Blob = cppyy.gbl.coral.Blob

Definition at line 16 of file TileCalibCrest.py.

◆ LASPARTCHAN

int python.TileCalibCrest.LASPARTCHAN = 43

Definition at line 45 of file TileCalibCrest.py.

◆ log

python.TileCalibCrest.log = getLogger("TileCalibCrest")

Definition at line 27 of file TileCalibCrest.py.

◆ MAXLBK

tuple python.TileCalibCrest.MAXLBK = (1<<32)-1

Definition at line 42 of file TileCalibCrest.py.

◆ MAXRUN

tuple python.TileCalibCrest.MAXRUN = (1<<31)-1

Definition at line 41 of file TileCalibCrest.py.

◆ MAXRUNLUMI

tuple python.TileCalibCrest.MAXRUNLUMI = (MAXRUN<<32)+MAXLBK

Definition at line 43 of file TileCalibCrest.py.

◆ MINLBK

int python.TileCalibCrest.MINLBK = 0

Definition at line 40 of file TileCalibCrest.py.

◆ MINRUN

int python.TileCalibCrest.MINRUN = 0

Definition at line 39 of file TileCalibCrest.py.