| Line |  | 
|---|
| 1 | #include <iostream> | 
|---|
| 2 | #include <utility> | 
|---|
| 3 | #include <vector> | 
|---|
| 4 |  | 
|---|
| 5 | #include "TROOT.h" | 
|---|
| 6 | #include "TApplication.h" | 
|---|
| 7 |  | 
|---|
| 8 | #include "TChain.h" | 
|---|
| 9 | #include "TString.h" | 
|---|
| 10 |  | 
|---|
| 11 | #include "TH2.h" | 
|---|
| 12 | #include "THStack.h" | 
|---|
| 13 | #include "TLegend.h" | 
|---|
| 14 | #include "TPaveText.h" | 
|---|
| 15 | #include "TClonesArray.h" | 
|---|
| 16 | #include "TLorentzVector.h" | 
|---|
| 17 |  | 
|---|
| 18 | #include "ExRootAnalysis/ExRootClasses.h" | 
|---|
| 19 |  | 
|---|
| 20 | #include "ExRootAnalysis/ExRootTreeReader.h" | 
|---|
| 21 | #include "ExRootAnalysis/ExRootTreeWriter.h" | 
|---|
| 22 | #include "ExRootAnalysis/ExRootTreeBranch.h" | 
|---|
| 23 | #include "ExRootAnalysis/ExRootResult.h" | 
|---|
| 24 | #include "ExRootAnalysis/ExRootUtilities.h" | 
|---|
| 25 |  | 
|---|
| 26 | using namespace std; | 
|---|
| 27 |  | 
|---|
| 28 | //------------------------------------------------------------------------------ | 
|---|
| 29 |  | 
|---|
| 30 | // Here you can put your analysis macro | 
|---|
| 31 |  | 
|---|
| 32 | #include "Example.C" | 
|---|
| 33 |  | 
|---|
| 34 | //------------------------------------------------------------------------------ | 
|---|
| 35 |  | 
|---|
| 36 | int main(int argc, char *argv[]) | 
|---|
| 37 | { | 
|---|
| 38 | char *appName = "JetsSim"; | 
|---|
| 39 |  | 
|---|
| 40 | if(argc != 2) | 
|---|
| 41 | { | 
|---|
| 42 | cout << " Usage: " << appName << " input_file_list" << " output_file" << endl; | 
|---|
| 43 | cout << " input_file_list - list of input files in ROOT format ('Analysis' tree)," << endl; | 
|---|
| 44 | return 1; | 
|---|
| 45 | } | 
|---|
| 46 |  | 
|---|
| 47 | gROOT->SetBatch(); | 
|---|
| 48 |  | 
|---|
| 49 | int appargc = 1; | 
|---|
| 50 | char *appargv[] = {appName}; | 
|---|
| 51 | TApplication app(appName, &appargc, appargv); | 
|---|
| 52 |  | 
|---|
| 53 | TString inputFileList(argv[1]); | 
|---|
| 54 |  | 
|---|
| 55 | //------------------------------------------------------------------------------ | 
|---|
| 56 |  | 
|---|
| 57 | // Here you call your macro's main function | 
|---|
| 58 |  | 
|---|
| 59 | Example(inputFileList); | 
|---|
| 60 |  | 
|---|
| 61 | //------------------------------------------------------------------------------ | 
|---|
| 62 |  | 
|---|
| 63 | } | 
|---|
| 64 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.