hadd.cxx File Reference

#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

TListFileList
TFileTarget
TFileSource
Bool_t noTrees
Bool_t fastMethod
Bool_t reoptimize


Function Documentation

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().

Referenced by hadd(), and main().


Variable Documentation

Bool_t fastMethod

Definition at line 79 of file hadd.cxx.

Referenced by AddFile(), main(), and MergeRootfile().

TList* FileList

Definition at line 76 of file hadd.cxx.

Referenced by hadd(), and main().

Bool_t noTrees

Definition at line 78 of file hadd.cxx.

Referenced by main(), and MergeRootfile().

Bool_t reoptimize

Definition at line 80 of file hadd.cxx.

Referenced by main(), and MergeRootfile().

TFile * Source

Definition at line 77 of file hadd.cxx.

Referenced by XrdCmsProtocol::Admit().

TFile* Target

Definition at line 77 of file hadd.cxx.

Referenced by hadd(), and main().


Generated on Tue Jul 5 16:06:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1