ATLAS Offline Software
Classes | Functions | Variables
python.TileCalibTools Namespace Reference

Classes

class  TileASCIIParser
 
class  TileASCIIParser2
 
class  TileASCIIParser3
 
class  TileBlobReader
 
class  TileBlobWriter
 

Functions

def getLastRunNumber ()
 
def getPromptCalibRunNumber ()
 
def getAliasFromFile (aliastype='Current')
 
def getTilePrefix (ofl=True, splitOnlInOflSchema=True)
 
def getTilePrefixes ()
 
def getAthenaFolderDescr (type="run-lumi")
 
def getAthenaFolderType (folderDescr)
 
def openDb (db, instance, mode="READONLY", schema="COOLOFL_TILE", sqlfn="tileSqlite.db")
 
def openDbConn (connStr, mode="READONLY")
 
def coolTimeFromRunLumi (runNum, lbkNum)
 
def decodeTimeString (timeString)
 
def getCoolValidityKey (pointInTime, isSince=True)
 
def getFolderTag (db, folderPath, globalTag)
 
def runLumiFromCoolTime (iov)
 
def copyFolder (dbr, dbw, folder, tagr, tagw, chanNum, pointInTime1, pointInTime2)
 

Variables

 log
 
 MINRUN
 
 MINLBK
 
 MAXRUN
 
 MAXLBK
 
 UNIX2COOL
 
 UNIXTMAX
 
 LASPARTCHAN
 

Function Documentation

◆ coolTimeFromRunLumi()

def python.TileCalibTools.coolTimeFromRunLumi (   runNum,
  lbkNum 
)
Returns COOL timeStamp build from run and lumi block numbers

Definition at line 318 of file TileCalibTools.py.

318 def coolTimeFromRunLumi(runNum, lbkNum):
319  """
320  Returns COOL timeStamp build from run and lumi block numbers
321  """
322  return (int(runNum)<<32) + int(lbkNum)
323 
324 #
325 #______________________________________________________________________

◆ copyFolder()

def python.TileCalibTools.copyFolder (   dbr,
  dbw,
  folder,
  tagr,
  tagw,
  chanNum,
  pointInTime1,
  pointInTime2 
)

Definition at line 446 of file TileCalibTools.py.

446 def copyFolder(dbr, dbw, folder, tagr, tagw, chanNum, pointInTime1, pointInTime2):
447 
448  log.info("Copy channel %i", chanNum)
449 
450  folderR = dbr.getFolder(folder)
451  folderW = dbw.getFolder(folder)
452 
453  chansel = cool.ChannelSelection(chanNum)
454 
455  iov1 = getCoolValidityKey(pointInTime1,False)
456  iov2 = getCoolValidityKey(pointInTime2,False)
457 
458  if tagr=='':
459  multiVersion = False
460  objs = folderR.browseObjects(iov1,iov2,chansel)
461  else:
462  multiVersion = True
463  objs = folderR.browseObjects(iov1,iov2,chansel,tagr)
464  while objs.goToNext():
465  obj=objs.currentRef()
466  sinceCool=obj.since()
467  if sinceCool < iov1:
468  sinceCool = iov1
469  untilCool=obj.until()
470  data=obj.payload()
471  sinceTup = runLumiFromCoolTime(sinceCool)
472  untilTup = runLumiFromCoolTime(untilCool)
473  log.debug("Copy entry: [%i,%i] - [%i,%i]: %s", sinceTup[0],sinceTup[1],untilTup[0],untilTup[1], data)
474  folderW.storeObject(sinceCool, untilCool, data, chanNum, tagw, multiVersion)
475 
476 
477 
478 #======================================================================
479 #===
480 #=== TileBlobWriter
481 #===
482 #======================================================================
483 
484 #
485 #______________________________________________________________________

◆ decodeTimeString()

def python.TileCalibTools.decodeTimeString (   timeString)
Retruns UNIX time stamp given an input time string

Definition at line 326 of file TileCalibTools.py.

326 def decodeTimeString(timeString):
327  """
328  Retruns UNIX time stamp given an input time string
329  """
330  return int(time.mktime(time.strptime(timeString,"%Y-%m-%d %H:%M:%S")))
331 
332 #
333 #______________________________________________________________________

◆ getAliasFromFile()

def python.TileCalibTools.getAliasFromFile (   aliastype = 'Current')
Return name of top-level tag for 'Current' or 'CurrentES' or 'Next' or 'NextES' aliases

Definition at line 126 of file TileCalibTools.py.

