1 int A=
'A', B=
'B',C=
'C',D=
'D',E=
'E';
2 int a=
'A', b=
'B',c=
'C',d=
'D',e=
'E';
8 path=
"/star/data05/scratch/balewski/2005-eemcCal/";
11 path+=
"/mc-hist/iter8-mc/";
13 path+=
"sum-sect"; path+=sect;
20 gStyle->SetPalette(1,0);
24 plPresSect(
int sec=1) {
26 for(eta=1;eta<=12;eta++)
27 for(sub=A;sub<=E;sub++) {
33 plPres(
int sec=3,
int sub=c,
int eta=10 ) {
36 sprintf(name,
"tower-%02d%c%02d",sec,sub,eta);
38 cc=
new TCanvas(name,name,550,560); cc->Divide(2,2);
43 char tA[nT]={
'T',
'P',
'Q',
'R'};
44 char *tN[nT]={
"Tow",
"Pre1",
"Pre2",
"Post"};
45 int pedA[nT]={20,50,50,50};
47 for(it=0;it<nT;it++) {
54 sprintf(name,
"a%02d%c%c%02d",sec,tA[it],sub,eta);
56 TH1F *h=(TH1F *)f->Get(name); assert(h);
57 int aN= h->Integral(binL+ped,binH+ped);
60 float yMax=h->GetMaximum()/20.;
63 if(it==0) h->SetAxisRange(-50,120);
65 sprintf(name,
"d%02d%c%c%02d",sec,tA[it],sub,eta);
66 h=(TH1F *)f->Get(name); assert(h);
67 int dN= h->GetEntries();
68 h->SetFillColor( kRed); h->SetLineColor( kRed);
72 sprintf(name,
"e%02d%c%c%02d",sec,tA[it],sub,eta);
73 h=(TH1F *)f->Get(name); assert(h);
74 int eN= h->GetEntries();
77 h->SetFillColor( h->GetLineColor( ));
78 h->SetFillStyle(3644);
83 printf(
"%s [%d,%d]--> a=%5d d=%3d e=%3d r=%.2f\n",name+1,binL,binH,aN,dN,eN,r);
85 sprintf(name,
"%s R=%.2f",tN[it],r);
86 TText *tx=
new TText(20,yMax,name);
87 tx->SetTextSize(0.08);
88 tx->SetTextColor( h->GetLineColor( ) );
97 TGraph *grT=
new TGraph();
98 grT->SetMarkerStyle(22); grT->SetMarkerSize(2);grT->SetMarkerColor(kMagenta);
99 grT->SetPoint(0,65,115);
100 grT->SetPoint(1,21,-93);
101 grT->SetPoint(2,-60,-100);
105 TGraph *grR=
new TGraph(); grR->SetMarkerSize(2);grR->SetMarkerColor(kBlue);
106 grR->SetMarkerStyle(24);
107 grR->SetPoint(0,120,168);
108 grR->SetPoint(1,201, -45);
109 grR->SetPoint(2,-55,-75);
112 TGraph *grP=
new TGraph(); grP->SetMarkerSize(2);grP->SetMarkerColor(kRed);
113 grR->SetMarkerStyle(25);
114 grR->SetPoint(0,25,-85);
115 grR->SetPoint(1,27,-88);
116 grR->SetPoint(2,75,-175);
117 grR->SetPoint(3,90,-152);