ATLAS Offline Software
Functions | Variables
WriteCalibToCool Namespace Reference

Functions

def usage ()
 
def compare (item1, item2)
 

Variables

 letters
 
 keywords
 
 opts
 
 extraparams
 
 run
 
 lumi
 
 run2
 
 lumi2
 
 server
 
 schema
 
 inSchema
 
 outSchema
 
 folderPath
 
 tag
 
 outfolderPath
 
 outtag
 
 readGain
 
 rosmin
 
 all
 
 zero
 
 allzero
 
 nchan
 
 ngain
 
 nval
 
 blobVersion
 
 txtFile
 
 comment
 
 Comment
 
 prefix
 
 update
 
 keep
 
 iov
 
 beg
 
 end
 
 moduleList
 
 adjust
 
 swap
 
 user
 
 a
 
 moduleSwap
 
 m1
 
 m2
 
 until
 
 log
 
 dbr
 
 dbw
 
 folderTag
 
 tag2
 
 outfolderTag
 
 iovAll
 
 iovList
 
 iovUntil
 
 iovListMOD
 
 iovListCMT
 
 iovUntilCMT
 
 blobReader
 
 blobWriter2
 
 modName
 
 iovMod
 
 key
 
 since
 
 ib
 
 ie
 
 begin
 
 undo
 
 p
 
 flt
 
 r
 
 d
 
 blobT
 
 blobV
 
 mchan
 
 mgain
 
 mval
 
 nchanDef
 
 ngainDef
 
 typeName
 
 comments
 
 blobWriters
 
 nvalUpdated
 
 commentsSplit
 
 comm
 
 defConst
 
 default
 
 defVal
 
 blobParser
 
 nold
 
 nnew
 
 ndef
 
 nvold
 
 nvnew
 
 nvdef
 
 nvnewdef
 
 irm
 
 modSpec
 
 newDrawer
 
 flt1
 
 oldNchan
 
 oldNgain
 
 oldVsize
 
 rosR
 
 modR
 
 modNameR
 
 rosW
 
 modW
 
 modNameW
 
 data
 
 calibDrawer
 
 kval
 
 calibDrawer2
 
 val
 
 coef
 
 strval
 
 untilMod
 
 untilCmt
 
 appendCmt
 
 undoCmt
 
 author
 
 cmtOnly
 

Function Documentation

◆ compare()

def WriteCalibToCool.compare (   item1,
  item2 
)

Definition at line 282 of file WriteCalibToCool.py.

282  def compare(item1,item2):
283  if item1[0]!=item2[0]:
284  return item1[0]-item2[0]
285  else:
286  return item1[1]-item2[1]

◆ usage()

def WriteCalibToCool.usage ( )

Definition at line 12 of file WriteCalibToCool.py.

