60 map <VxdID, bool> flag;
61 map <VxdID, vector <ROIid>> list;
62 map <VxdID, vector <ROIid>> listDC;
63 map <VxdID, vector <ROIid>> listHLT;
66 gStyle->SetPalette(55);
67 gStyle->SetOptStat(0);
68 c1 =
new TCanvas(
"c1",
"c1", 1200, 600);
69 TH2F* h =
new TH2F(
"ChargemapWithROIs",
"PXD Module Chargemap;VCell;UCell", 768, 0, 768, 250, 0, 250);
72 list[it.getSensorID()].push_back(it);
73 flag[it.getSensorID()] =
true;
76 listDC[it.getSensorID()].push_back(it);
77 flag[it.getSensorID()] =
true;
80 listHLT[it.getSensorID()].push_back(it);
81 flag[it.getSensorID()] =
true;
84 for (
auto& f : flag) {
89 VxdID currentVxdId = f.first;
90 histoname =
m_prefix + boost::str(boost::format(
"Run_%d_Evt_%d_") % evtRun % evtNr) + string(currentVxdId);
91 h->SetTitle(histoname.data());
95 if (currentVxdId != pix.getSensorID())
continue;
96 h->Fill(pix.getRow(), pix.getColumn(), pix.getCharge());
104 for (
auto& it : list[currentVxdId]) {
106 b =
new TBox(it.getMinVid(), it.getMinUid(), it.getMaxVid(), it.getMaxUid());
107 b->SetLineColorAlpha(kRed, 0.3);
113 for (
auto& it : listDC[currentVxdId]) {
115 b =
new TBox(it.getMinVid() + 0.7, it.getMinUid() + 0.7, it.getMaxVid() + 0.7, it.getMaxUid() + 0.7);
116 b->SetLineColorAlpha(kBlue, 0.3);
124 for (
auto& it : listHLT[currentVxdId]) {
126 b =
new TBox(it.getMinVid() - 0.7, it.getMinUid() - 0.7, it.getMaxVid() - 0.7, it.getMaxUid() - 0.7);
127 b->SetLineColorAlpha(kGreen, 0.3);
133 c1->Print((histoname +
".png").data());
134 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.