The Gaudi Framework  v40r0 (475e45c1)
merge.C File Reference
#include <TBranch.h>
#include <TFile.h>
#include <TInterpreter.h>
#include <TKey.h>
#include <TLeaf.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TTree.h>
#include <TTreeCloner.h>
#include <TUUID.h>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <libgen.h>
Include dependency graph for merge.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Gaudi::ContainerSection
 
class  Gaudi::RootDatabaseMerger
 
union  Gaudi::RootDatabaseMerger::uuid_data
 

Namespaces

 Gaudi
 This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited.
 

Functions

int merge (const char *target, const char *source, bool fixup=false, bool dbg=true)
 

Function Documentation

◆ merge()

int merge ( const char *  target,
const char *  source,
bool  fixup = false,
bool  dbg = true 
)

Definition at line 420 of file merge.C.

420  {
421  s_dbg = dbg;
422  // s_dbg = true;
423 #if 0
424  static bool first = true;
425  if ( first ) {
426  first = false;
427  gSystem->Load("libCintex");
428  gInterpreter->ProcessLine("Cintex::Enable()");
429  //gSystem->Load("libGaudiKernelDict");
430  //gSystem->Load("libGaudiTestSuiteDict");
431  }
432 #endif
433  // printf("+++ Target:%s\n+++ Source file:%s Fixup:%s Dbg:%s\n",
434  // target,source, fixup ? "YES" : "NO",s_dbg ? "YES" : "NO");
436  MergeStatus ret = m.exists( target ) ? m.attach( target ) : m.create( target );
437  if ( ret == MERGE_SUCCESS ) {
438  ret = m.merge( source );
439  if ( ret == MERGE_SUCCESS ) {
440  m.dumpSections();
441  if ( fixup ) m.createFID();
442  m.saveSections();
443  return m.close();
444  }
445  }
446  ::printf( "+++ Cannot open output file:%s\n", target );
447  return 0;
448 }
compareOutputFiles.target
target
Definition: compareOutputFiles.py:489
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:107
Gaudi::RootDatabaseMerger
Definition: merge.C:53