ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/rootEWKanalyzer/src/main.C
Revision: 1.1
Committed: Mon Jun 7 14:57:37 2010 UTC (14 years, 11 months ago) by jueugste
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
first commit

File Contents

# User Rev Content
1 jueugste 1.1 #include "rootNtupleClass.h"
2     #include "analysisClass.h"
3     #include <iostream>
4     #include <fstream>
5     #include <string>
6     #include <stdio.h>
7     #include <iomanip>
8    
9     #include <TTree.h>
10     #include <TChain.h>
11     #include <TROOT.h>
12     #include <TChain.h>
13     #include <TFile.h>
14     #include <TH2.h>
15     #include <TH1F.h>
16     #include <TStyle.h>
17     #include <TCanvas.h>
18     #include <TLorentzVector.h>
19     #include <TVector2.h>
20     #include <TVector3.h>
21    
22     using namespace std;
23    
24     int main(int argc, char* argv[])
25     {
26     const int Nparam=5; // NUMBER OF PARAMETERS
27    
28     if(argc!=Nparam+1)
29     {
30     cout << "main() : arcg = " << argc << " is different from " << Nparam+1 <<". Exiting." <<endl;
31     cout << "Usage : ./main inputList cutFile treeName outputRootFileWithoutExtension outputEfficiencyFileWithoutExtension" << endl;
32     cout << "Example: ./main config/inputListExample.txt config/cutFileExample.txt promptanaTree/tree data/output/rootFile data/output/cutEfficiencyFile" << endl;
33     exit (1);
34     };
35    
36     string * inputList = new string(argv[1]);
37     string * cutFile = new string(argv[2]);
38     string * treeName = new string(argv[3]);
39     string * outputFileName = new string(argv[4]);
40     string * cutEfficFile = new string(argv[5]);
41    
42     analysisClass analysisClass_(inputList, cutFile, treeName, outputFileName, cutEfficFile);
43     analysisClass_.Loop();
44    
45     }
46    
47    
48