126 def getAliasFromFile(aliastype='Current'):
127  """
128  Return name of top-level tag for 'Current' or 'CurrentES' or 'Next' or 'NextES' aliases
129  """
130 
131  aliasfolder = '/afs/cern.ch/atlas/conditions/poolcond/buffer/BestKnowledge'
132  try:
133  falias = open('%s/%s' % (aliasfolder, aliastype))
134  alias = falias.readline()
135  falias.close()
136  return alias.replace('\n','').replace('*','')
137  except Exception:
138  import os
139  aliasfolder = os.getcwd()+'/BestKnowledge'
140  print("Looking for %s in %s" % (aliastype,aliasfolder))
141  try:
142  falias = open('%s/%s' % (aliasfolder, aliastype))
143  alias = falias.readline()
144  falias.close()
145  return alias.replace('\n','').replace('*','')
146  except Exception:
147  return aliastype.upper()
148 
149 #
150 #______________________________________________________________________

◆ getAthenaFolderDescr()

def python.TileCalibTools.getAthenaFolderDescr (   type = "run-lumi")
Returns the run-lumi type folder description needed to read back the folder content
as a CondAttrListCollection in Athena.

Definition at line 179 of file TileCalibTools.py.

179 def getAthenaFolderDescr(type="run-lumi"):
180  """
181  Returns the run-lumi type folder description needed to read back the folder content
182  as a CondAttrListCollection in Athena.
183  """
184  desc ='<timeStamp>'+type+'</timeStamp>'
185  desc+='<addrHeader><address_header service_type="71" clid="1238547719" /></addrHeader>'
186  desc+='<typeName>CondAttrListCollection</typeName>'
187  return desc
188 
189 #
190 #______________________________________________________________________

◆ getAthenaFolderType()

def python.TileCalibTools.getAthenaFolderType (   folderDescr)

Definition at line 191 of file TileCalibTools.py.

191 def getAthenaFolderType(folderDescr):
192  type = re.compile(".*<timeStamp>(.*)</timeStamp>.*").search(folderDescr)
193  if not type:
194  raise Exception("No folder type info found in \'%s\'" % folderDescr)
195  return type.groups()[0]
196 
197 #
198 #______________________________________________________________________

◆ getCoolValidityKey()

def python.TileCalibTools.getCoolValidityKey (   pointInTime,
  isSince = True 
)
The interpretation of pointInTime depends on their type:
- tuple(int,int) : run and lbk number
- integer        : Values are interpreted as unix time stamps
- string         : time stamp of format 'yyyy-mm-dd hh:mm:ss'

Definition at line 334 of file TileCalibTools.py.

334 def getCoolValidityKey(pointInTime, isSince=True):
335  """
336  The interpretation of pointInTime depends on their type:
337  - tuple(int,int) : run and lbk number
338  - integer : Values are interpreted as unix time stamps
339  - string : time stamp of format 'yyyy-mm-dd hh:mm:ss'
340  """
341 
342  validityKey = None
343 
344  #=== string: convert to unix time and treat as latter
345  if isinstance(pointInTime, str):
346  pointInTime = decodeTimeString(pointInTime)
347 
348  #=== integer: unix time stamp
349  if isinstance(pointInTime, int):
350  if pointInTime >=0:
351  validityKey = pointInTime * UNIX2COOL
352  else:
353  if isSince:
354  validityKey = int(time.time()) * UNIX2COOL
355  else :
356  validityKey = cool.ValidityKeyMax
357  #=== run-lumi tuple
358  elif isinstance(pointInTime, tuple):
359  validityKey = coolTimeFromRunLumi(pointInTime[0],pointInTime[1])
360  #=== catch other types
361  else:
362  raise Exception("Unrecognized pointInTime type=%s" % type(pointInTime))
363  return cool.ValidityKey(validityKey)
364 
365 
366 #
367 #____________________________________________________________________

◆ getFolderTag()

def python.TileCalibTools.getFolderTag (   db,
  folderPath,
  globalTag 
)

Definition at line 368 of file TileCalibTools.py.