12 def usage():
13  print ("Usage: ",sys.argv[0]," [OPTION] ... ")
14  print ("Update TileCal calibration constants in COOL")
15  print ("")
16  print ("-h, --help shows this help")
17  print ("-f, --folder= specify folder to use f.i. /TILE/OFL02/CALIB/CIS/LIN or /TILE/OFL02/TIME/CHANNELOFFSET/GAP/LAS")
18  print ("-F, --outfolder= specify the name of output folder if different from input folder")
19  print ("-t, --tag= specify tag to use, f.i. RUN2-HLT-UPD1-00 or RUN2-UPD4-00")
20  print ("-T, --outtag= specify output tag if different from input tag")
21  print ("-r, --run= specify run number, default is 0")
22  print ("-R, --run2= specify run number for new IOV where correction is undone")
23  print ("-l, --lumi= specify lumi block number, default is 0")
24  print ("-L, --lumi2= specify lumi block number for new IOV where correction is undone")
25  print ("-b, --begin= specify run number of first iov in multi-iov mode, by default uses very first iov")
26  print ("-e, --end= specify run number of last iov in multi-iov mode, by default uses latest iov")
27  print ("-A, --adjust in multi-iov mode adjust iov boundaries to nearest iov available in DB, default is False")
28  print ("-D, --module= specify module to use in multi-IOV update, default is all")
29  print ("-c, --channel if present, means that one constant per channel is expected (i.e. no gain field)")
30  print ("-d, --default if present, means that also default values stored in AUX01-AUX20 should be updated")
31  print ("-a, --all if present, means that all drawers are saved, otherwise only those which were updated")
32  print ("-z, --zero if present, means that zero-sized blob is written for missing drawers")
33  print ("-Z, --allzero if present, means that zero-sized blob is created for all drawers which are not present in input file")
34  print ("-C, --nchannel= specify number of channels to store to DB, default is 0 - means the same as in input DB")
35  print ("-G, --ngain= specify number of gains to store to DB, default is 0 - means the same as in input DB")
36  print ("-n, --nval= specify number of values to store to DB, default is 0 - means all")
37  print ("-v, --version= specify blob version, by default version from input DB is used" )
38  print ("-x, --txtfile= specify the text file with the new constants for reading")
39  print ("-m, --comment= specify comment which should be written to DB, in multi-iov mode it is appended to old comment")
40  print ("-M, --Comment= specify comment which should be written to DB, in mutli-iov mode it overwrites old comment")
41  print ("-U, --user= specify username for comment")
42  print ("-p, --prefix= specify prefix which is expected on every line in input file, default - no prefix")
43  print ("-k, --keep= field numbers or channel numbers to ignore, e.g. '0,2,3,EBch0,EBch1,EBch12,EBch13,EBspD4ch18,EBspD4ch19,EBspC10ch4,EBspC10ch5' ")
44  print ("-i, --inschema= specify the input schema to use, default is 'COOLOFL_TILE/CONDBR2'")
45  print ("-o, --outschema= specify the output schema to use, default is 'sqlite://;schema=tileSqlite.db;dbname=CONDBR2'")
46  print ("-s, --schema= specify input/output schema to use when both input and output schemas are the same")
47  print ("-S, --server= specify server - ORACLE or FRONTIER, default is FRONTIER")
48  print ("-u --update set this flag if output sqlite file should be updated, otherwise it'll be recreated")
49  print ("-w, --swap= specify pair of modules which will be swapped in multi-IOV update, e.g. swap=EBA61,EBA63")
50 

Variable Documentation

◆ a

WriteCalibToCool.a

Definition at line 102 of file WriteCalibToCool.py.

◆ adjust

WriteCalibToCool.adjust

Definition at line 93 of file WriteCalibToCool.py.

◆ all

WriteCalibToCool.all

Definition at line 76 of file WriteCalibToCool.py.

◆ allzero

WriteCalibToCool.allzero

Definition at line 78 of file WriteCalibToCool.py.

◆ appendCmt

WriteCalibToCool.appendCmt

Definition at line 661 of file WriteCalibToCool.py.

◆ author

WriteCalibToCool.author

Definition at line 685 of file WriteCalibToCool.py.

◆ beg

WriteCalibToCool.beg

Definition at line 90 of file WriteCalibToCool.py.

◆ begin

WriteCalibToCool.begin

Definition at line 327 of file WriteCalibToCool.py.

◆ blobParser

WriteCalibToCool.blobParser

Definition at line 454 of file WriteCalibToCool.py.

◆ blobReader

WriteCalibToCool.blobReader

Definition at line 252 of file WriteCalibToCool.py.

◆ blobT

WriteCalibToCool.blobT

Definition at line 390 of file WriteCalibToCool.py.

◆ blobV

WriteCalibToCool.blobV

Definition at line 401 of file WriteCalibToCool.py.

◆ blobVersion

WriteCalibToCool.blobVersion

Definition at line 82 of file WriteCalibToCool.py.

◆ blobWriter2

WriteCalibToCool.blobWriter2

Definition at line 253 of file WriteCalibToCool.py.

◆ blobWriters

WriteCalibToCool.blobWriters

