Exemplo n.º 1
0
 def merge(self,directories):
     with root_quiet(filters=["\[TFile::Cp\]"]):
         merger = ROOT.TFileMerger()
         if os.path.exists(self.path): os.remove(self.path)
         merger.OutputFile(self.path)
         for directory in directories: merger.AddFile(directory+'/'+self.name)
         merger.Merge()
     print '{0} created'.format(self.path)
Exemplo n.º 2
0
def generate_dictionary(name,base):
    cwd = os.getcwd()
    os.chdir(tempfile.mkdtemp())
    with root_quiet(filters=["TClassTable::Add:0: RuntimeWarning","Note: Link requested for already"]):
        ROOT.gInterpreter.GenerateDictionary(name,base)
    os.chdir(cwd)