ATLAS Offline Software
|
Classes | |
class | cfile |
class | logFile |
Functions | |
def | getFolderList (dbstring, retdb=False, cleanlist=False) |
def | chmkDir (path) |
def | get_latest_run () |
def | athListFormat (vals) |
def | printAndRun (cmd, outlogpath=None, runNow=True) |
def | run_merge (insqlite, inkeys, outsqlite, outpool, Ncoll=0, poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True) |
def | run_fillofcphase (phases_txt, outkey="LArSCOFCPhase", default_phase=22, folder="/LAR/ElecCalibOflSC/OFCBin/PhysShift", tag="LARElecCalibOflSCOFCBinPhysShift-10", outsql="SCOFCPhase.db", outpool="SC_OFC_Phase_10.pool.root", poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True) |
def | run_ofcpick (insqlite, outsqlite, phase_sql, run, BCsnapshotDB, outpdir="./", outrdir="./", outname="Picked_phase24052024", tag="LARElecCalibOflSCOFCBinPhysShift-10", Ncoll=0, poolcat="mergedPoolCat.xml", isPhys=True, outlogpath=None, runNow=True) |
def | run_toCoolInline (mergedDB, outDB, infolders="ConvertToInlineSC", globalTag="LARCALIB-RUN2-00", poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True) |
def | poolCatalog (poolDir, catalog=None, runNow=True) |
def | folderNamesTags (sql, mustr="mu-60", dbname="CONDBR2", verbose=False) |
Variables | |
dictionary | folderInfo = {} |
parser = argparse.ArgumentParser() | |
type | |
str | |
help | |
dest | |
default | |
int | |
nargs | |
None | |
action | |
args = parser.parse_args() | |
runNow = not args.dryRun | |
string | outtag = f"mu{args.Ncoll}_{datetime.datetime.now().strftime('%y%m%d')}" |
string | logPath = f"{args.logDir}/{args.inputLog}" |
bool | doPicking = True |
theLog = logFile(logPath) | |
insqlite = theLog.sqldbs | |
bcsnapshots = theLog.bcsnapshots | |
outdir | |
string | outdir_root = f"{args.outdir}/rootFiles" |
string | outdir_pool = f"{args.outdir}/poolFiles" |
string | outdir_logs = f"{args.outdir}/logs" |
string | mergedDB = f"{outdir_pool}/mergeSC_{outtag}.db" |
string | mergedPool = f"{outdir_pool}/merged_SC_{outtag}.pool.root" |
string | finalDB_flat = f"{outdir_pool}/freshConstants_1.5_{outtag}.db" |
string | poolcat = f"{outdir_pool}/mergedPoolCat.xml" |
string | phase_pool = f"{outdir_pool}/SC_OFC_Phase_10_{outtag}.pool.root" |
pd | |
inkeys | |
folders | |
outsqlite | |
outpool | |
Ncoll | |
outlogpath | |
string | phaseDBname = f"SCOFCPhase_{outtag}.db" |
phase_db | |
phases_txt | |
phase_txt | |
outkey | |
default_phase | |
folder | |
tag | |
outsql | |
phase_sql | |
run | |
BCsnapshotDB | |
outpdir | |
outrdir | |
outname | |
isPhys | |
def | foldersTags = folderNamesTags(mergedDB, mustr="", verbose=True) |
string | folderScript = f"{args.outdir}/ConvertToInlineSC" |
list | lines = ["inputFolders=[]"] |
theFolder = f | |
def | theTag = foldersTags[f] |
dictionary | theKey = folderInfo[f]["key"] |
dictionary | theClassType = folderInfo[f]["classtype"] |
string | theline = f'inputFolders.append(("{theFolder}","{theTag}","{theKey}","{theClassType}"))' |
infolders | |
outDB | |
globalTag | |
def makeDTCalibBlob_pickPhase.athListFormat | ( | vals | ) |
Definition at line 144 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.chmkDir | ( | path | ) |
Definition at line 68 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.folderNamesTags | ( | sql, | |
mustr = "mu-60" , |
|||
dbname = "CONDBR2" , |
|||
verbose = False |
|||
) |
Definition at line 232 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.get_latest_run | ( | ) |
Definition at line 78 of file makeDTCalibBlob_pickPhase.py.
Definition at line 29 of file makeDTCalibBlob_pickPhase.py.
Definition at line 211 of file makeDTCalibBlob_pickPhase.py.
Definition at line 150 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.run_fillofcphase | ( | phases_txt, | |
outkey = "LArSCOFCPhase" , |
|||
default_phase = 22 , |
|||
folder = "/LAR/ElecCalibOflSC/OFCBin/PhysShift" , |
|||
tag = "LARElecCalibOflSCOFCBinPhysShift-10" , |
|||
outsql = "SCOFCPhase.db" , |
|||
outpool = "SC_OFC_Phase_10.pool.root" , |
|||
poolcat = "mergedPoolCat.xml" , |
|||
outlogpath = None , |
|||
runNow = True |
|||
) |
Step 2 *if needed* - make an sql file from picked OFC phase txt file
Definition at line 187 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.run_merge | ( | insqlite, | |
inkeys, | |||
outsqlite, | |||
outpool, | |||
Ncoll = 0 , |
|||
poolcat = "mergedPoolCat.xml" , |
|||
outlogpath = None , |
|||
runNow = True |
|||
) |
Step 1 of the merging.
Definition at line 180 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.run_ofcpick | ( | insqlite, | |
outsqlite, | |||
phase_sql, | |||
run, | |||
BCsnapshotDB, | |||
outpdir = "./" , |
|||
outrdir = "./" , |
|||
outname = "Picked_phase24052024" , |
|||
tag = "LARElecCalibOflSCOFCBinPhysShift-10" , |
|||
Ncoll = 0 , |
|||
poolcat = "mergedPoolCat.xml" , |
|||
isPhys = True , |
|||
outlogpath = None , |
|||
runNow = True |
|||
) |
Step 3, picking the phase in the DB
Definition at line 193 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.run_toCoolInline | ( | mergedDB, | |
outDB, | |||
infolders = "ConvertToInlineSC" , |
|||
globalTag = "LARCALIB-RUN2-00" , |
|||
poolcat = "mergedPoolCat.xml" , |
|||
outlogpath = None , |
|||
runNow = True |
|||
) |
Step 4: flattening the DB
Definition at line 202 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.action |
Definition at line 281 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.args = parser.parse_args() |
Definition at line 282 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.BCsnapshotDB |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.bcsnapshots = theLog.bcsnapshots |
Definition at line 321 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.default |
Definition at line 271 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.default_phase |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.dest |
Definition at line 271 of file makeDTCalibBlob_pickPhase.py.
bool makeDTCalibBlob_pickPhase.doPicking = True |
Definition at line 300 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.finalDB_flat = f"{outdir_pool}/freshConstants_1.5_{outtag}.db" |
Definition at line 337 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.folder |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
dictionary makeDTCalibBlob_pickPhase.folderInfo = {} |
Definition at line 11 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.folders |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.folderScript = f"{args.outdir}/ConvertToInlineSC" |
Definition at line 376 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.foldersTags = folderNamesTags(mergedDB, mustr="", verbose=True) |
Definition at line 366 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.globalTag |
Definition at line 398 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.help |
Definition at line 270 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.infolders |
Definition at line 398 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.inkeys |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.insqlite = theLog.sqldbs |
Definition at line 320 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.int |
Definition at line 273 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.isPhys |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
list makeDTCalibBlob_pickPhase.lines = ["inputFolders=[]"] |
Definition at line 380 of file makeDTCalibBlob_pickPhase.py.
string makeDTCalibBlob_pickPhase.logPath = f"{args.logDir}/{args.inputLog}" |
Definition at line 294 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.mergedDB = f"{outdir_pool}/mergeSC_{outtag}.db" |
Definition at line 335 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.mergedPool = f"{outdir_pool}/merged_SC_{outtag}.pool.root" |
Definition at line 336 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.nargs |
Definition at line 275 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.Ncoll |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.None |
Definition at line 278 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outDB |
Definition at line 398 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outdir |
Definition at line 324 of file makeDTCalibBlob_pickPhase.py.
string makeDTCalibBlob_pickPhase.outdir_logs = f"{args.outdir}/logs" |
Definition at line 328 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outdir_pool = f"{args.outdir}/poolFiles" |
Definition at line 327 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outdir_root = f"{args.outdir}/rootFiles" |
Definition at line 326 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outkey |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outlogpath |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outname |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outpdir |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outpool |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outrdir |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outsql |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.outsqlite |
Definition at line 346 of file makeDTCalibBlob_pickPhase.py.
string makeDTCalibBlob_pickPhase.outtag = f"mu{args.Ncoll}_{datetime.datetime.now().strftime('%y%m%d')}" |
Definition at line 286 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.parser = argparse.ArgumentParser() |
Definition at line 268 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.pd |
Definition at line 342 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.phase_db |
Definition at line 352 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.phase_pool = f"{outdir_pool}/SC_OFC_Phase_10_{outtag}.pool.root" |
Definition at line 339 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.phase_sql |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.phase_txt |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
string makeDTCalibBlob_pickPhase.phaseDBname = f"SCOFCPhase_{outtag}.db" |
Definition at line 349 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.phases_txt |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.poolcat = f"{outdir_pool}/mergedPoolCat.xml" |
Definition at line 338 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.run |
Definition at line 358 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.runNow = not args.dryRun |
Definition at line 284 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.str |
Definition at line 270 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.tag |
Definition at line 353 of file makeDTCalibBlob_pickPhase.py.
dictionary makeDTCalibBlob_pickPhase.theClassType = folderInfo[f]["classtype"] |
Definition at line 386 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.theFolder = f |
Definition at line 383 of file makeDTCalibBlob_pickPhase.py.
dictionary makeDTCalibBlob_pickPhase.theKey = folderInfo[f]["key"] |
Definition at line 385 of file makeDTCalibBlob_pickPhase.py.
string makeDTCalibBlob_pickPhase.theline = f'inputFolders.append(("{theFolder}","{theTag}","{theKey}","{theClassType}"))' |
Definition at line 388 of file makeDTCalibBlob_pickPhase.py.
Definition at line 316 of file makeDTCalibBlob_pickPhase.py.
def makeDTCalibBlob_pickPhase.theTag = foldersTags[f] |
Definition at line 384 of file makeDTCalibBlob_pickPhase.py.
makeDTCalibBlob_pickPhase.type |
Definition at line 270 of file makeDTCalibBlob_pickPhase.py.