5 TFile *_file0 = TFile::Open(
"all.root");
7 TString cutStr =
"nOk>=3&&nPTot>=3&&aveMax>aveMin&&(aveMax-aveMin)<5";
9 tree->Draw(
"aveMin:runno", cutStr.Data(),
"colz");
11 c1->SaveAs(
"png/all.png");
13 char plotFileName[200];
16 for (
int iSM=0; iSM<
kNSM; iSM++) {
17 sprintf(iSMCut,
"%s&&iSM==%d", cutStr.Data(), iSM);
19 tree->Draw(
"aveMin:runno", iSMCut,
"colz");
20 sprintf(plotFileName,
"png/SM%d.png", iSM);
21 c1->SaveAs(plotFileName);
23 tree->Draw(
"aveMin" , iSMCut );
24 sprintf(plotFileName,
"png/SM%d_1D.png", iSM);
25 c1->SaveAs(plotFileName);
27 tree->Draw(
"aveMax" , iSMCut );
28 sprintf(plotFileName,
"png/SM%d_1D_aveMax.png", iSM);
29 c1->SaveAs(plotFileName);