StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunChainMerger.C
1 //RunChainMerger.C
2 #include <string>
3 
4 void RunChainMerger(const char* dir, const char* outfile)
5 {
6  cout <<"Loading Libraries"<<endl;
7 
8  if (gClassTable->GetID("TTable") < 0) gSystem->Load("libTable");
9  gSystem->Load("St_base");
10  gSystem->Load("StChain");
11  gSystem->Load("St_Tables");
12  gSystem->Load("StMagF");
13  gSystem->Load("StUtilities"); // new addition 22jul99
14  gSystem->Load("StTreeMaker");
15  gSystem->Load("StIOMaker");
16  gSystem->Load("StarClassLibrary");
17  gSystem->Load("StTpcDb");
18  gSystem->Load("StDbUtilities");
19  gSystem->Load("StEvent");
20  gSystem->Load("StEventUtilities");
21  gSystem->Load("StMcEvent");
22  gSystem->Load("StMcEventMaker");
23  gSystem->Load("StAssociationMaker");
24  gSystem->Load("StMcAnalysisMaker");
25  gSystem->Load("StStrangeMuDstMaker");
26  gSystem->Load("StMuDSTMaker");
27  gSystem->Load("JetFinder");
28  cout <<"Done Loading Libraries"<<endl;
29 
30  cout <<"Make ChainMerger, watch it go!"<<endl;
31 
32  cout <<"dir:\t"<<dir<<"\toutfile:\t"<<outfile<<endl;
33 
34  ChainMerger myMerger(dir,outfile);
35  cout <<"All done"<<endl;
36 }