ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/rf/doAll_looper.C
Revision: 1.1
Committed: Wed Dec 23 17:33:25 2009 UTC (15 years, 4 months ago) by benhoob
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef __CINT__
2 #include "TChain.h"
3 #include "TROOT.h"
4 #include "TStyle.h"
5 #include "TSystem.h"
6
7 #include "histtools.h"
8 #include "looper.h"
9
10 #include <iostream>
11 #endif
12
13 void doAll_looper(bool skipFWLite = true) {
14
15 // Load various tools
16 gROOT->ProcessLine(Form(".x setup.C(%d)", skipFWLite));
17
18 // Load and compile the looping code
19 gSystem->CompileMacro("looper.C", "++k", "liblooper");
20
21 TChain* chPions = new TChain("Events");
22
23 chPions->Add("/data/tmp/fgolf/singlePi_0_2/merged_ntuple*.root" );
24 chPions->Add("/data/tmp/fgolf/singlePi_2_10/merged_ntuple*.root" );
25 chPions->Add("/data/tmp/fgolf/singlePi_10_20/merged_ntuple*.root" );
26 chPions->Add("/data/tmp/fgolf/singlePi_20_50/merged_ntuple*.root" );
27 chPions->Add("/data/tmp/fgolf/singlePi_50_100/merged_ntuple*.root" );
28 chPions->Add("/data/tmp/fgolf/singlePi_100_200/merged_ntuple*.root");
29
30 char calo[2][5] = {"NoHO", "HO"};
31
32 looper* looper = new looper();
33
34 for( unsigned int i = 0; i < 3; i++ ) {
35 for( unsigned int j = 0; j < 2; j++ ) {
36
37 if( j == 1 ) continue;
38 if( i != 2 ) continue;
39
40 float coneSize_ = 0.3 + 0.1 * i;
41
42 cout << "Processing pions" << endl;
43 looper->ScanChain(chPions,"Pions",j,coneSize_);
44 cout << "Done processing pions" << endl;
45 hist::color("Pions", kBlue);
46
47 // save all the histograms
48 const char* filename = Form("checkEtaSymmetry.root");
49 cout << "filename: " << filename << endl;
50 saveHist(filename);
51 deleteHistos();
52 }
53 }
54
55 gSystem->Exit(0);
56 }