Logo ROOT   6.16/01
Reference Guide
h1chain.C
Go to the documentation of this file.
1/// \file
2/// \ingroup tutorial_tree
3/// \notebook -nodraw
4/// Creates a TChain to be used by the h1analysis.C class
5/// the symbol H1 must point to a directory where the H1 data sets
6/// have been installed.
7///
8/// \macro_code
9///
10/// \author Rene Brun
11
12TChain chain("h42");
13
14void h1chain(const char *h1dir = 0)
15{
16 if (h1dir) {
17 gSystem->Setenv("H1",h1dir);
18 }
19 chain.SetCacheSize(20*1024*1024);
20 chain.Add("$H1/dstarmb.root");
21 chain.Add("$H1/dstarp1a.root");
22 chain.Add("$H1/dstarp1b.root");
23 chain.Add("$H1/dstarp2.root");
24}
R__EXTERN TSystem * gSystem
Definition: TSystem.h:540
A chain is a collection of files containing TTree objects.
Definition: TChain.h:33
virtual void Setenv(const char *name, const char *value)
Set environment variable.
Definition: TSystem.cxx:1636