56 map <VxdID, bool> flag;
57 map <VxdID, vector <ROIid>> list;
58 map <VxdID, vector <ROIid>> listDC;
59 map <VxdID, vector <ROIid>> listHLT;
62 gStyle->SetPalette(55);
63 gStyle->SetOptStat(0);
64 c1 =
new TCanvas(
"c1",
"c1", 1200, 600);
65 TH2F* h =
new TH2F(
"ChargemapWithROIs",
"PXD Module Chargemap;VCell;UCell", 768, 0, 768, 250, 0, 250);
68 list[it.getSensorID()].push_back(it);
69 flag[it.getSensorID()] =
true;
72 listDC[it.getSensorID()].push_back(it);
73 flag[it.getSensorID()] =
true;
76 listHLT[it.getSensorID()].push_back(it);
77 flag[it.getSensorID()] =
true;
80 for (
auto& f : flag) {
85 VxdID currentVxdId = f.first;
86 histoname =
m_prefix + boost::str(boost::format(
"Run_%d_Evt_%d_") % evtRun % evtNr) + string(currentVxdId);
87 h->SetTitle(histoname.data());
91 if (currentVxdId != pix.getSensorID())
continue;
92 h->Fill(pix.getRow(), pix.getColumn(), pix.getCharge());
100 for (
auto& it : list[currentVxdId]) {
102 b =
new TBox(it.getMinVid(), it.getMinUid(), it.getMaxVid(), it.getMaxUid());
103 b->SetLineColorAlpha(kRed, 0.3);
109 for (
auto& it : listDC[currentVxdId]) {
111 b =
new TBox(it.getMinVid() + 0.7, it.getMinUid() + 0.7, it.getMaxVid() + 0.7, it.getMaxUid() + 0.7);
112 b->SetLineColorAlpha(kBlue, 0.3);
120 for (
auto& it : listHLT[currentVxdId]) {
122 b =
new TBox(it.getMinVid() - 0.7, it.getMinUid() - 0.7, it.getMaxVid() - 0.7, it.getMaxUid() - 0.7);
123 b->SetLineColorAlpha(kGreen, 0.3);
129 c1->Print((histoname +
".png").data());
130 c1->Print((histoname +
".root").data());
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.