Project

General

Profile

AnaMain.C

Yen-Chu Chen, 02/28/2018 02:29 PM

 
1
int AnaMain(TString inFile) {
2

    
3
cout << "Input file is " << inFile << endl;
4

    
5
cout << "Loading shared object ..." << endl;
6
// gROOT->LoadMacro("AnaBackground.C+");
7
gSystem->Load("AnaBackground_C.so");
8

    
9
cout << "Creating AnaBakground class ..." << endl;
10
AnaBackground *t = new AnaBackground;
11

    
12
TTree *tree=0;
13

    
14
cout << "Initializing ..." << endl;
15
t->Init(tree, inFile);
16

    
17
cout << "Looping events ..." << endl;
18
t->Loop();
19

    
20
cout << "Done! " << endl;
21
}