6 const Char_t *eemcTwMaskFile = 0;
10 void plPanitkin(TString fname=
"./wrk/hist/run7067154.1.hist.root",
int flag=0) {
11 gROOT -> LoadMacro(
"StRoot/StEEmcPool/muEztPanitkin/EEqaPresenter.h");
12 gROOT -> LoadMacro(
"StRoot/StEEmcPool/muEztPanitkin/EEqaPresenter.cxx");
15 gStyle->SetPalette(1,0);
17 eemcTwMaskFile = gEnv->GetValue(
"OnLine.eemcMask",
"eemcTwMask.dat");
19 printf(
"input Histo=%s=\n",fname.Data());
22 printf(
" faild to open file=%s=, exit\n",fname.Data());
29 cc=
new TCanvas(
"pani",
"pani",500,510);
32 TPad *pad0 =
new TPad(
"pad0",
"apd0",0.0,0.95,1.,1.);
36 TPaveText *pt =
new TPaveText(0,0.,1,1);
39 TString txt2=
"P-plot, ";
47 pd1 =
new TPad(
"pad1",
"apd1",0.0,0.0,1,.95);
50 printf(
" Ready. Type: plTw(1) ,... plSmd(1) ,... plDSM(1) ,... plAllps() flag=%d\n",flag);
63 void plTw(
int panel=1) {
65 eePlot(10,panel,fd,pd1,eemcTwMaskFile);
70 void plSmd(
int panel=1) {
72 eePlot(11,panel,fd,pd1,eemcTwMaskFile);
77 void plDSM(
int panel=1) {
79 eePlot(12,panel,fd,pd1,eemcTwMaskFile);
88 ESMDCorrBytes->Draw();
92 plTw(1); pr(
"0jpQA"); cc->Print(
"jpQA.gif");
93 plTw(3); pr(
"1tw-3");cc->Print(
"etaPhi.gif");
97 plDSM(1); pr(
"2dsm-1");
98 plDSM(2); pr(
"2dsm-2");
99 plDSM(8); pr(
"2dsm-3");
102 plTw(1); pr(
"corrT");
104 plSmd(1); pr(
"corrS");
105 plSmd(2) ; pr(
"smd12-1");
106 plSmd(3) ; pr(
"smd2-3");
107 plSmd(4) ; pr(
"smd4-5");
108 plSmd(5) ; pr(
"smd6-7");
109 plSmd(6) ; pr(
"smd8-9");
110 plSmd(7) ; pr(
"smd10-11");
114 void pr(TString core) {
115 cc->Print(core+
".ps");
120 void plAllDsm(
char *path) {
135 int nPan[3]={5,1,11};
140 for(i=1;i<=nPan[k];i++) {
141 eePlot(tab,i,fd,pd1,eemcTwMaskFile);
143 sprintf(tit,
"out/pani-%d-%02d.ps",tab,i);
147 printf(
"\ncat out/*.ps |ps2pdf - all.pdf\n\n");