2 void saveSignalChar(Char_t* signalFile=
"signalShapes.root")
10 for(
int iD=1;iD<7;iD++)
12 for(
int iQ=0;iQ<4;iQ++)
17 sprintf(quadName,
"A");
19 sprintf(quadName,
"B");
21 sprintf(quadName,
"C");
23 sprintf(quadName,
"D");
24 for(
int iL=0;iL<2;iL++)
27 sprintf(layerName,
"P");
29 sprintf(layerName,
"R");
30 sprintf(buffer,
"Canvas_Disc_%id_Quad%s_Layer%s",iD,quadName,layerName);
31 TCanvas c(buffer,buffer,10,10,3000,2000);
34 sprintf(buffer,
"numFSigCloseCluster%s_disc%d_quad%d",layerName,iD,iQ);
35 cout <<
"loading " << buffer <<endl;
37 TH1D* h=(TH1D*)f.Get(buffer);
38 sprintf(buffer,
"numFSigCloseCluster%s_disc%d_quad%s",layerName,iD,quadName);
43 h->SetFillColor(kYellow-9);
46 sprintf(buffer,
"numFSigCloseCluster%s_disc%d_quad%s.png",layerName,iD,quadName);
49 sprintf(buffer,
"maxTbCloseCluster%s_disc%d_quad%d",layerName,iD,iQ);
50 cout <<
"loading " << buffer <<endl;
51 TH1D* h=(TH1D*)f.Get(buffer);
52 sprintf(buffer,
"maxTbCloseCluster%s_disc%d_quad%s",layerName,iD,quadName);
57 h->SetFillColor(kYellow-9);
61 sprintf(buffer,
"maxAdcCloseCluster%s_disc%d_quad%d",layerName,iD,iQ);
62 cout <<
"loading " << buffer <<endl;
63 TH1D* h=(TH1D*)f.Get(buffer);
64 sprintf(buffer,
"maxAdcCloseCluster%s_disc%d_quad%s",layerName,iD,quadName);
69 h->SetFillColor(kYellow-9);
74 sprintf(buffer,
"maxAdcTrackCluster%s_disc%d_quad%d",layerName,iD,iQ);
75 cout <<
"loading " << buffer <<endl;
76 TH1D* h=(TH1D*)f.Get(buffer);
77 sprintf(buffer,
"maxAdcTrackCluster%s_disc%d_quad%s",layerName,iD,quadName);
82 h->SetFillColor(kYellow-9);
86 sprintf(buffer,
"numFirstHighCloseCluster%s_disc%d_quad%d",layerName,iD,iQ);
87 cout <<
"loading " << buffer <<endl;
88 TH1D* h=(TH1D*)f.Get(buffer);
89 sprintf(buffer,
"maxFirstHighCloseCluster%s_disc%d_quad%s",layerName,iD,quadName);
94 h->SetFillColor(kYellow-9);
98 sprintf(buffer,
"r_phi_ChargeCorrelationInDisk_%d_quad_%d",iD,iQ);
99 cout <<
"loading " << buffer <<endl;
100 TH2D* h2=(TH2D*)f.Get(buffer);
101 sprintf(buffer,
"r_phi_ChargeCorrelationInDisk_%d_quad_%s",iD,quadName);
105 h2->SetTitle(buffer);
106 h2->GetXaxis()->SetRangeUser(0,15000);
107 h2->GetYaxis()->SetRangeUser(0,15000);
110 sprintf(buffer,
"EnergyForDisk%d_Quad%s_layerR.png",iD,quadName,layerName);
111 TH1D* projR=h2->ProjectionX(buffer);
112 sprintf(buffer,
"EnergyForDisk%d_Quad%s_layerP.png",iD,quadName,layerName);
113 TH1D* projP=h2->ProjectionY(buffer);
115 projR->SetFillColor(kYellow-9);
118 projP->SetFillColor(kYellow-9);
121 sprintf(buffer,
"clusterSize%sInDisk_%d_quad_%d",layerName,iD,iQ);
122 TH1D* hClusSize=(TH1D*)f.Get(buffer);
125 hClusSize->SetFillColor(kYellow-9);
126 hClusSize->GetXaxis()->SetTitle(
"number of strips");
127 hClusSize->GetXaxis()->SetRangeUser(0,10);
130 sprintf(buffer,
"signalInfoForDisk%d_Quad%s_layer%s.png",iD,quadName,layerName);