ATLAS Offline Software
Classes | Functions | Variables
makeDTCalibBlob_pickPhase Namespace Reference

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
 

Function Documentation

◆ athListFormat()

def makeDTCalibBlob_pickPhase.athListFormat (   vals)

Definition at line 144 of file makeDTCalibBlob_pickPhase.py.

144 def athListFormat(vals):
145  if isinstance(vals, list):
146  vals = ",".join(vals)
147  return vals
148 
149 

◆ chmkDir()

def makeDTCalibBlob_pickPhase.chmkDir (   path)

Definition at line 68 of file makeDTCalibBlob_pickPhase.py.

68 def chmkDir( path ):
69  os.umask(0)
70  try:
71  print( "mkdir "+path )
72  os.makedirs(path)
73  except OSError as exception:
74  if exception.errno != errno.EEXIST:
75  raise
76  pass
77 

◆ folderNamesTags()

def makeDTCalibBlob_pickPhase.folderNamesTags (   sql,
  mustr = "mu-60",
  dbname = "CONDBR2",
  verbose = False 
)

Definition at line 232 of file makeDTCalibBlob_pickPhase.py.

232 def folderNamesTags(sql, mustr="mu-60", dbname="CONDBR2", verbose=False):
233  dbstring=f"sqlite://;schema={sql};dbname={dbname}"
234  folderlist, db = getFolderList(dbstring, retdb=True, cleanlist=True)
235  ftags = {}
236  for f in folderlist:
237  try:
238  myfolder=db.getFolder(f)
239  # list tags in folder
240  if verbose: print("*"*20)
241  if verbose: print(f"Reading folder {f}")
242  if verbose: print("*"*20)
243  if verbose: print("Checking tags...")
244  taglist=myfolder.listTags()
245  if verbose: print( f"{len(taglist)} Tags in folder:" )
246  if verbose:
247  for i in taglist: print( i )
248  thetag = ""
249  if len(taglist) > 0:
250  taglist = [ str(t) for t in taglist ]
251  if mustr != "":
252  posstag = [ t for t in taglist if mustr in t ]
253  else:
254  posstag = [ t for t in taglist if "mu-" not in t ]
255  if len(posstag) == 1:
256  thetag = posstag[0]
257  else:
258  if verbose: print(len(posstag), "Choosing first tag")
259  thetag = taglist[0]
260  if verbose: print(f"Will use tag {thetag}")
261  ftags[f] = thetag
262 
263  except Exception as e:
264  continue
265  return ftags
266 

◆ get_latest_run()

def makeDTCalibBlob_pickPhase.get_latest_run ( )

Definition at line 78 of file makeDTCalibBlob_pickPhase.py.

78 def get_latest_run():
79  dqmsite = "atlasdqm.cern.ch"
80  dqmpassfile = "/afs/cern.ch/user/l/larmon/public/atlasdqmpass.txt"
81  if not os.path.isfile(dqmpassfile):
82  return 555555
83  dqmpass = None
84  dqmapi = None
85  with open(dqmpassfile, "r") as f:
86  dqmpass = f.readlines()[0].strip()
87  if ":" not in dqmpass:
88  print("Problem reading dqmpass")
89  sys.exit()
90  try:
91  dqmapi = None #xmlrpc.client.ServerProxy("https://"+dqmpass+"@"+dqmsite)
92  except:
93  print("Failed to connect to atlasdqm, therefore giving a fake run number 555555")
94  return 555555
95  if dqmapi is not None:
96  return dqmapi.get_latest_run()
97  else:
98  return 555555
99 
100 

◆ getFolderList()

def makeDTCalibBlob_pickPhase.getFolderList (   dbstring,
  retdb = False,
  cleanlist = False 
)

Definition at line 29 of file makeDTCalibBlob_pickPhase.py.

29 def getFolderList(dbstring, retdb=False, cleanlist=False):
30  # get database service and open database
31  dbSvc=cool.DatabaseSvcFactory.databaseService()
32  # database accessed via logical name, can also use physical connections
33  try:
34  db=dbSvc.openDatabase(dbstring)
35  except Exception as e:
36  print(f"Problem opening database {e}")
37  sys.exit(-1)
38  print(f"Opened database {dbstring}")
39  # now list the folders
40  folderlist= [ str(s) for s in db.listAllNodes()]
41  if cleanlist:
42  # Careful... some folders have similar names e.g. OFC and OFCCali
43  # folderlist = [j for j in folderlist if all(j not in k if j!=k else True for k in folderlist)]
44  folderlist = [f for f in folderlist if f.count("/") >= 3]
45 
46  if retdb:
47  return folderlist, db
48  else:
49  return folderlist
50 
51 
52 #from mp import parallel_exec
53 #sys.path.append("/afs/cern.ch/user/l/larmon/public/prod/LArPage1/makeJIRA")
54 #import jiraComment as jc
55 

◆ poolCatalog()

def makeDTCalibBlob_pickPhase.poolCatalog (   poolDir,
  catalog = None,
  runNow = True 
)

Definition at line 211 of file makeDTCalibBlob_pickPhase.py.

211 def poolCatalog(poolDir, catalog=None, runNow=True):
212  print(f"** Adding pool files from {poolDir} with pool_insertFileToCatalog **")
213  for f in [os.path.join(poolDir, f) for f in os.listdir(poolDir) if f.endswith(".pool.root")]:
214  cmd1 = "pool_extractFileIdentifier "+f
215  process = subprocess.Popen(cmd1,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
216  out,err = process.communicate()
217  retcode = process.returncode
218  ident=out.decode('ascii').split(" ")[0]
219  cmd=f"pool_insertFileToCatalog.py {f}"
220  if catalog is not None:
221  cmd += f" --catalog='xmlcatalog_file:{catalog}'"
222  print(f"---- {cmd} ({ident})")
223  if runNow:
224  process = subprocess.Popen(cmd,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
225  out,err = process.communicate()
226  retcode = process.returncode
227  if retcode != 0:
228  print(err.decode('ascii')) #print("ERROR: inserting file to catalogue failed")
229  #print(out.decode('ascii'))
230  #print(err.decode('ascii'))
231 

◆ printAndRun()

def makeDTCalibBlob_pickPhase.printAndRun (   cmd,
  outlogpath = None,
  runNow = True 
)

Definition at line 150 of file makeDTCalibBlob_pickPhase.py.

150 def printAndRun(cmd, outlogpath=None, runNow=True):
151  print("**** RUNNING THE FOLLOWING COMMAND ****")
152  print(cmd)
153  print("***************************************")
154  if runNow:
155  process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
156  out,err = process.communicate()
157  retcode = process.returncode
158  print("**** Return code:", retcode, "*"*10)
159  log = None
160  if outlogpath is not None:
161  print(f"See log: {outlogpath}")
162  log = cfile(outlogpath)
163  log.wl("~~~~~~~~ OUTPUT ~~~~~~~~")
164  log.wl(out.decode('ascii'))
165  log.wl("~~~~~~~~~~~~~~~~~~~~~~~~")
166  log.wl("~~~~~~~~ ERROR ~~~~~~~~")
167  log.wl(err.decode('ascii'))
168  log.wl("~~~~~~~~~~~~~~~~~~~~~~~~")
169  else:
170  print("~~~~~~~~ OUTPUT ~~~~~~~~")
171  print(out.decode('ascii'))
172  print("~~~~~~~~~~~~~~~~~~~~~~~~")
173  print("~~~~~~~~ ERROR ~~~~~~~~")
174  print(err.decode('ascii'))
175  print("~~~~~~~~~~~~~~~~~~~~~~~~")
176  if retcode != 0:
177  print("!!!!!!!! DID NOT TERMINATE SUCCESSFULLY... exiting")
178  sys.exit()
179 

◆ run_fillofcphase()

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.

187 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):
188  ''' Step 2 *if needed* - make an sql file from picked OFC phase txt file '''
189  cmd = f"LArNewCalib_FillOFCPhase.py --infile {phases_txt} --outkey {outkey} --isSC --hasid --default {default_phase} --folder {folder} --tag {tag} --outsql {outsql} --outp {outpool} --poolcat {poolcat}"
190  printAndRun(cmd,outlogpath, runNow=runNow)
191 
192 

◆ run_merge()

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.

180 def run_merge(insqlite, inkeys, outsqlite, outpool, Ncoll=0, poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True):
181  ''' Step 1 of the merging. '''
182  insqlite = athListFormat(insqlite)
183  inkeys = athListFormat(inkeys)
184  cmd = f"python -m LArCalibProcessing.LArNewCalib_MergeDB --insqlite {insqlite} --inkeys {inkeys} --outsqlite {outsqlite} --poolfile {outpool} --isSC --poolcat {poolcat} --Ncoll {Ncoll}"
185  printAndRun(cmd,outlogpath, runNow=runNow)
186 

◆ run_ofcpick()

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.

193 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): # insqlite mergeSC.db, outssqlite mergeSCOnl_1.5_phase24052024.db , subdet Picked_phase24052024, phase_sql SCOFCPhase.d)
194  ''' Step 3, picking the phase in the DB '''
195  cmd=f"LArNewCalib_PhysOFCPhasePicker.py --run {run} -b {BCsnapshotDB} --insqlite {insqlite} --poolcat {poolcat} --outsqlite {outsqlite} --isSC --outpdir {outpdir} --outrdir {outrdir} --subdet {outname} --ofcphasetag {tag} --ofcphasesqlite {phase_sql} --Ncoll {Ncoll}"
196  if not isPhys:
197  cmd += " --isCalib --outprefix LArOFCCaliOnePhase"
198 
199  printAndRun(cmd,outlogpath, runNow=runNow)
200 
201 

◆ run_toCoolInline()

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.

202 def run_toCoolInline(mergedDB, outDB, infolders="ConvertToInlineSC", globalTag="LARCALIB-RUN2-00", poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True):# outDB freshConstantsOnl_1.5.db
203  ''' Step 4: flattening the DB '''
204  # connecting all folder level tags to some new global tag..... In calibration processing it is used to be able to define some calib. global tag in sqlite file, and then job do not need to know all individual folder level tags, athena automaticaly uses the one connected to defined global tag...
205  cmd=f"/afs/cern.ch/user/l/larcalib/LArDBTools/python/BuildTagHierarchy.py {mergedDB} {globalTag}"
206  printAndRun(cmd,outlogpath, runNow=runNow)
207  cmd=f"LArCalib_ToCoolInlineConfig.py --insqlite {mergedDB} --infolders {infolders} --poolcat {poolcat} --outsqlite {outDB} --isSC"
208  printAndRun(cmd,outlogpath, runNow=runNow)
209 
210 

Variable Documentation

◆ action

makeDTCalibBlob_pickPhase.action

Definition at line 281 of file makeDTCalibBlob_pickPhase.py.

◆ args

makeDTCalibBlob_pickPhase.args = parser.parse_args()

Definition at line 282 of file makeDTCalibBlob_pickPhase.py.

◆ BCsnapshotDB

makeDTCalibBlob_pickPhase.BCsnapshotDB

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ bcsnapshots

makeDTCalibBlob_pickPhase.bcsnapshots = theLog.bcsnapshots

Definition at line 321 of file makeDTCalibBlob_pickPhase.py.

◆ default

makeDTCalibBlob_pickPhase.default

Definition at line 271 of file makeDTCalibBlob_pickPhase.py.

◆ default_phase

makeDTCalibBlob_pickPhase.default_phase

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ dest

makeDTCalibBlob_pickPhase.dest

Definition at line 271 of file makeDTCalibBlob_pickPhase.py.

◆ doPicking

bool makeDTCalibBlob_pickPhase.doPicking = True

Definition at line 300 of file makeDTCalibBlob_pickPhase.py.

◆ finalDB_flat

makeDTCalibBlob_pickPhase.finalDB_flat = f"{outdir_pool}/freshConstants_1.5_{outtag}.db"

Definition at line 337 of file makeDTCalibBlob_pickPhase.py.

◆ folder

makeDTCalibBlob_pickPhase.folder

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ folderInfo

dictionary makeDTCalibBlob_pickPhase.folderInfo = {}

Definition at line 11 of file makeDTCalibBlob_pickPhase.py.

◆ folders

makeDTCalibBlob_pickPhase.folders

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ folderScript

makeDTCalibBlob_pickPhase.folderScript = f"{args.outdir}/ConvertToInlineSC"

Definition at line 376 of file makeDTCalibBlob_pickPhase.py.

◆ foldersTags

def makeDTCalibBlob_pickPhase.foldersTags = folderNamesTags(mergedDB, mustr="", verbose=True)

Definition at line 366 of file makeDTCalibBlob_pickPhase.py.

◆ globalTag

makeDTCalibBlob_pickPhase.globalTag

Definition at line 398 of file makeDTCalibBlob_pickPhase.py.

◆ help

makeDTCalibBlob_pickPhase.help

Definition at line 270 of file makeDTCalibBlob_pickPhase.py.

◆ infolders

makeDTCalibBlob_pickPhase.infolders

Definition at line 398 of file makeDTCalibBlob_pickPhase.py.

