ATLAS Offline Software
Variables
PixelModuleFeMask_create_db Namespace Reference

Variables

 p = argparse.ArgumentParser()
 
 type
 
 str
 
 help
 
 default
 
 int
 
 args = p.parse_args()
 
string dbFile = 'PixelModuleFeMask_run'+str(args.run)+'.db'
 
string dbName = 'CONDBR2'
 
string path = '/PIXEL/PixelModuleFeMask'
 
string tag = 'PixelModuleFeMask-RUN2-DATA-UPD4-05'
 
 dbSvc = cool.DatabaseSvcFactory.databaseService()
 
string dbString = "sqlite://;schema=%s;dbname=%s" % (dbFile, dbName)
 
 db = dbSvc.createDatabase(dbString)
 
 spec = cool.RecordSpecification()
 
string desc = '<timeStamp>run-lumi</timeStamp><addrHeader><address_header service_type="71" clid="1238547719" /></addrHeader><typeName>CondAttrListCollection</typeName>'
 
 folderSpec = cool.FolderSpecification(cool.FolderVersioning.MULTI_VERSION, spec)
 
 folder = db.createFolder(path, folderSpec, desc, True)
 
 data = cool.Record(spec)
 
 input_file = open(args.input_file,'r')
 
 nModules = sum(1 for line in input_file)
 
list input_list = [[0 for x in range(4)] for y in range(nModules)]
 
int iterator = 0
 
int runnumber_large = args.run << 32
 
int iov_start_min = 100000000000000000000
 
int iov_end_max = 0
 
list payload_list = []
 
int module_old = 0;
 
int FE_code_old = 0;
 
string payload = ""
 
list module = input_list[i][0]
 
list FEcode = input_list[i][1]
 
list iov_start = input_list[i][2]
 
list iov_end = input_list[i][3]
 
int stop = 0
 
string remove = '"'+str(module_old)+'":'+str(FE_code_old)+","
 
bool since_bool = False
 
int since = 0
 
int until = 0
 
int channel = 0
 

Variable Documentation

◆ args

PixelModuleFeMask_create_db.args = p.parse_args()

Definition at line 16 of file PixelModuleFeMask_create_db.py.

◆ channel

int PixelModuleFeMask_create_db.channel = 0

Definition at line 103 of file PixelModuleFeMask_create_db.py.

◆ data

PixelModuleFeMask_create_db.data = cool.Record(spec)

Definition at line 44 of file PixelModuleFeMask_create_db.py.

◆ db

PixelModuleFeMask_create_db.db = dbSvc.createDatabase(dbString)

Definition at line 33 of file PixelModuleFeMask_create_db.py.

◆ dbFile

string PixelModuleFeMask_create_db.dbFile = 'PixelModuleFeMask_run'+str(args.run)+'.db'

Definition at line 20 of file PixelModuleFeMask_create_db.py.

◆ dbName

string PixelModuleFeMask_create_db.dbName = 'CONDBR2'

Definition at line 21 of file PixelModuleFeMask_create_db.py.

◆ dbString

string PixelModuleFeMask_create_db.dbString = "sqlite://;schema=%s;dbname=%s" % (dbFile, dbName)

Definition at line 31 of file PixelModuleFeMask_create_db.py.

◆ dbSvc

PixelModuleFeMask_create_db.dbSvc = cool.DatabaseSvcFactory.databaseService()

Definition at line 30 of file PixelModuleFeMask_create_db.py.

◆ default

PixelModuleFeMask_create_db.default

Definition at line 14 of file PixelModuleFeMask_create_db.py.

◆ desc

string PixelModuleFeMask_create_db.desc = '<timeStamp>run-lumi</timeStamp><addrHeader><address_header service_type="71" clid="1238547719" /></addrHeader><typeName>CondAttrListCollection</typeName>'

Definition at line 41 of file PixelModuleFeMask_create_db.py.

◆ FE_code_old

list PixelModuleFeMask_create_db.FE_code_old = 0;

Definition at line 65 of file PixelModuleFeMask_create_db.py.

◆ FEcode

int PixelModuleFeMask_create_db.FEcode = input_list[i][1]

Definition at line 73 of file PixelModuleFeMask_create_db.py.

◆ folder

PixelModuleFeMask_create_db.folder = db.createFolder(path, folderSpec, desc, True)

