Macro driving the analysis can specify file name and type
.- type == 0 : normal
- type = 1 : use AClic to compile selector
- type = 2 : use a fill list and then process the fill list///
void run_h1analysis(
int type = 0,
const char * h1dir = 0) {
std::cout << "Run h1 analysis " << std::endl;
if (h1dir) {
}
else
std::cout << "Creating the chain" << std::endl;
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");
chain.Process(selectionMacro);
selectionMacro += "+";
chain.Process(selectionMacro);
}
chain.Process(selectionMacro,"fillList");
chain.Process(selectionMacro,"useList");
}
}
R__EXTERN TSystem * gSystem
A chain is a collection of files containing TTree objects.
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.
- Author
Definition in file run_h1analysis.C.