ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
h1chain.C
Go to the documentation of this file.
1 //Creates a TChain to be used by the h1analysis.C class
2 //the symbol H1 must point to a directory where the H1 data sets
3 //have been installed.
4 
5 TChain chain("h42");
6 
7 void h1chain(const char *h1dir = 0)
8 {
9  if (h1dir) {
10  gSystem->Setenv("H1",h1dir);
11  }
12  chain.SetCacheSize(20*1024*1024);
13  chain.Add("$H1/dstarmb.root");
14  chain.Add("$H1/dstarp1a.root");
15  chain.Add("$H1/dstarp1b.root");
16  chain.Add("$H1/dstarp2.root");
17 }
virtual Int_t SetCacheSize(Long64_t cacheSize=-1)
Set maximum size of the file cache .
Definition: TChain.cxx:2287
void h1chain(const char *h1dir=0)
Definition: h1chain.C:7
TChain chain("h42")
virtual void Setenv(const char *name, const char *value)
Set environment variable.
Definition: TSystem.cxx:1559
R__EXTERN TSystem * gSystem
Definition: TSystem.h:545
A chain is a collection of files containg TTree objects.
Definition: TChain.h:35
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
Definition: TChain.cxx:210