368 def getFolderTag(db, folderPath, globalTag):
369 
370  tag=""
371  if globalTag.startswith("/") or globalTag.startswith("TileO") or globalTag.startswith("CALO"):
372  tag = globalTag
373  log.warning("Using tag as-is for folder %s", folderPath)
374  elif '/TILE/ONL01' in folderPath:
375  log.info("Using empty tag for single-version folder %s", folderPath)
376  elif globalTag.startswith(" "):
377  log.warning("Using empty tag for folder %s", folderPath)
378  elif globalTag=="":
379  tag = TileCalibUtils.getFullTag(folderPath, globalTag)
380  log.warning("Using tag with empty suffix for folder %s", folderPath)
381  else:
382  if folderPath.startswith('/CALO'):
383  dbname = 'COOLOFL_CALO' if folderPath.startswith('/CALO/Ofl') else 'COOLONL_CALO'
384  else:
385  dbname ='COOLOFL_TILE'
386  schema=dbname+'/CONDBR2'
387  if isinstance(db, str):
388  if 'OFLP200' in db or 'MC' in db:
389  schema=dbname+'/OFLP200'
390  if not globalTag.startswith("OFLCOND"):
391  if globalTag.startswith("RUN"):
392  globalTag='OFLCOND-'+globalTag
393  log.info("Using Simulation global tag \'%s\'", globalTag)
394  elif 'COMP200' in db or 'RUN1' in db:
395  schema=dbname+'/COMP200'
396  if globalTag!='UPD1' and globalTag!='UPD4' and ('UPD1' in globalTag or 'UPD4' in globalTag or 'COND' not in globalTag):
397  log.info("Using suffix \'%s\' as it is", globalTag)
398  else:
399  globalTag='COMCOND-BLKPA-RUN1-06'
400  log.info("Using RUN1 global tag \'%s\'", globalTag)
401  if schema == dbname+'/CONDBR2':
402  if globalTag=='CURRENT' or globalTag=='UPD4' or globalTag=='':
403  globalTag=getAliasFromFile('Current')
404  log.info("Resolved CURRENT globalTag to \'%s\'", globalTag)
405  elif globalTag=='CURRENTES' or globalTag=='UPD1':
406  globalTag=getAliasFromFile('CurrentES')
407  log.info("Resolved CURRENT ES globalTag to \'%s\'", globalTag)
408  elif globalTag=='NEXT':
409  globalTag=getAliasFromFile('Next')
410  log.info("Resolved NEXT globalTag to \'%s\'", globalTag)
411  elif globalTag=='NEXTES':
412  globalTag=getAliasFromFile('NextES')
413  log.info("Resolved NEXT ES globalTag to \'%s\'", globalTag)
414  globalTag=globalTag.replace('*','')
415  if 'UPD1' in globalTag or 'UPD4' in globalTag or 'COND' not in globalTag:
416  tag = TileCalibUtils.getFullTag(folderPath, globalTag)
417  if tag.startswith('Calo'):
418  tag='CALO'+tag[4:]
419  log.info("Resolved localTag \'%s\' to folderTag \'%s\'", globalTag,tag)
420  else:
421  if not isinstance(db, str):
422  try:
423  folder = db.getFolder(folderPath)
424  tag = folder.resolveTag(globalTag)
425  log.info("Resolved globalTag \'%s\' to folderTag \'%s\'", globalTag,tag)
426  schema=""
427  except Exception as e:
428  log.warning(e)
429  log.warning("Using %s to resolve globalTag",schema)
430  if len(schema):
431  dbr = openDbConn(schema,'READONLY')
432  folder = dbr.getFolder(folderPath)
433  tag = folder.resolveTag(globalTag)
434  dbr.closeDatabase()
435  log.info("Resolved globalTag \'%s\' to folderTag \'%s\'", globalTag,tag)
436 
437  return tag
438 
439 #
440 #____________________________________________________________________

◆ getLastRunNumber()

def python.TileCalibTools.getLastRunNumber ( )
Return the run number of next run to be taken in the pit

Definition at line 55 of file TileCalibTools.py.

55 def getLastRunNumber():
56  """
57  Return the run number of next run to be taken in the pit
58  """
59 
60  urls = ["http://atlas-service-db-runlist.web.cern.ch/atlas-service-db-runlist/cgi-bin/latestRun.py",
61  "http://pcata007.cern.ch/cgi-bin/getLastRunNumber.py",
62  "http://pcata007.cern.ch/latestRun"]
63 
64  run=0
65  for url in urls:
66  try:
67  for line in urlopen(url).readlines():
68  r=line.strip()
69  if r.isdigit():
70  run=int(r)
71  break
72  if run>0:
73  break
74  except Exception:
75  continue
76 
77  return max(run+1,222222)
78 
79 #
80 #______________________________________________________________________

◆ getPromptCalibRunNumber()

def python.TileCalibTools.getPromptCalibRunNumber ( )
Return the minimal run number of runs in prompt calibration loop

