StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunAnalyzer.C
1 
25 // ROOT headers
26 #include "TROOT.h"
27 #include "TSystem.h"
28 #include "TString.h"
29 
30 //_________________
31 void RunAnalyzer(const Char_t *inFileName = "../files/st_physics_12126101_raw_3040006.picoDst.root") {
32  // Next line is not needed if you are not running in a standalone mode
33  gROOT->ProcessLine("#define _VANILLA_ROOT_");
34  gSystem->Load("../libStPicoDst.so");
35  TString str;
36  str = ".x PicoDstAnalyzer.C+(\"";
37  str += inFileName;
38  str += "\")";
39  gROOT->ProcessLine( str.Data() );
40  // Next line should be commented if you run in a batch mode
41  gROOT->ProcessLine(".!rm -f PicoDstAnalyzer_C* ");
42 }