Definition at line 425 of file WriteCalibToCool.py.

◆ calibDrawer

WriteCalibToCool.calibDrawer

Definition at line 530 of file WriteCalibToCool.py.

◆ calibDrawer2

WriteCalibToCool.calibDrawer2

Definition at line 549 of file WriteCalibToCool.py.

◆ cmtOnly

WriteCalibToCool.cmtOnly

Definition at line 716 of file WriteCalibToCool.py.

◆ coef

WriteCalibToCool.coef

Definition at line 582 of file WriteCalibToCool.py.

◆ comm

WriteCalibToCool.comm

Definition at line 429 of file WriteCalibToCool.py.

◆ comment

WriteCalibToCool.comment

Definition at line 84 of file WriteCalibToCool.py.

◆ Comment

WriteCalibToCool.Comment

Definition at line 85 of file WriteCalibToCool.py.

◆ comments

WriteCalibToCool.comments

Definition at line 424 of file WriteCalibToCool.py.

◆ commentsSplit

WriteCalibToCool.commentsSplit

Definition at line 427 of file WriteCalibToCool.py.

◆ d

WriteCalibToCool.d

Definition at line 389 of file WriteCalibToCool.py.

◆ data

WriteCalibToCool.data

Definition at line 518 of file WriteCalibToCool.py.

◆ dbr

WriteCalibToCool.dbr

Definition at line 228 of file WriteCalibToCool.py.

◆ dbw

WriteCalibToCool.dbw

Definition at line 229 of file WriteCalibToCool.py.

◆ default

WriteCalibToCool.default

Definition at line 441 of file WriteCalibToCool.py.

◆ defConst

WriteCalibToCool.defConst

Definition at line 440 of file WriteCalibToCool.py.

◆ defVal

WriteCalibToCool.defVal

Definition at line 442 of file WriteCalibToCool.py.

◆ end

WriteCalibToCool.end

Definition at line 91 of file WriteCalibToCool.py.

◆ extraparams

WriteCalibToCool.extraparams

Definition at line 55 of file WriteCalibToCool.py.

◆ flt

WriteCalibToCool.flt

Definition at line 387 of file WriteCalibToCool.py.

◆ flt1

WriteCalibToCool.flt1

Definition at line 497 of file WriteCalibToCool.py.

◆ folderPath

WriteCalibToCool.folderPath

Definition at line 70 of file WriteCalibToCool.py.

◆ folderTag

WriteCalibToCool.folderTag

Definition at line 234 of file WriteCalibToCool.py.

◆ ib

WriteCalibToCool.ib

Definition at line 293 of file WriteCalibToCool.py.

◆ ie

WriteCalibToCool.ie

Definition at line 305 of file WriteCalibToCool.py.

◆ inSchema

WriteCalibToCool.inSchema

Definition at line 68 of file WriteCalibToCool.py.

◆ iov

WriteCalibToCool.iov

Definition at line 89 of file WriteCalibToCool.py.

◆ iovAll

WriteCalibToCool.iovAll

Definition at line 246 of file WriteCalibToCool.py.

◆ iovList

WriteCalibToCool.iovList

Definition at line 247 of file WriteCalibToCool.py.

◆ iovListCMT

WriteCalibToCool.iovListCMT

Definition at line 250 of file WriteCalibToCool.py.

◆ iovListMOD

WriteCalibToCool.iovListMOD

Definition at line 249 of file WriteCalibToCool.py.

◆ iovMod

WriteCalibToCool.iovMod

Definition at line 264 of file WriteCalibToCool.py.

◆ iovUntil

WriteCalibToCool.iovUntil

Definition at line 248 of file WriteCalibToCool.py.

◆ iovUntilCMT

WriteCalibToCool.iovUntilCMT

Definition at line 251 of file WriteCalibToCool.py.

◆ irm

WriteCalibToCool.irm

Definition at line 473 of file WriteCalibToCool.py.

◆ keep

WriteCalibToCool.keep