Definition at line 81 of file TileCalibTools.py.

82  """
83  Return the minimal run number of runs in prompt calibration loop
84  """
85 
86  promptCalibRuns = []
87 
88  try:
89  fin = open("/afs/cern.ch/user/a/atlcond/scratch0/nemo/prod/web/calibruns.txt","r").read().split()
90  for line in fin:
91  try:
92  if line:
93  promptCalibRuns.append( int(line) )
94  except ValueError:
95  pass
96  except Exception:
97  promptCalibRuns=[]
98 
99  if len(promptCalibRuns)==0:
100 
101  urls = ["http://pcata007.cern.ch/cgi-bin/getBulkRunNumber.py",
102  "http://pcata007.cern.ch/latestRun"]
103 
104  run=0
105  for url in urls:
106  try:
107  for line in urlopen(url).readlines():
108  r=line.strip()
109  if r.isdigit():
110  run=int(r)
111  break
112  if run>0:
113  promptCalibRuns=[run]
114  break
115  except Exception:
116  continue
117 
118  if len(promptCalibRuns) >= 1:
119  promptCalibRuns.sort()
120  return promptCalibRuns[0]
121  else:
122  return getLastRunNumber()
123 
124 #
125 #______________________________________________________________________

◆ getTilePrefix()

def python.TileCalibTools.getTilePrefix (   ofl = True,
  splitOnlInOflSchema = True 
)
Returns the common Tile prefix used for all COOL folders.
ofl = False ... single version folders
ofl = True  ... multiversion folders
splitOnlInOflSchema = False ... offline only folders or
                splitOnline folders in Online schema
splitOnlInOflSchema = True ... splitOnlineFolders in
                offline schema

Definition at line 151 of file TileCalibTools.py.

151 def getTilePrefix(ofl=True,splitOnlInOflSchema=True):
152  """
153  Returns the common Tile prefix used for all COOL folders.
154  ofl = False ... single version folders
155  ofl = True ... multiversion folders
156  splitOnlInOflSchema = False ... offline only folders or
157  splitOnline folders in Online schema
158  splitOnlInOflSchema = True ... splitOnlineFolders in
159  offline schema
160  """
161  if ofl:
162  if splitOnlInOflSchema:
163  return "/TILE/OFL02/"
164  else:
165  return "/TILE/OFL01/"
166  else:
167  return "/TILE/ONL01/"
168 
169 #
170 #______________________________________________________________________

◆ getTilePrefixes()

def python.TileCalibTools.getTilePrefixes ( )
Returns a list of all TILE folder prefixes

Definition at line 171 of file TileCalibTools.py.

171 def getTilePrefixes():
172  """
173  Returns a list of all TILE folder prefixes
174  """
175  return ["/TILE/ONL01/","/TILE/OFL01/","/TILE/OFL02/"]
176 
177 #
178 #______________________________________________________________________

◆ openDb()

def python.TileCalibTools.openDb (   db,
  instance,
  mode = "READONLY",
  schema = "COOLOFL_TILE",
  sqlfn = "tileSqlite.db" 
)
Opens a COOL db connection.
- db:       The DB type. The following names are recognized:
                * SQLITE: Opens file mentioned in sqlfn parameter
                * ORACLE or FRONTIER: Opens ORACLE DB, forces READONLY
- instance: One of valid instances - CONDBR2 OFLP200 COMP200 CMCP200
- mode:     Can be READONLY (default), RECREATE or UPDATE
- schema:   One of valid schemas - COOLONL_CALO COOLOFL_CALO COOLONL_LAR COOLOFL_LAR COOLONL_TILE COOLOFL_TILE
- sqlfn:    Name of sqlite file if db is SQLITE

Definition at line 199 of file TileCalibTools.py.

