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")
 CREST_HOST = os.getenv('CREST_HOST',os.getenv('CREST_SERVER',os.getenv('CHAI_CREST_SERVER',os.getenv('CREST_SERVER_PATH',os.getenv('CREST_API_URL','https://atlas-crest-dev.cern.ch:443/api-v6.4')))))
int MINRUN = 0
int MINLBK = 0
tuple MAXRUN = (1<<31)-1
tuple MAXLBK = (1<<32)-1
int LASPARTCHAN = 43

Function Documentation

◆ getDrawerIdx()

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

Definition at line 853 of file TileCalibCrest.py.

853def getDrawerIdx(ros, drawer):
854 """
855 Calculates TileCalibDrawer index
856 from ros number and drawer number
857 """
858
859 if ros<0 or ros>4:
860 drawerIdx = drawer
861 else:
862 drawerIdx = TileCalibUtils.getDrawerIdx(ros, drawer)
863
864 return drawerIdx
865
866#____________________________________________________________________
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.

◆ plural()

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

867def plural(n, txt):
868 """
869 merges integer number and text
870 and adds 's' at the end of text
871 if n is not equal 1
872 """
873
874 text = f'{n} {txt}'
875 if n!=1:
876 text += 's'
877 return text

Variable Documentation

◆ Blob

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

Definition at line 17 of file TileCalibCrest.py.

◆ CREST_HOST

python.TileCalibCrest.CREST_HOST = os.getenv('CREST_HOST',os.getenv('CREST_SERVER',os.getenv('CHAI_CREST_SERVER',os.getenv('CREST_SERVER_PATH',os.getenv('CREST_API_URL','https://atlas-crest-dev.cern.ch:443/api-v6.4')))))

Definition at line 31 of file TileCalibCrest.py.

◆ LASPARTCHAN

int python.TileCalibCrest.LASPARTCHAN = 43

Definition at line 47 of file TileCalibCrest.py.

◆ log

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

Definition at line 29 of file TileCalibCrest.py.

◆ MAXLBK

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

Definition at line 45 of file TileCalibCrest.py.

◆ MAXRUN

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

Definition at line 44 of file TileCalibCrest.py.

◆ MINLBK

int python.TileCalibCrest.MINLBK = 0

Definition at line 43 of file TileCalibCrest.py.

◆ MINRUN

int python.TileCalibCrest.MINRUN = 0

Definition at line 42 of file TileCalibCrest.py.