9 for(
int i=10;i<=19;i++) plPPV3D(i,2);
14 void plPPVtrack4beamLine(
int page=1,
int pl=0,
char *core0=
"st_W_10097106_raw_5180001",
char *path=
"./"){
17 TString fullInpName=path;
18 fullInpName+=core0; fullInpName+=
".ppv.hist";
20 fd=
new TFile(fullInpName);
22 printf(
"EROR: input histo file not found, quit\n",fullInpName.Data());
25 printf(
"Opened: %s\n",fullInpName.Data());
29 printf(
"v3D_myStat: ");
30 for(
int k=1;k<10;k++) printf(
"%.0f, ",v3D_myStat->GetBinContent(k));
33 gStyle->SetPalette(1,0);
34 gStyle->SetOptStat(0);
36 sprintf(padTit,
"%s",core0);
39 char *nameA[]={
"inPt",
"inSigY",
"myStat",
"inSigZ",
"inTr",
"eve0YX"};
44 can=
new TCanvas(
"aa",
"aa",800,600); TPad *c=makeTitle(can,padTit,page);
45 c->Divide(3,2);gStyle->SetOptStat(1001111);
48 for(
int i=0;i<6;i++) {
51 sprintf(txt,
"v3D_%s",nameX[i]);
52 printf(
"->%s<\n",txt);
53 h=(TH1*)fd->Get(txt); assert(h);
54 c->cd(i+1); h->Draw();
55 if(i==1) h->SetAxisRange(0,10.);
56 if(i==2) h->SetMinimum(0.7);
58 c->GetPad(1)->SetLogy();
64 can=
new TCanvas(
"aa",
"aa",900,600); TPad *c=makeTitle(can,padTit,page);
65 c->Divide(3,2);gStyle->SetOptStat(1001111);
66 for(
int i=0;i<6;i++) {
68 sprintf(txt,
"v3D_chi%d",i+1);
69 printf(
"->%s<\n",txt);
70 h=(TH1*)fd->Get(txt); assert(h);
71 c->cd(i+1); h->Draw();
90 can=
new TCanvas(
"aa",
"aa",500,750); TPad *c=makeTitle(can,padTit,page);
92 c->Divide(2,nP);gStyle->SetOptStat(0);
93 int eve0=(page-10)*nP;
95 for(
int i=0;i<nP;i++) {
97 sprintf(txt,
"v3D_eve%dYX",eve0+i);
98 printf(
"->%s<\n",txt);
99 h=(TH1*)fd->Get(txt); assert(h);
100 c->cd(2*i+1); h->Draw();
101 sprintf(txt,
"v3D_eve%dYZ",eve0+i);
102 printf(
"->%s<\n",txt);
103 h=(TH1*)fd->Get(txt); assert(h);
104 c->cd(2*i+2); h->Draw();
112 printf(
"page=%d NOT defined\n",page);
117 sprintf(text,
"outPS/%s_page%03d",core0,page);
123 if(pl&1) can->Print(tit+
".gif");
124 if(pl&2) can->Print(tit+
".ps");
129 TPad *makeTitle(TCanvas *c,
char *core,
int page) {
132 TPad *pad0 =
new TPad(
"pad0",
"apd0",0.0,0.95,1.,1.);
136 TPaveText *pt =
new TPaveText(0,0.,1,1,
"br");
149 pad =
new TPad(
"pad1",
"apd1",0.0,0.0,1,.95);