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 692 of file TileCalibCrest.py.

692def getDrawerIdx(ros, drawer):
693 """
694 Calculates TileCalibDrawer index
695 from ros number and drawer number
696 """
697
698 if ros<0 or ros>4:
699 drawerIdx = drawer
700 else:
701 drawerIdx = TileCalibUtils.getDrawerIdx(ros, drawer)
702
703 return drawerIdx
704
705#____________________________________________________________________
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 706 of file TileCalibCrest.py.

706def plural(n, txt):
707 """
708 merges integer number and text
709 and adds 's' at the end of text
710 if n is not equal 1
711 """
712
713 text = f'{n} {txt}'
714 if n!=1:
715 text += 's'
716 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.