The Gaudi Framework  v36r9p1 (5c15b2bb)
merge.C File Reference
#include <map>
#include <memory>
#include <string>
#include <vector>
#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 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
 Header file for std:chrono::duration-based Counters.
 

Macros

#define GAUDIROOTCNV_ROOTDATABASEMERGER_H
 

Functions

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

Macro Definition Documentation

◆ GAUDIROOTCNV_ROOTDATABASEMERGER_H

#define GAUDIROOTCNV_ROOTDATABASEMERGER_H

Definition at line 13 of file merge.C.

Function Documentation

◆ merge()

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

Definition at line 430 of file merge.C.

430  {
431  s_dbg = dbg;
432  // s_dbg = true;
433 #if 0
434  static bool first = true;
435  if ( first ) {
436  first = false;
437  gSystem->Load("libCintex");
438  gInterpreter->ProcessLine("Cintex::Enable()");
439  //gSystem->Load("libGaudiKernelDict");
440  //gSystem->Load("libGaudiExamplesDict");
441  }
442 #endif
443  // printf("+++ Target:%s\n+++ Source file:%s Fixup:%s Dbg:%s\n",
444  // target,source, fixup ? "YES" : "NO",s_dbg ? "YES" : "NO");
446  MergeStatus ret = m.exists( target ) ? m.attach( target ) : m.create( target );
447  if ( ret == MERGE_SUCCESS ) {
448  ret = m.merge( source );
449  if ( ret == MERGE_SUCCESS ) {
450  m.dumpSections();
451  if ( fixup ) m.createFID();
452  m.saveSections();
453  return m.close();
454  }
455  }
456  ::printf( "+++ Cannot open output file:%s\n", target );
457  return 0;
458 }
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:108
Gaudi::RootDatabaseMerger
Definition: merge.C:43