StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
combineRatiosView.C
1 void combineRatiosView(char* file) {
2  // viewer for files created by combineRatios
3 
4  TFile * tf = new TFile(file);
5 
6  const char* plotnames[] = {"DEtaDPhi","YtYt","EtaEta","PhiPhi"};
7  const char* types[] = {"LS","US","CD","CI"};
8 
9  TH2F* hin[16];
10 
11  TString name;
12  for(int i=0; i<4; i++) {
13  for(int j=0; j<4; j++) {
14  name=types[j]; name+=plotnames[i];
15  hin[i*4+j] = (TH2F*)tf->Get(name);
16  if(!hin[i*4+j]) cout << "ERROR with " << name << endl << flush;
17  }
18  }
19 
20  const char* drawopts[] = {"surf1","colz","colz","colz"};
21 
22  c1 = new TCanvas(file,file,900,900);
23  c1->Divide(4,4);
24  for(i=0; i<16; i++) {
25  c1->cd(i+1);
26  hin[i]->Draw(drawopts[i/4]);
27  }
28 
29 
30 }
31 
32 
33 
34