199 def openDb(db, instance, mode="READONLY", schema="COOLOFL_TILE", sqlfn="tileSqlite.db"):
200  """
201  Opens a COOL db connection.
202  - db: The DB type. The following names are recognized:
203  * SQLITE: Opens file mentioned in sqlfn parameter
204  * ORACLE or FRONTIER: Opens ORACLE DB, forces READONLY
205  - instance: One of valid instances - CONDBR2 OFLP200 COMP200 CMCP200
206  - mode: Can be READONLY (default), RECREATE or UPDATE
207  - schema: One of valid schemas - COOLONL_CALO COOLOFL_CALO COOLONL_LAR COOLOFL_LAR COOLONL_TILE COOLOFL_TILE
208  - sqlfn: Name of sqlite file if db is SQLITE
209  """
210  #=== check for valid db names
211  if db is not None:
212  validDb = ["SQLITE", "ORACLE", "FRONTIER"]
213  if db not in validDb:
214  raise Exception( "DB not valid: %s, valid DBs are: %s" % (db,validDb) )
215  elif db == "ORACLE" or db == "FRONTIER":
216  mode = "READONLY"
217 
218  #=== check for valid instance names
219  validInstance = ["COMP200", "CONDBR2", "CMCP200", "OFLP200"]
220  if instance not in validInstance:
221  raise Exception( "Instance not valid: %s, valid instance are: %s" % (instance,validInstance) )
222 
223  #=== check for valid schema names
224  validSchema = ["COOLONL_TILE","COOLOFL_TILE"]
225  if schema not in validSchema:
226  raise Exception( "Schema not valid: %s, valid schemas are: %s" % (schema,validSchema) )
227 
228  #=== construct connection string
229  connStr = ""
230  if db=='SQLITE':
231  if mode=="READONLY" and not os.path.exists(sqlfn):
232  raise Exception( "Sqlite file %s does not exist" % (sqlfn) )
233  if (mode=="RECREATE" or mode=="UPDATE") and not os.path.exists(os.path.dirname(sqlfn)):
234  dirn=os.path.dirname(sqlfn)
235  if dirn:
236  os.makedirs(dirn)
237  connStr="sqlite://X;schema=%s;dbname=%s" % (sqlfn,instance)
238  elif db=='FRONTIER':
239  connStr='frontier://ATLF/()/;schema=ATLAS_%s;dbname=%s' % (schema,instance)
240  elif db=='ORACLE':
241  connStr='oracle://%s;schema=ATLAS_%s;dbname=%s' % ('ATLAS_COOLPROD',schema,instance)
242  else:
243  connStr=schema+'/'+instance
244 
245  return openDbConn(connStr, mode)
246 
247 #
248 #______________________________________________________________________

◆ openDbConn()

def python.TileCalibTools.openDbConn (   connStr,
  mode = "READONLY" 
)
Opens a COOL db connection.
- connStr: The DB connection string
- mode:    Can be READONLY (default), RECREATE or UPDATE
           or ORACLE or FRONTIER if connStr is only short name of the database

Definition at line 249 of file TileCalibTools.py.

249 def openDbConn(connStr, mode="READONLY"):
250  """
251  Opens a COOL db connection.
252  - connStr: The DB connection string
253  - mode: Can be READONLY (default), RECREATE or UPDATE
254  or ORACLE or FRONTIER if connStr is only short name of the database
255  """
256 
257  #=== split the name into schema and dbinstance
258  splitname=connStr.split('/')
259  if (len(splitname)!=2): # string connection ready to be used as it is
260  connStr_new=connStr
261  else: # construct connection string
262  schema=splitname[0]
263  instance=splitname[1]
264  if mode=="ORACLE":
265  connStr_new='oracle://%s;schema=ATLAS_%s;dbname=%s' % ('ATLAS_COOLPROD',schema,instance)
266  else:
267  connStr_new='frontier://ATLF/()/;schema=ATLAS_%s;dbname=%s' % (schema,instance)
268 
269  #=== get dbSvc and print header info
270  dbSvc = cool.DatabaseSvcFactory.databaseService()
271  log.info( "---------------------------------------------------------------------------------" )
272  log.info( "-------------------------- TileCalibTools.openDbConn ----------------------------" )
273  log.info( "- using COOL version %s", dbSvc.serviceVersion() )
274  log.info( "- opening TileDb: %s",connStr_new )
275  log.info( "- mode: %s", mode )
276  log.info( "---------------------------------------------------------------------------------" )
277 
278  #=== action depends on mode
279  if mode in ["READONLY","ORACLE","FRONTIER","",None]:
280  #=== open read only
281  try:
282  db=dbSvc.openDatabase(connStr_new,True)
283  except Exception as e:
284  log.debug( e )
285  log.critical("Could not connect to %s" % connStr_new )
286  return None
287  return db
288  elif mode=="RECREATE":
289  #=== recreating database
290  dbSvc.dropDatabase(connStr_new)
291  try:
292  db = dbSvc.createDatabase(connStr_new)
293  except Exception as e:
294  log.debug( e )
295  log.critical( "Could not create database, giving up..." )
296  return None
297  return db
298  elif mode=="UPDATE":
299  #=== update database
300  try:
301  db=dbSvc.openDatabase(connStr_new,False)
302  except Exception as e:
303  log.debug( e )
304  log.warning( "Could not connect to \'%s\', trying to create it....", connStr_new )
305  try:
306  db=dbSvc.createDatabase(connStr_new)
307  except Exception as e:
308  log.debug( e )
309  log.critical( "Could not create database, giving up..." )
310  return None
311  return db
312  else:
313  log.error("Mode \"%s\" not recognized", mode )
314  return None
315 
316 #
317 #______________________________________________________________________

