Logo ROOT  
Reference Guide
h1chain.C File Reference

Detailed Description

View in nbviewer Open in SWAN Creates a TChain to be used by the h1analysis.C class the symbol H1 must point to a directory where the H1 data sets have been installed.

TChain chain("h42");
void h1chain(const char *h1dir = 0)
{
if (h1dir) {
gSystem->Setenv("H1",h1dir);
}
chain.SetCacheSize(20*1024*1024);
chain.Add("$H1/dstarmb.root");
chain.Add("$H1/dstarp1a.root");
chain.Add("$H1/dstarp1b.root");
chain.Add("$H1/dstarp2.root");
}
Author
Rene Brun

Definition in file h1chain.C.

TSystem::Setenv
virtual void Setenv(const char *name, const char *value)
Set environment variable.
Definition: TSystem.cxx:1645
TChain::Add
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
Definition: TChain.cxx:228
gSystem
R__EXTERN TSystem * gSystem
Definition: TSystem.h:559
TChain
Definition: TChain.h:33
TChain::SetCacheSize
virtual Int_t SetCacheSize(Long64_t cacheSize=-1)
Set maximum size of the file cache .
Definition: TChain.cxx:2417