Definition at line 88 of file WriteCalibToCool.py.

◆ key

WriteCalibToCool.key

Definition at line 288 of file WriteCalibToCool.py.

◆ keywords

WriteCalibToCool.keywords

Definition at line 52 of file WriteCalibToCool.py.

◆ kval

WriteCalibToCool.kval

Definition at line 544 of file WriteCalibToCool.py.

◆ letters

WriteCalibToCool.letters

Definition at line 51 of file WriteCalibToCool.py.

◆ log

WriteCalibToCool.log

Definition at line 220 of file WriteCalibToCool.py.

◆ lumi

WriteCalibToCool.lumi

Definition at line 63 of file WriteCalibToCool.py.

◆ lumi2

WriteCalibToCool.lumi2

Definition at line 65 of file WriteCalibToCool.py.

◆ m1

WriteCalibToCool.m1

Definition at line 187 of file WriteCalibToCool.py.

◆ m2

WriteCalibToCool.m2

Definition at line 188 of file WriteCalibToCool.py.

◆ mchan

WriteCalibToCool.mchan

Definition at line 402 of file WriteCalibToCool.py.

◆ mgain

WriteCalibToCool.mgain

Definition at line 403 of file WriteCalibToCool.py.

◆ modName

WriteCalibToCool.modName

Definition at line 260 of file WriteCalibToCool.py.

◆ modNameR

WriteCalibToCool.modNameR

Definition at line 509 of file WriteCalibToCool.py.

◆ modNameW

WriteCalibToCool.modNameW

Definition at line 510 of file WriteCalibToCool.py.

◆ modR

WriteCalibToCool.modR

Definition at line 509 of file WriteCalibToCool.py.

◆ modSpec

WriteCalibToCool.modSpec

Definition at line 482 of file WriteCalibToCool.py.

◆ moduleList

WriteCalibToCool.moduleList

Definition at line 92 of file WriteCalibToCool.py.

◆ moduleSwap

WriteCalibToCool.moduleSwap

Definition at line 180 of file WriteCalibToCool.py.

◆ modW

WriteCalibToCool.modW

Definition at line 510 of file WriteCalibToCool.py.

◆ mval

WriteCalibToCool.mval

Definition at line 404 of file WriteCalibToCool.py.

◆ nchan

WriteCalibToCool.nchan

Definition at line 79 of file WriteCalibToCool.py.

◆ nchanDef

WriteCalibToCool.nchanDef

Definition at line 412 of file WriteCalibToCool.py.

◆ ndef

WriteCalibToCool.ndef

Definition at line 466 of file WriteCalibToCool.py.

◆ newDrawer

WriteCalibToCool.newDrawer

Definition at line 496 of file WriteCalibToCool.py.

◆ ngain

WriteCalibToCool.ngain

Definition at line 80 of file WriteCalibToCool.py.

◆ ngainDef

WriteCalibToCool.ngainDef

Definition at line 413 of file WriteCalibToCool.py.

◆ nnew

WriteCalibToCool.nnew

Definition at line 465 of file WriteCalibToCool.py.

◆ nold

WriteCalibToCool.nold

Definition at line 464 of file WriteCalibToCool.py.

◆ nval

WriteCalibToCool.nval

Definition at line 81 of file WriteCalibToCool.py.

◆ nvalUpdated

WriteCalibToCool.nvalUpdated

Definition at line 426 of file WriteCalibToCool.py.

◆ nvdef

WriteCalibToCool.nvdef

Definition at line 469 of file WriteCalibToCool.py.

◆ nvnew

WriteCalibToCool.nvnew

Definition at line 468 of file WriteCalibToCool.py.

◆ nvnewdef

WriteCalibToCool.nvnewdef

Definition at line 470 of file WriteCalibToCool.py.

◆ nvold

WriteCalibToCool.nvold

Definition at line 467 of file WriteCalibToCool.py.

◆ oldNchan

WriteCalibToCool.oldNchan

Definition at line 499 of file WriteCalibToCool.py.

◆ oldNgain

WriteCalibToCool.oldNgain

Definition at line 500 of file WriteCalibToCool.py.

◆ oldVsize

WriteCalibToCool.oldVsize

Definition at line 501 of file WriteCalibToCool.py.

◆ opts

WriteCalibToCool.opts

Definition at line 55 of file WriteCalibToCool.py.

◆ outfolderPath

WriteCalibToCool.outfolderPath

Definition at line 72 of file WriteCalibToCool.py.

◆ outfolderTag

WriteCalibToCool.outfolderTag

Definition at line 237 of file WriteCalibToCool.py.

◆ outSchema

WriteCalibToCool.outSchema

Definition at line 69 of file WriteCalibToCool.py.

◆ outtag

WriteCalibToCool.outtag

Definition at line 73 of file WriteCalibToCool.py.

◆ p

WriteCalibToCool.p

Definition at line 339 of file WriteCalibToCool.py.

◆ prefix

WriteCalibToCool.prefix

Definition at line 86 of file WriteCalibToCool.py.

◆ r

WriteCalibToCool.r

Definition at line 388 of file WriteCalibToCool.py.

◆ readGain

WriteCalibToCool.readGain

Definition at line 74 of file WriteCalibToCool.py.

◆ rosmin

WriteCalibToCool.rosmin

Definition at line 75 of file WriteCalibToCool.py.

◆ rosR

WriteCalibToCool.rosR

Definition at line 509 of file WriteCalibToCool.py.

◆ rosW

WriteCalibToCool.rosW

Definition at line 510 of file WriteCalibToCool.py.

◆ run

WriteCalibToCool.run

Definition at line 62 of file WriteCalibToCool.py.

◆ run2

WriteCalibToCool.run2

Definition at line 64 of file WriteCalibToCool.py.

◆ schema

WriteCalibToCool.schema

Definition at line 67 of file WriteCalibToCool.py.

◆ server

WriteCalibToCool.server

Definition at line 66 of file WriteCalibToCool.py.

◆ since

WriteCalibToCool.since

Definition at line 292 of file WriteCalibToCool.py.

◆ strval

WriteCalibToCool.strval

Definition at line 583 of file WriteCalibToCool.py.

◆ swap

WriteCalibToCool.swap

Definition at line 94 of file WriteCalibToCool.py.

◆ tag

WriteCalibToCool.tag

Definition at line 71 of file WriteCalibToCool.py.

◆ tag2

WriteCalibToCool.tag2

Definition at line 235 of file WriteCalibToCool.py.

◆ txtFile

WriteCalibToCool.txtFile

Definition at line 83 of file WriteCalibToCool.py.

◆ typeName

WriteCalibToCool.typeName

Definition at line 417 of file WriteCalibToCool.py.

◆ undo

WriteCalibToCool.undo

Definition at line 330 of file WriteCalibToCool.py.

◆ undoCmt

WriteCalibToCool.undoCmt

Definition at line 666 of file WriteCalibToCool.py.

◆ until

WriteCalibToCool.until

Definition at line 217 of file WriteCalibToCool.py.

◆ untilCmt

WriteCalibToCool.untilCmt

Definition at line 660 of file WriteCalibToCool.py.

◆ untilMod

WriteCalibToCool.untilMod

Definition at line 659 of file WriteCalibToCool.py.

◆ update

WriteCalibToCool.update

Definition at line 87 of file WriteCalibToCool.py.

◆ user

WriteCalibToCool.user

Definition at line 97 of file WriteCalibToCool.py.

◆ val

WriteCalibToCool.val

Definition at line 556 of file WriteCalibToCool.py.

◆ zero

WriteCalibToCool.zero

Definition at line 77 of file WriteCalibToCool.py.

WriteCalibToCool.compare
def compare(item1, item2)
Definition: WriteCalibToCool.py:282
WriteCalibToCool.usage
def usage()
Definition: WriteCalibToCool.py:12