◆ inkeys

makeDTCalibBlob_pickPhase.inkeys

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ insqlite

makeDTCalibBlob_pickPhase.insqlite = theLog.sqldbs

Definition at line 320 of file makeDTCalibBlob_pickPhase.py.

◆ int

makeDTCalibBlob_pickPhase.int

Definition at line 273 of file makeDTCalibBlob_pickPhase.py.

◆ isPhys

makeDTCalibBlob_pickPhase.isPhys

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ lines

list makeDTCalibBlob_pickPhase.lines = ["inputFolders=[]"]

Definition at line 380 of file makeDTCalibBlob_pickPhase.py.

◆ logPath

string makeDTCalibBlob_pickPhase.logPath = f"{args.logDir}/{args.inputLog}"

Definition at line 294 of file makeDTCalibBlob_pickPhase.py.

◆ mergedDB

makeDTCalibBlob_pickPhase.mergedDB = f"{outdir_pool}/mergeSC_{outtag}.db"

Definition at line 335 of file makeDTCalibBlob_pickPhase.py.

◆ mergedPool

makeDTCalibBlob_pickPhase.mergedPool = f"{outdir_pool}/merged_SC_{outtag}.pool.root"

Definition at line 336 of file makeDTCalibBlob_pickPhase.py.

◆ nargs

makeDTCalibBlob_pickPhase.nargs

Definition at line 275 of file makeDTCalibBlob_pickPhase.py.

◆ Ncoll

makeDTCalibBlob_pickPhase.Ncoll

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ None

makeDTCalibBlob_pickPhase.None

Definition at line 278 of file makeDTCalibBlob_pickPhase.py.

◆ outDB

makeDTCalibBlob_pickPhase.outDB

Definition at line 398 of file makeDTCalibBlob_pickPhase.py.

◆ outdir

makeDTCalibBlob_pickPhase.outdir

Definition at line 324 of file makeDTCalibBlob_pickPhase.py.

◆ outdir_logs

string makeDTCalibBlob_pickPhase.outdir_logs = f"{args.outdir}/logs"

Definition at line 328 of file makeDTCalibBlob_pickPhase.py.

◆ outdir_pool

makeDTCalibBlob_pickPhase.outdir_pool = f"{args.outdir}/poolFiles"

Definition at line 327 of file makeDTCalibBlob_pickPhase.py.

◆ outdir_root

makeDTCalibBlob_pickPhase.outdir_root = f"{args.outdir}/rootFiles"

Definition at line 326 of file makeDTCalibBlob_pickPhase.py.

◆ outkey

makeDTCalibBlob_pickPhase.outkey

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ outlogpath

makeDTCalibBlob_pickPhase.outlogpath

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ outname

makeDTCalibBlob_pickPhase.outname

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ outpdir

makeDTCalibBlob_pickPhase.outpdir

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ outpool

makeDTCalibBlob_pickPhase.outpool

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ outrdir

makeDTCalibBlob_pickPhase.outrdir

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ outsql

makeDTCalibBlob_pickPhase.outsql

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ outsqlite

makeDTCalibBlob_pickPhase.outsqlite

Definition at line 346 of file makeDTCalibBlob_pickPhase.py.

◆ outtag

string makeDTCalibBlob_pickPhase.outtag = f"mu{args.Ncoll}_{datetime.datetime.now().strftime('%y%m%d')}"

Definition at line 286 of file makeDTCalibBlob_pickPhase.py.

◆ parser

makeDTCalibBlob_pickPhase.parser = argparse.ArgumentParser()

Definition at line 268 of file makeDTCalibBlob_pickPhase.py.

◆ pd

makeDTCalibBlob_pickPhase.pd

Definition at line 342 of file makeDTCalibBlob_pickPhase.py.

◆ phase_db

makeDTCalibBlob_pickPhase.phase_db

Definition at line 352 of file makeDTCalibBlob_pickPhase.py.

◆ phase_pool

makeDTCalibBlob_pickPhase.phase_pool = f"{outdir_pool}/SC_OFC_Phase_10_{outtag}.pool.root"

Definition at line 339 of file makeDTCalibBlob_pickPhase.py.

◆ phase_sql

makeDTCalibBlob_pickPhase.phase_sql

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ phase_txt

makeDTCalibBlob_pickPhase.phase_txt

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ phaseDBname

string makeDTCalibBlob_pickPhase.phaseDBname = f"SCOFCPhase_{outtag}.db"