◆ runLumiFromCoolTime()

def python.TileCalibTools.runLumiFromCoolTime (   iov)

Definition at line 441 of file TileCalibTools.py.

441 def runLumiFromCoolTime(iov):
442  return (int(iov >> 32), int(iov & 0xFFFFFFFF))
443 
444 #
445 #____________________________________________________________________

Variable Documentation

◆ LASPARTCHAN

python.TileCalibTools.LASPARTCHAN

Definition at line 51 of file TileCalibTools.py.

◆ log

python.TileCalibTools.log

Definition at line 32 of file TileCalibTools.py.

◆ MAXLBK

python.TileCalibTools.MAXLBK

Definition at line 47 of file TileCalibTools.py.

◆ MAXRUN

python.TileCalibTools.MAXRUN

Definition at line 46 of file TileCalibTools.py.

◆ MINLBK

python.TileCalibTools.MINLBK

Definition at line 45 of file TileCalibTools.py.

◆ MINRUN

python.TileCalibTools.MINRUN

Definition at line 44 of file TileCalibTools.py.

◆ UNIX2COOL

python.TileCalibTools.UNIX2COOL

Definition at line 48 of file TileCalibTools.py.

◆ UNIXTMAX

python.TileCalibTools.UNIXTMAX

Definition at line 49 of file TileCalibTools.py.

read
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
Definition: openCoraCool.cxx:569
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.TileCalibTools.openDb
def openDb(db, instance, mode="READONLY", schema="COOLOFL_TILE", sqlfn="tileSqlite.db")
Definition: TileCalibTools.py:199
python.TileCalibTools.getPromptCalibRunNumber
def getPromptCalibRunNumber()
Definition: TileCalibTools.py:81
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
python.TileCalibTools.decodeTimeString
def decodeTimeString(timeString)
Definition: TileCalibTools.py:326
python.TileCalibTools.getLastRunNumber
def getLastRunNumber()
Definition: TileCalibTools.py:55
python.TileCalibTools.getTilePrefixes
def getTilePrefixes()
Definition: TileCalibTools.py:171
python.TileCalibTools.openDbConn
def openDbConn(connStr, mode="READONLY")
Definition: TileCalibTools.py:249
python.TileCalibTools.coolTimeFromRunLumi
def coolTimeFromRunLumi(runNum, lbkNum)
Definition: TileCalibTools.py:318
python.TileCalibTools.runLumiFromCoolTime
def runLumiFromCoolTime(iov)
Definition: TileCalibTools.py:441
search
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
Definition: hcg.cxx:738
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
python.TileCalibTools.getTilePrefix
def getTilePrefix(ofl=True, splitOnlInOflSchema=True)
Definition: TileCalibTools.py:151
python.TileCalibTools.copyFolder
def copyFolder(dbr, dbw, folder, tagr, tagw, chanNum, pointInTime1, pointInTime2)
Definition: TileCalibTools.py:446
python.TileCalibTools.getAthenaFolderType
def getAthenaFolderType(folderDescr)
Definition: TileCalibTools.py:191
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:26
python.TileCalibTools.getCoolValidityKey
def getCoolValidityKey(pointInTime, isSince=True)
Definition: TileCalibTools.py:334
Trk::open
@ open
Definition: BinningType.h:40
python.TileCalibTools.getAthenaFolderDescr
def getAthenaFolderDescr(type="run-lumi")
Definition: TileCalibTools.py:179
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
python.TileCalibTools.getFolderTag
def getFolderTag(db, folderPath, globalTag)
Definition: TileCalibTools.py:368
python.TileCalibTools.getAliasFromFile
def getAliasFromFile(aliastype='Current')
Definition: TileCalibTools.py:126
Trk::split
@ split
Definition: LayerMaterialProperties.h:38
TileCalibUtils::getFullTag
static std::string getFullTag(const std::string &folder, const std::string &tag)
Returns the full tag string, composed of camelized folder name and tag part.
Definition: TileCalibUtils.cxx:33