14 std::cout <<
"Run h1 analysis " << std::endl;
27 std::cout <<
"Creating the chain" << std::endl;
30 chain.
Add(
"$H1/dstarmb.root");
31 chain.
Add(
"$H1/dstarp1a.root");
32 chain.
Add(
"$H1/dstarp1b.root");
33 chain.
Add(
"$H1/dstarp2.root");
41 selectionMacro +=
"+";
45 chain.
Process(selectionMacro,
"fillList");
46 chain.
Process(selectionMacro,
"useList");
virtual Int_t SetCacheSize(Long64_t cacheSize=-1)
Set maximum size of the file cache .
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual void Setenv(const char *name, const char *value)
Set environment variable.
R__EXTERN TSystem * gSystem
void run_h1analysis(int type=0, const char *h1dir=0)
virtual Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Process all entries in this chain, calling functions in filename.
A chain is a collection of files containg TTree objects.
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.