64 B2DEBUG(1,
"DQMHistAnalysisPXDFits: initialized.");
70 a =
"pxdraw/hSignalAll";
71 a.ReplaceAll(
"/",
"_");
73 m_hSignalAll =
new TH1F(a, a, NUM_MODULES, 0, NUM_MODULES);
77 a =
"pxdraw/hCommonAll";
78 a.ReplaceAll(
"/",
"_");
80 m_hCommonAll =
new TH1F(a, a, NUM_MODULES, 0, NUM_MODULES);
84 a =
"pxdraw/hCountsAll";
85 a.ReplaceAll(
"/",
"_");
87 m_hCountsAll =
new TH1F(a, a, NUM_MODULES, 0, NUM_MODULES);
91 a =
"pxdraw/hOccupancyAll";
92 a.ReplaceAll(
"/",
"_");
98 for (
auto i = 0; i < NUM_MODULES; i++) {
100 auto layer = (((
id >> 5) & 0x1) + 1);
101 auto ladder = ((
id >> 1) & 0xF);
102 auto sensor = ((
id & 0x1) + 1);
103 std::string s2 = std::format(
"_{}.{}.{}", layer, ladder, sensor);
105 m_hSignalAll->GetXaxis()->SetBinLabel(i + 1, TString(s2));
106 m_hCommonAll->GetXaxis()->SetBinLabel(i + 1, TString(s2));
107 m_hCountsAll->GetXaxis()->SetBinLabel(i + 1, TString(s2));
110 a =
"pxdraw/hSignal";
111 a.ReplaceAll(
"/",
"_");
115 m_hSignal[i] =
new TH2F(a, a, 6, 0, 6, 4, 0, 4);
121 a =
"pxdraw/hCommon";
122 a.ReplaceAll(
"/",
"_");
125 m_hCommon[i] =
new TH2F(a, a, 6, 0, 6, 4, 0, 4);
131 a =
"pxdraw/hCounts";
132 a.ReplaceAll(
"/",
"_");
135 m_hCounts[i] =
new TH2F(a, a, 6, 0, 6, 4, 0, 4);
140 m_fLandau =
new TF1(
"f_Landau",
"landau", 0, 256);
148 m_fGaus =
new TF1(
"f_Gaus",
"gaus", 0, 8096);
149 m_fGaus->SetParameter(0, 1000);
154 m_fGaus->SetNumberFitPoints(256);
178 for (
auto i = 0; i < NUM_MODULES; i++) {
180 auto layer = (((
id >> 5) & 0x1) + 1);
181 auto ladder = ((
id >> 1) & 0xF);
182 auto sensor = ((
id & 0x1) + 1);
188 for (
auto j = 0; j < 6; j++) {
189 for (
auto k = 0; k < 4; k++) {
190 std::string s2 = std::format(
"_{}.{}.{}_{}_{}", layer, ladder, sensor, j, k);
192 std::string name =
"hrawPxdHitsCharge" + s2;
200 m_hSignal[i]->Fill(j, k, hh1->GetMean());
203 B2INFO(
"Histo " << name <<
" not found");
207 std::string name =
"hrawPxdHitsCommonMode" + s2;
215 m_hCommon[i]->Fill(j, k, hh1->GetMean());
218 B2INFO(
"Histo " << name <<
" not found");
222 std::string name =
"hrawPxdCount" + s2;
230 m_hCounts[i]->Fill(j, k, hh1->GetMean());
234 B2INFO(
"Histo " << name <<
" not found");
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.