Definition at line 349 of file makeDTCalibBlob_pickPhase.py.

◆ phases_txt

makeDTCalibBlob_pickPhase.phases_txt

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ poolcat

makeDTCalibBlob_pickPhase.poolcat = f"{outdir_pool}/mergedPoolCat.xml"

Definition at line 338 of file makeDTCalibBlob_pickPhase.py.

◆ run

makeDTCalibBlob_pickPhase.run

Definition at line 358 of file makeDTCalibBlob_pickPhase.py.

◆ runNow

makeDTCalibBlob_pickPhase.runNow = not args.dryRun

Definition at line 284 of file makeDTCalibBlob_pickPhase.py.

◆ str

makeDTCalibBlob_pickPhase.str

Definition at line 270 of file makeDTCalibBlob_pickPhase.py.

◆ tag

makeDTCalibBlob_pickPhase.tag

Definition at line 353 of file makeDTCalibBlob_pickPhase.py.

◆ theClassType

dictionary makeDTCalibBlob_pickPhase.theClassType = folderInfo[f]["classtype"]

Definition at line 386 of file makeDTCalibBlob_pickPhase.py.

◆ theFolder

makeDTCalibBlob_pickPhase.theFolder = f

Definition at line 383 of file makeDTCalibBlob_pickPhase.py.

◆ theKey

dictionary makeDTCalibBlob_pickPhase.theKey = folderInfo[f]["key"]

Definition at line 385 of file makeDTCalibBlob_pickPhase.py.

◆ theline

string makeDTCalibBlob_pickPhase.theline = f'inputFolders.append(("{theFolder}","{theTag}","{theKey}","{theClassType}"))'

Definition at line 388 of file makeDTCalibBlob_pickPhase.py.

◆ theLog

makeDTCalibBlob_pickPhase.theLog = logFile(logPath)

Definition at line 316 of file makeDTCalibBlob_pickPhase.py.

◆ theTag

def makeDTCalibBlob_pickPhase.theTag = foldersTags[f]

Definition at line 384 of file makeDTCalibBlob_pickPhase.py.

◆ type

makeDTCalibBlob_pickPhase.type

Definition at line 270 of file makeDTCalibBlob_pickPhase.py.

makeDTCalibBlob_pickPhase.athListFormat
def athListFormat(vals)
Definition: makeDTCalibBlob_pickPhase.py:144
makeDTCalibBlob_pickPhase.printAndRun
def printAndRun(cmd, outlogpath=None, runNow=True)
Definition: makeDTCalibBlob_pickPhase.py:150
makeDTCalibBlob_pickPhase.getFolderList
def getFolderList(dbstring, retdb=False, cleanlist=False)
Definition: makeDTCalibBlob_pickPhase.py:29
makeDTCalibBlob_pickPhase.folderNamesTags
def folderNamesTags(sql, mustr="mu-60", dbname="CONDBR2", verbose=False)
Definition: makeDTCalibBlob_pickPhase.py:232
makeDTCalibBlob_pickPhase.run_toCoolInline
def run_toCoolInline(mergedDB, outDB, infolders="ConvertToInlineSC", globalTag="LARCALIB-RUN2-00", poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True)
Definition: makeDTCalibBlob_pickPhase.py:202
makeDTCalibBlob_pickPhase.run_fillofcphase
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)
Definition: makeDTCalibBlob_pickPhase.py:187
makeDTCalibBlob_pickPhase.get_latest_run
def get_latest_run()
Definition: makeDTCalibBlob_pickPhase.py:78
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
makeDTCalibBlob_pickPhase.chmkDir
def chmkDir(path)
Definition: makeDTCalibBlob_pickPhase.py:68
makeDTCalibBlob_pickPhase.run_ofcpick
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)
Definition: makeDTCalibBlob_pickPhase.py:193
Trk::open
@ open
Definition: BinningType.h:40
makeDTCalibBlob_pickPhase.run_merge
def run_merge(insqlite, inkeys, outsqlite, outpool, Ncoll=0, poolcat="mergedPoolCat.xml", outlogpath=None, runNow=True)
Definition: makeDTCalibBlob_pickPhase.py:180
str
Definition: BTagTrackIpAccessor.cxx:11
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
makeDTCalibBlob_pickPhase.poolCatalog
def poolCatalog(poolDir, catalog=None, runNow=True)
Definition: makeDTCalibBlob_pickPhase.py:211
Trk::split
@ split
Definition: LayerMaterialProperties.h:38