ATLAS Offline Software
DQHistogramMergeMod.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 import os
4 
5 CWD = os.getcwd()
6 
7 
8 from ROOT import gROOT
9 
10 
13 from ROOT import gSystem
14 
15 
16 gSystem.Load('libDataQualityUtils')
17 from ROOT import dqutils
18 
19 os.chdir(CWD)
20 gROOT.SetBatch(True)
21 
22 MODVERSION = '$Id: DQHistogramMergeMod.py,v 1.8 2009-05-12 11:38:35 ponyisi Exp $'
23 
24 DoProcMon=False
25 if DoProcMon:
26  from . import DQProcMonitor
27  DQProcMonitor.startProcMonThread()
28 
29 def DQHistogramMerge( listFileName, outFileName, runPostProcessing, directoryRegularExpression=".*", histogramRegularExpression=".*", isIncremental=False, compressionLevel=1,debugLevel=0,doTiming=False ):
30 
32  if directoryRegularExpression!=".*" or histogramRegularExpression!=".*":
33  mf.setDirectoryRegEx(directoryRegularExpression)
34  mf.setHistogramRegEx(histogramRegularExpression)
35  mf.setDebugLevel(debugLevel)
36  mf.setCompressionLevel(compressionLevel)
37  if (doTiming): mf.doTiming()
38 
39  mf.mergeFiles( outFileName, listFileName )
40  mf.mergeLBintervals( outFileName )
41 
42  if runPostProcessing:
43  from . import DQPostProcessMod
44  DQPostProcessMod.DQPostProcess( outFileName, isIncremental )
dqutils::MonitoringFile
Definition: MonitoringFile.h:54
python.DQHistogramMergeMod.DQHistogramMerge
def DQHistogramMerge(listFileName, outFileName, runPostProcessing, directoryRegularExpression=".*", histogramRegularExpression=".*", isIncremental=False, compressionLevel=1, debugLevel=0, doTiming=False)
Definition: DQHistogramMergeMod.py:29