59 htmax =
new TH1F(
"htmax",
"Max TS",10,-0.5,9.5);
60 htmean =
new TH1F(
"htmean",
"Mean signal TS",100,0,10);
61 hsignalmean =
new TH1F(
"hsignalmean",
"Mean ADC 4maxTS",1201,-25,30000);
62 hsignalrms =
new TH1F(
"hsignalrms",
"RMS ADC 4maxTS",500,0,500);
63 hpedmean =
new TH1F(
"hpedmean",
"Mean ADC 4lowTS",200,-10,90);
64 hpedrms =
new TH1F(
"hpedrms",
"RMS ADC 4lowTS",200,0,100);
65 hspes =
new TH1F(
"hspes",
"SPE if measured",200,0,40);
66 hnpevar =
new TH1F(
"hnpevar",
"~N PE input",500,0,500);
67 hsignalmapP =
new TH2F(
"hsignalmapP",
"Mean(Response) - Mean(Pedestal) HFP;#eta;#phi",26,28.5,41.5,36,0,72);
68 hsignalRMSmapP =
new TH2F(
"hsignalRMSmapP",
"RMS Response HFP;#eta;#phi",26,28.5,41.5,36,0,72);
69 hnpemapP =
new TH2F(
"hnpemapP",
"~N PE input HFP;#eta;#phi",26,28.5,41.5,36,0,72);
71 hsignalmapM =
new TH2F(
"hsignalmapM",
"Mean(Response) - Mean(Pedestal) HFM;#eta;#phi",26,-41.5,-28.5,36,0,72);
72 hsignalRMSmapM =
new TH2F(
"hsignalRMSmapM",
"RMS Response HFM;#eta;#phi",26,-41.5,-28.5,36,0,72);
73 hnpemapM =
new TH2F(
"hnpemapM",
"~N PE input HFM;#eta;#phi",26,-41.5,-28.5,36,0,72);
76 for (
int i=0;
i<13;
i++)
for (
int j=0;
j<36;
j++)
for (
int k=0;
k<2;
k++) {
77 if (
i>10 &&
j%2==0)
continue;
78 sprintf(htit,
"ts_+%d_%d_%d",
i+29,
j*2+1,
k+1);
79 hts[
i][
j][
k] =
new TH1F(htit,htit,10,-0.5,9.5);
80 sprintf(htit,
"tsmean_+%d_%d_%d",
i+29,
j*2+1,
k+1);
81 htsm[
i][
j][
k] =
new TH1F(htit,htit,100,0,10);
82 sprintf(htit,
"sp_+%d_%d_%d",
i+29,
j*2+1,
k+1);
83 hsp[
i][
j][
k] =
new TH1F(htit,htit,1201,-25,30000);
84 sprintf(htit,
"spe_+%d_%d_%d",
i+29,
j*2+1,
k+1);
85 hspe[
i][
j][
k] =
new TH1F(htit,htit,200,-9.5,190.5);
86 sprintf(htit,
"ped_+%d_%d_%d",
i+29,
j*2+1,
k+1);
87 hped[
i][
j][
k] =
new TH1F(htit,htit,200,-9.5,190.5);
88 sprintf(htit,
"ts_-%d_%d_%d",
i+29,
j*2+1,
k+1);
89 hts[
i+13][
j][
k] =
new TH1F(htit,htit,10,-0.5,9.5);
90 sprintf(htit,
"tsmean_-%d_%d_%d",
i+29,
j*2+1,
k+1);
91 htsm[
i+13][
j][
k] =
new TH1F(htit,htit,100,0,10);
92 sprintf(htit,
"sp_-%d_%d_%d",
i+29,
j*2+1,
k+1);
93 hsp[
i+13][
j][
k] =
new TH1F(htit,htit,1201,-25,30000);
94 sprintf(htit,
"spe_-%d_%d_%d",
i+29,
j*2+1,
k+1);
95 hspe[
i+13][
j][
k] =
new TH1F(htit,htit,200,-9.5,190.5);
96 sprintf(htit,
"ped_-%d_%d_%d",
i+29,
j*2+1,
k+1);
97 hped[
i+13][
j][
k] =
new TH1F(htit,htit,200,-9.5,190.5);
100 for (
int i=0;
i<4;
i++)
for (
int j=0;
j<3;
j++) {
101 sprintf(htit,
"ts_PIN%d_+Q%d",
j+1,
i+1);
102 htspin[
i][
j] =
new TH1F(htit,htit,10,-0.5,9.5);
103 sprintf(htit,
"sp_PIN%d_+Q%d",
j+1,
i+1);
104 hsppin[
i][
j] =
new TH1F(htit,htit,1601,-25,40000);
105 sprintf(htit,
"spe_PIN%d_+Q%d",
j+1,
i+1);
106 hspepin[
i][
j] =
new TH1F(htit,htit,200,-9.5,190.5);
107 sprintf(htit,
"ped_PIN%d_+Q%d",
j+1,
i+1);
108 hpedpin[
i][
j] =
new TH1F(htit,htit,200,-9.5,190.5);
109 sprintf(htit,
"tsmean_PIN%d_+Q%d",
j+1,
i+1);
110 htsmpin[
i][
j] =
new TH1F(htit,htit,100,0,10);
111 sprintf(htit,
"ts_PIN%d_-Q%d",
j+1,
i+1);
112 htspin[
i+4][
j] =
new TH1F(htit,htit,10,-0.5,9.5);
113 sprintf(htit,
"sp_PIN%d_-Q%d",
j+1,
i+1);
114 hsppin[
i+4][
j] =
new TH1F(htit,htit,1601,-25,40000);
115 sprintf(htit,
"spe_PIN%d_-Q%d",
j+1,
i+1);
116 hspepin[
i+4][
j] =
new TH1F(htit,htit,200,-9.5,190.5);
117 sprintf(htit,
"ped_PIN%d_-Q%d",
j+1,
i+1);
118 hpedpin[
i+4][
j] =
new TH1F(htit,htit,200,-9.5,190.5);
119 sprintf(htit,
"tsmean_PIN%d_-Q%d",
j+1,
i+1);
120 htsmpin[
i+4][
j] =
new TH1F(htit,htit,100,0,10);