2 char *legA[mxF]={
"R37cm ",
"R55cm"};
3 int colA[mxF]={kBlack,kRed};
6 plMat(
int page=10,
int pl=0, ){
7 char *path=
"radlen_fgt";
12 sprintf(fName,
"%s/radlen_fgt_set%d.root",path,i);
13 TFile *fd=
new TFile(fName);
14 if(!fd->IsOpen())
continue;
15 printf(
"Open histo file=%s=\n",fName);
19 gStyle->SetPalette(1,0);
24 can=
new TCanvas(
"aa",
"aa",500,420);
25 TPad *c=makeTitle(can,
"radLen vs. eta",page);
27 gStyle->SetOptStat(0);
30 lg=
new TLegend(0.15,0.6,0.50,0.90);
31 TString head=
"phi range [0,2pi]";
35 h=(TH1*)fdA[i]->Get(name1); assert(h);
38 h->SetTitle(
"Radiation Length vs eta; eta");
39 h->SetAxisRange(0.7,2.7);
42 h->SetLineColor(colA[i]);
44 lg->AddEntry(h,legA[i]);
54 printf(
"page=%d NOT defined\n",page);
57 TString tit=Form(
"fgtMat_page%03d",page);
62 if(pl&1) can->Print(tit+
".gif");
63 if(pl&2) can->Print(tit+
".ps");
69 TPad *makeTitle(TCanvas *c,
char *core,
int page) {
72 TPad *pad0 =
new TPad(
"pad0",
"apd0",0.0,0.95,1.,1.);
76 TPaveText *pt =
new TPaveText(0,0.,1,1,
"br");
89 pad =
new TPad(
"pad1",
"apd1",0.0,0.0,1,.95);
96 plAll(
char *core=
"minb_d1r") {
99 for(i=0; i<=11; i++) plRate(i,core,2);