2 char *legA[mxF]={
"0-0.5 ",
"0.5-1",
"1-1.5",
"1.5-2",
"2-2.5"};
3 int colA[mxF]={kBlack,kRed,kGreen,kBlue,kMagenta};
7 plMatPhi(
int rMax=55,
int pl=0, ){
8 char *path=
"radlen_fgt";
13 sprintf(fName,
"%s/radlen_fgt_R%dset%d.root",path,rMax,i);
14 TFile *fd=
new TFile(fName);
15 if(!fd->IsOpen())
continue;
16 printf(
"Open histo file=%s=\n",fName);
20 gStyle->SetPalette(1,0);
23 can=
new TCanvas(
"aa",
"aa",450,380);
24 TPad *c=makeTitle(can,
"radLen vs. eta",0);
26 gStyle->SetOptStat(0);
29 lg=
new TLegend(0.15,0.6,0.50,0.90);
30 TString head=Form(
"R max=%d cm",rMax);
34 h=(TH1*)fdA[i]->Get(name1); assert(h);
37 h->SetTitle(
"Radiation Length vs phi; phi(rad)");
38 h->SetAxisRange(0.0,3.);
39 if(rMax==12) { h->SetMinimum(2e-3); h->SetMaximum(4e-2);}
40 if(rMax==55) { h->SetMinimum(1e-2); h->SetMaximum(3.); }
44 h->SetLineColor(colA[i]);
46 lg->AddEntry(h,legA[i]);
49 TString tit=Form(
"fgtMat_phi_R%d",rMax);
55 if(pl&1) can->Print(tit+
".gif");
56 if(pl&2) can->Print(tit+
".ps");
62 TPad *makeTitle(TCanvas *c,
char *core,
int page) {
65 TPad *pad0 =
new TPad(
"pad0",
"apd0",0.0,0.95,1.,1.);
69 TPaveText *pt =
new TPaveText(0,0.,1,1,
"br");
82 pad =
new TPad(
"pad1",
"apd1",0.0,0.0,1,.95);