Definition at line 43 of file PixelModuleFeMask_create_db.py.

◆ folderSpec

PixelModuleFeMask_create_db.folderSpec = cool.FolderSpecification(cool.FolderVersioning.MULTI_VERSION, spec)

Definition at line 42 of file PixelModuleFeMask_create_db.py.

◆ help

PixelModuleFeMask_create_db.help

Definition at line 14 of file PixelModuleFeMask_create_db.py.

◆ input_file

PixelModuleFeMask_create_db.input_file = open(args.input_file,'r')

Definition at line 46 of file PixelModuleFeMask_create_db.py.

◆ input_list

PixelModuleFeMask_create_db.input_list = [[0 for x in range(4)] for y in range(nModules)]

Definition at line 51 of file PixelModuleFeMask_create_db.py.

◆ int

PixelModuleFeMask_create_db.int

Definition at line 15 of file PixelModuleFeMask_create_db.py.

◆ iov_end

list PixelModuleFeMask_create_db.iov_end = input_list[i][3]

Definition at line 75 of file PixelModuleFeMask_create_db.py.

◆ iov_end_max

int PixelModuleFeMask_create_db.iov_end_max = 0

Definition at line 62 of file PixelModuleFeMask_create_db.py.

◆ iov_start

list PixelModuleFeMask_create_db.iov_start = input_list[i][2]

Definition at line 74 of file PixelModuleFeMask_create_db.py.

◆ iov_start_min

int PixelModuleFeMask_create_db.iov_start_min = 100000000000000000000

Definition at line 61 of file PixelModuleFeMask_create_db.py.

◆ iterator

int PixelModuleFeMask_create_db.iterator = 0

Definition at line 52 of file PixelModuleFeMask_create_db.py.

◆ module

list PixelModuleFeMask_create_db.module = input_list[i][0]

Definition at line 72 of file PixelModuleFeMask_create_db.py.

◆ module_old

list PixelModuleFeMask_create_db.module_old = 0;

Definition at line 64 of file PixelModuleFeMask_create_db.py.

◆ nModules

PixelModuleFeMask_create_db.nModules = sum(1 for line in input_file)

Definition at line 47 of file PixelModuleFeMask_create_db.py.

◆ p

PixelModuleFeMask_create_db.p = argparse.ArgumentParser()

Definition at line 13 of file PixelModuleFeMask_create_db.py.

◆ path

string PixelModuleFeMask_create_db.path = '/PIXEL/PixelModuleFeMask'

Definition at line 22 of file PixelModuleFeMask_create_db.py.

◆ payload

string PixelModuleFeMask_create_db.payload = ""

Definition at line 69 of file PixelModuleFeMask_create_db.py.

◆ payload_list

list PixelModuleFeMask_create_db.payload_list = []

Definition at line 63 of file PixelModuleFeMask_create_db.py.

◆ remove

string PixelModuleFeMask_create_db.remove = '"'+str(module_old)+'":'+str(FE_code_old)+","

Definition at line 83 of file PixelModuleFeMask_create_db.py.

◆ runnumber_large

int PixelModuleFeMask_create_db.runnumber_large = args.run << 32

Definition at line 60 of file PixelModuleFeMask_create_db.py.

◆ since

int PixelModuleFeMask_create_db.since = 0

Definition at line 101 of file PixelModuleFeMask_create_db.py.

◆ since_bool

bool PixelModuleFeMask_create_db.since_bool = False

Definition at line 100 of file PixelModuleFeMask_create_db.py.

◆ spec

PixelModuleFeMask_create_db.spec = cool.RecordSpecification()

Definition at line 39 of file PixelModuleFeMask_create_db.py.

◆ stop

int PixelModuleFeMask_create_db.stop = 0

Definition at line 76 of file PixelModuleFeMask_create_db.py.

◆ str

PixelModuleFeMask_create_db.str

Definition at line 14 of file PixelModuleFeMask_create_db.py.

◆ tag

string PixelModuleFeMask_create_db.tag = 'PixelModuleFeMask-RUN2-DATA-UPD4-05'

Definition at line 23 of file PixelModuleFeMask_create_db.py.

◆ type

PixelModuleFeMask_create_db.type

Definition at line 14 of file PixelModuleFeMask_create_db.py.

◆ until

int PixelModuleFeMask_create_db.until = 0

Definition at line 102 of file PixelModuleFeMask_create_db.py.