#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 <libgen.h>
#include <map>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
 | 
| namespace   | 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. 
  | 
|   | 
 | 
| int  | merge (const char *target, const char *source, bool fixup=false, bool dbg=true) | 
|   | 
◆ merge()
      
        
          | int merge  | 
          ( | 
          const char * |           target,  | 
        
        
           | 
           | 
          const char * |           source,  | 
        
        
           | 
           | 
          bool |           fixup = false,  | 
        
        
           | 
           | 
          bool |           dbg = true ) | 
        
      
 
Definition at line 417 of file merge.C.
  417                                                                                         {
  418  s_dbg = dbg;
  419  
  420#if 0
  421  static bool first = true;
  422  if ( first ) {
  423    first = false;
  424    gSystem->Load("libCintex");
  425    gInterpreter->ProcessLine("Cintex::Enable()");
  426    
  427    
  428  }
  429#endif
  430  
  431  
  433  MergeStatus        ret = 
m.exists( target ) ? 
m.attach( target ) : 
m.create( target );
 
  434  if ( ret == MERGE_SUCCESS ) {
  435    ret = 
m.merge( source );
 
  436    if ( ret == MERGE_SUCCESS ) {
  438      if ( fixup ) 
m.createFID();
 
  441    }
  442  }
  443  ::printf( "+++ Cannot open output file:%s\n", target );
  444  return 0;
  445}