20 fName = title +
"_cl";
21 TGaxis::SetMaxDigits(1);
23 name = fTitle +
"_h2d_Grid";
24 h2d_grid =
new TH2D(name, fTitle +
" Grid", 32, 0, 32, 32, 0, 32);
25 h2d_grid->GetXaxis()->SetTitle(
"iX");
26 h2d_grid->GetYaxis()->SetTitle(
"iY");
28 h2d_grid->GetZaxis()->SetNoExponent(kTRUE);
29 name = fTitle +
"_h2d_Profile";
30 h2d_profile =
new TH2D(name, fTitle +
" Profile", 1200, 0, 1200, 1200, 0, 1200);
31 h2d_profile->GetXaxis()->SetTitle(
"X");
32 h2d_profile->GetYaxis()->SetTitle(
"Y");
34 name = fTitle +
"_X_Amplitude";
35 hx =
new TH1D(name, fTitle +
" X Amplitude", 1200, 0, 1200);
36 hx->GetYaxis()->SetNoExponent(kTRUE);
37 hx->GetYaxis()->SetMoreLogLabels(kFALSE);
38 name = fTitle +
"_Y_Amplitude";
39 hy =
new TH1D(name, fTitle +
" Y Amplitude", 1200, 0, 1200);
40 hy->GetYaxis()->SetNoExponent(kFALSE);
41 hx->GetYaxis()->SetMoreLogLabels(kTRUE);
42 name = fTitle +
"CanvasAmplitudes";
55 for (Int_t rowIndex = 0; rowIndex <
ECAL_ROWS; rowIndex++) {
56 for (Int_t colIndex = 0; colIndex <
ECAL_COLS; colIndex++) {
57 Int_t iPad = rowIndex *
ECAL_COLS + colIndex;
58 canAmps->GetPad(iPad + 1)->SetGrid();
59 NamesAmps[iPad] = canAmpsPads[iPad]->current->GetName();
60 TH1 *h = canAmpsPads[iPad]->current;
61 h->GetXaxis()->SetTitle(
"Coordinate");
62 h->GetYaxis()->SetTitle(
"Amplitude");
64 h->GetYaxis()->SetNoExponent(kFALSE);
84 TString path =
"/" + fTitle +
"/";
85 fServer->Register(path, h2d_grid);
86 fServer->Register(path, h2d_profile);
87 fServer->Register(path, canAmps);
88 TString cmd =
"/" + fName +
"/->Reset()";
89 fServer->SetItemField(path.Data(),
"_monitoring",
"2000");
90 fServer->SetItemField(path.Data(),
"_layout",
"grid3x3");
91 TString cmdTitle = path +
"Reset";
92 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
93 fServer->Restrict(cmdTitle,
"visible=shift");
94 fServer->Restrict(cmdTitle,
"allow=shift");
95 cmd =
"/" + fName +
"/->SetRefRun(%arg1%)";
96 cmdTitle = path +
"SetRefRun";
97 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
118 TClonesArray * digits = fDigiArrays->
ecal;
124 for (Int_t iDig = 0; iDig < digits->GetEntriesFast(); iDig++) {
126 Int_t ix = dig->
GetIX();
127 Int_t iy = dig->
GetIY();
128 Double_t amp = dig->
GetAmp();
130 h2d_grid->Fill(ix, iy, dig->
GetAmp());
131 xAmp += amp * dig->
GetX();
132 yAmp += amp * dig->
GetY();
138 h2d_profile->Fill(xAmp, yAmp, Amp);