ATLAS Offline Software
Functions | Variables
fillPileUpNoiseLumi Namespace Reference

Functions

def createFolder (db, name)
 
def fillPileUpNoiseLumi (db, tag, dataIn, folderName="/CALO/Ofl/Noise/PileUpNoiseLumi")
 

Variables

 current
 
 next
 
 newlumi = float(sys.argv[1])
 
string sqlitename = "PileUpNoiseLumi.db"
 
string connect = "sqlite://;schema="+sqlitename+";dbname=CONDBR2"
 
 dbSvc = cool.DatabaseSvcFactory.databaseService()
 
 db = dbSvc.openDatabase(connect,False)
 
def data = fillPileUpNoiseLumi(db,current,newlumi)
 

Function Documentation

◆ createFolder()

def fillPileUpNoiseLumi.createFolder (   db,
  name 
)

Definition at line 6 of file fillPileUpNoiseLumi.py.

6 def createFolder(db,name):
7  desc='<timeStamp>run-lumi</timeStamp><addrHeader><address_header service_type="71" clid="1238547719" /></addrHeader><typeName>CondAttrListCollection</typeName>'
8  spec = cool.RecordSpecification()
9  spec.extend('LBAvInstLumi',cool.StorageType.Float)
10  spec.extend('Valid',cool.StorageType.UInt32)
11  folderSpec=cool.FolderSpecification(cool.FolderVersioning.MULTI_VERSION, spec)
12  #return db.createFolder(name,spec,desc,cool.FolderVersioning.MULTI_VERSION, True)
13  return db.createFolder(name,folderSpec,desc, True)
14 
15 
16 

◆ fillPileUpNoiseLumi()

def fillPileUpNoiseLumi.fillPileUpNoiseLumi (   db,
  tag,
  dataIn,
  folderName = "/CALO/Ofl/Noise/PileUpNoiseLumi" 
)

Definition at line 17 of file fillPileUpNoiseLumi.py.

17 def fillPileUpNoiseLumi(db,tag,dataIn, folderName="/CALO/Ofl/Noise/PileUpNoiseLumi"):
18 
19  data=0.
20  data=dataIn
21 
22  if db.existsFolder(folderName):
23  folder = db.getFolder(folderName)
24  else:
25  #create new folder
26  print("Folder", folderName,"does not exit yet. Creating it now.")
27  folder=createFolder(db,folderName)
28 
29  since=cool.ValidityKeyMin
30  until=cool.ValidityKeyMax
31 
32  payload = cool.Record(folder.payloadSpecification())
33  payload["LBAvInstLumi"]=data
34  payload["Valid"]=0
35  folder.storeObject(since,until,payload,cool.ChannelId(0),tag)
36  folder.storeObject(since,until,payload,cool.ChannelId(1),tag)
37 
38  return 0
39 
40 

Variable Documentation

◆ connect

string fillPileUpNoiseLumi.connect = "sqlite://;schema="+sqlitename+";dbname=CONDBR2"

Definition at line 70 of file fillPileUpNoiseLumi.py.

◆ current

fillPileUpNoiseLumi.current

Definition at line 52 of file fillPileUpNoiseLumi.py.

◆ data

def fillPileUpNoiseLumi.data = fillPileUpNoiseLumi(db,current,newlumi)

Definition at line 85 of file fillPileUpNoiseLumi.py.

◆ db

fillPileUpNoiseLumi.db = dbSvc.openDatabase(connect,False)

Definition at line 73 of file fillPileUpNoiseLumi.py.

◆ dbSvc

fillPileUpNoiseLumi.dbSvc = cool.DatabaseSvcFactory.databaseService()

Definition at line 71 of file fillPileUpNoiseLumi.py.

◆ newlumi

fillPileUpNoiseLumi.newlumi = float(sys.argv[1])

Definition at line 62 of file fillPileUpNoiseLumi.py.

◆ next

fillPileUpNoiseLumi.next

Definition at line 52 of file fillPileUpNoiseLumi.py.

◆ sqlitename

string fillPileUpNoiseLumi.sqlitename = "PileUpNoiseLumi.db"

Definition at line 64 of file fillPileUpNoiseLumi.py.

fillPileUpNoiseLumi.fillPileUpNoiseLumi
def fillPileUpNoiseLumi(db, tag, dataIn, folderName="/CALO/Ofl/Noise/PileUpNoiseLumi")
Definition: fillPileUpNoiseLumi.py:17
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
fillPileUpNoiseLumi.createFolder
def createFolder(db, name)
Definition: fillPileUpNoiseLumi.py:6