8 TGaxis::SetMaxDigits(2);
10 name = fTitle +
"_h2d_Grid";
11 h2d_grid =
new TH2D(name,
"ZDC Grid", 20, 0, 20, 20, 0, 20);
12 h2d_grid->GetXaxis()->SetTitle(
"iX");
13 h2d_grid->GetXaxis()->SetTitleColor(kOrange + 10);
14 h2d_grid->GetYaxis()->SetTitle(
"iY");
15 h2d_grid->GetYaxis()->SetTitleColor(kOrange + 10);
16 h2d_grid->GetZaxis()->SetNoExponent(kFALSE);
17 name = fTitle +
"_h2d_Profile";
18 h2d_profile =
new TH2D(name,
"ZDC Profile", 200, -700, 700, 200, -700, 700);
19 h2d_profile->GetXaxis()->SetTitle(
"X");
20 h2d_profile->GetXaxis()->SetTitleColor(kOrange + 10);
21 h2d_profile->GetYaxis()->SetTitle(
"Y");
22 h2d_profile->GetYaxis()->SetTitleColor(kOrange + 10);
23 name = fTitle +
"_X_Amplitude";
24 hx =
new TH1D(name,
"ZDC X Amplitude", 200, -700, 700);
25 name = fTitle +
"_Y_Amplitude";
26 hy =
new TH1D(name,
"ZDC Y Amplitude", 200, -700, 700);
27 name = fTitle +
"CanvasAmplitudes";
40 for (Int_t rowIndex = 0; rowIndex <
ZDC_ROWS; rowIndex++) {
41 for (Int_t colIndex = 0; colIndex <
ZDC_COLS; colIndex++) {
42 Int_t iPad = rowIndex *
ZDC_COLS + colIndex;
43 canAmps->GetPad(iPad + 1)->SetGrid();
44 NamesAmps[iPad] = canAmpsPads[iPad]->current->GetName();
45 TH1 *h = canAmpsPads[iPad]->current;
46 h->SetTitleSize(0.06,
"XY");
47 h->SetLabelSize(0.08,
"XY");
48 h->GetXaxis()->SetTitle(
"Coordinate");
49 h->GetXaxis()->SetTitleColor(kOrange + 10);
50 h->GetYaxis()->SetTitle(
"Amplitude");
51 h->GetYaxis()->SetTitleColor(kOrange + 10);
52 h->GetYaxis()->SetTitleOffset(1.4);
53 h->GetYaxis()->SetNoExponent(kFALSE);
74 TString path =
"/" + fTitle +
"/";
75 fServer->Register(path, h2d_grid);
76 fServer->Register(path, h2d_profile);
77 fServer->Register(path, canAmps);
78 TString cmd =
"/" + fName +
"/->Reset()";
79 fServer->SetItemField(path.Data(),
"_monitoring",
"2000");
80 fServer->SetItemField(path.Data(),
"_layout",
"grid3x3");
81 TString cmdTitle = path +
"Reset";
82 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
83 fServer->Restrict(cmdTitle,
"visible=shift");
84 fServer->Restrict(cmdTitle,
"allow=shift");
85 cmd =
"/" + fName +
"/->SetRefRun(%arg1%)";
86 cmdTitle = path +
"SetRefRun";
87 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
108 TClonesArray * digits = fDigiArrays->
zdc;
114 for (Int_t iDig = 0; iDig < digits->GetEntriesFast(); iDig++) {
116 Int_t ix = dig->
GetIX();
117 Int_t iy = dig->
GetIY();
118 Double_t amp = dig->
GetAmp();
120 h2d_grid->Fill(ix, iy, dig->
GetAmp());
121 xAmp += amp * dig->
GetX();
122 yAmp += amp * dig->
GetY();
128 h2d_profile->Fill(xAmp, yAmp, Amp);