#include "RConfig.h"
#include <string>
#include "TChain.h"
#include "TFile.h"
#include "THashList.h"
#include "TH1.h"
#include "THStack.h"
#include "TKey.h"
#include "TObjString.h"
#include "Riostream.h"
#include "TClass.h"
#include "TSystem.h"
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | AddFile (TList *sourcelist, std::string entry, int newcomp) |
int | MergeRootfile (TDirectory *target, TList *sourcelist) |
int | main (int argc, char **argv) |
Variables | |
TList * | FileList |
TFile * | Target |
TFile * | Source |
Bool_t | noTrees |
Bool_t | fastMethod |
Bool_t | reoptimize |
int AddFile | ( | TList * | sourcelist, | |
std::string | entry, | |||
int | newcomp | |||
) |
Definition at line 174 of file hadd.cxx.
References TList::Add(), fastMethod, getline(), j, kFALSE, line, TFile::Open(), and size_t.
Referenced by G__G__Gui2_290_0_7(), G__G__ProofPlayer_133_0_9(), G__G__Tree_236_0_8(), and main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 86 of file hadd.cxx.
References a, AddFile(), fastMethod, FileList, gSystem, i, TObject::IsZombie(), j, kFALSE, kTRUE, TSystem::Load(), MergeRootfile(), noTrees, TFile::Open(), reoptimize, TFile::SetCompressionLevel(), snprintf, and Target.
void MergeRootfile | ( | TDirectory * | target, | |
TList * | sourcelist | |||
) |
Definition at line 208 of file hadd.cxx.
References TChain::Add(), TList::Add(), TH1::AddDirectory(), TList::After(), TDirectory::cd(), xmlio::Class, TCollection::Clone(), TString::Data(), error, fastMethod, TDirectoryFile::FindKey(), TList::FindObject(), THashList::FindObject(), TList::First(), TString::Form(), gDirectory, TDirectoryFile::Get(), TClass::GetClass(), TDirectoryFile::GetDirectory(), TDirectory::GetDirectory(), THStack::GetHists(), TDirectory::GetListOfKeys(), TNamed::GetName(), TCollection::GetSize(), TClass::InheritsFrom(), kFALSE, kMustCleanup, TObject::kSingleKey, kTRUE, l, TString::Length(), TChain::ls(), TChain::Merge(), noTrees, TFile::Open(), TKey::ReadObj(), TString::Remove(), reoptimize, and TObject::ResetBit().