10 , fTrigMapper(trigMapper)
16 fName = title +
"_cl";
20 uint16_t scalers_ar_size = scaler_idx2name.size();
23 name = fTitle +
"_Scalers_Total";
24 TH1I* h =
new TH1I(name, name, scalers_ar_size, 0, scalers_ar_size);
25 h->GetXaxis()->SetTitle(
"Scaler");
26 h->GetYaxis()->SetTitle(
"Activation Count");
27 TAxis* xaTotal = h->GetXaxis();
28 for (uint16_t
i = 0;
i < scalers_ar_size;
i++) {
29 string& sname = scaler_idx2name[
i];
30 xaTotal->SetBinLabel(
i + 1, sname.data());
34 histMscAll.push_back(h);
38 name = fTitle +
"Canvas";
40 canGemStrip->Divide(maxLayers, sumMods, 0.01 / maxLayers, 0.01 / sumMods);
42 canStripPads.resize(sumMods * maxLayers);
43 Names.resize(sumMods * maxLayers);
49 canStripPads[iPad] = pad;
50 canGemStrip->GetPad(iPad + 1)->SetGrid();
51 Names[iPad] = canStripPads[iPad]->current->GetName();
67 TString path =
"/" + fTitle +
"/";
68 fServer->Register(path, canGemStrip);
69 TString cmd =
"/" + fName +
"/->Reset()";
70 TString cmdTitle = path +
"Reset";
71 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
75 cmd =
"/" + fName +
"/->SetRefRun(%arg1%)";
76 cmdTitle = path +
"SetRefRun";
77 fServer->RegisterCommand(cmdTitle.Data(), cmd.Data(),
"button;");
97 TClonesArray* digs = fDigiArrays->
msc;
103 for (Int_t digIndex = 0; digIndex < digs->GetEntriesFast(); digIndex++) {
106 if (it == scalers2index_map.end())
109 uint64_t sum = std::accumulate(vec.begin(), vec.end(), 0);
111 histMscAll[0]->Fill(it->second, sum);