2 char *legA[mxF]={
"R55cm ",
"R12cm"};
3 int colA[mxF]={kBlack,kRed};
6 plMatEta(
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.0,3.);
40 h->SetMinimum(2e-3); h->SetMaximum(1.7);
44 h->SetLineColor(colA[i]);
46 lg->AddEntry(h,legA[i]);
56 printf(
"page=%d NOT defined\n",page);
59 TString tit=Form(
"fgtMat_page%03d",page);
64 if(pl&1) can->Print(tit+
".gif");
65 if(pl&2) can->Print(tit+
".ps");
71 TPad *makeTitle(TCanvas *c,
char *core,
int page) {
74 TPad *pad0 =
new TPad(
"pad0",
"apd0",0.0,0.95,1.,1.);
78 TPaveText *pt =
new TPaveText(0,0.,1,1,
"br");
91 pad =
new TPad(
"pad1",
"apd1",0.0,0.0,1,.95);