Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MergeFiles.C File Reference
#include <fstream>
#include <string.h>
#include "TChain.h"
#include "TFile.h"
#include "TH1.h"
#include "TTree.h"
#include "TKey.h"
#include "Riostream.h"
+ Include dependency graph for MergeFiles.C:

Go to the source code of this file.

Functions

void MergeRootfile (TDirectory *target, TList *sourcelist)
 
void MergeFiles (const Int_t nFiles=100, const TString filelist="file.list", const TString outputrootfiles="test.root")
 

Function Documentation

void MergeFiles ( const Int_t  nFiles = 100,
const TString  filelist = "file.list",
const TString  outputrootfiles = "test.root" 
)

Definition at line 26 of file MergeFiles.C.

View newest version in sPHENIX GitHub at line 26 of file MergeFiles.C

References f, FileList, add_histos::files, line, and MergeRootfile().

+ Here is the call graph for this function:

void MergeRootfile ( TDirectory *  target,
TList *  sourcelist 
)

!if the object is a tree, it is stored in globChain...

Definition at line 85 of file MergeFiles.C.

View newest version in sPHENIX GitHub at line 85 of file MergeFiles.C

References h1, h2, path, and utils::status.

Referenced by MergeFiles().

+ Here is the caller graph for this function: