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

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

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