AliPhysics  764b6ea (764b6ea)
plot.C
Go to the documentation of this file.
1 const int kNSM = 20;
2 
3 void plot()
4 {
5  TFile *_file0 = TFile::Open("all.root");
6 
7  TString cutStr = "nOk>=3&&nPTot>=3&&aveMax>aveMin&&(aveMax-aveMin)<5";
8 
9  tree->Draw("aveMin:runno", cutStr.Data(),"colz");
10  c1->SetLogz();
11  c1->SaveAs("png/all.png");
12 
13  char plotFileName[200];
14  char iSMCut[200];
15 
16  for (int iSM=0; iSM<kNSM; iSM++) {
17  sprintf(iSMCut,"%s&&iSM==%d", cutStr.Data(), iSM);
18 
19  tree->Draw("aveMin:runno", iSMCut,"colz");
20  sprintf(plotFileName,"png/SM%d.png", iSM);
21  c1->SaveAs(plotFileName);
22 
23  tree->Draw("aveMin" , iSMCut );
24  sprintf(plotFileName,"png/SM%d_1D.png", iSM);
25  c1->SaveAs(plotFileName);
26 
27  tree->Draw("aveMax" , iSMCut );
28  sprintf(plotFileName,"png/SM%d_1D_aveMax.png", iSM);
29  c1->SaveAs(plotFileName);
30  }
31 
32 }
const int kNSM
Definition: plot.C:1
void plot()
Definition: plot.C:3