15 std::vector<std::pair<uint32_t, float>> detidValues;
18 for (
int i = 1;
i <
argc; ++
i) {
20 gStyle->SetPalette(kRainbow);
21 gStyle->SetNumberContours(256);
24 gStyle->SetPalette(1);
27 detidValues.emplace_back(
detid, 1.0);
41 std::istringstream iss(
line);
49 detidValues.emplace_back(
detid, 1.0);
56 TCanvas
c = TCanvas(
"c",
"c", 1200, 800);
57 theMap.
book(
"mytest",
"Marked modules",
"input values");
58 for (
const auto& [
detid,
value] : detidValues) {
64 c.SaveAs(
"Phase1PixelMaps_Summary.png");
66 std::cout <<
"Filled tracker map with " << detidValues.size() <<
" detids." << std::endl;
int main(int argc, char *argv[])
void drawSummaryMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
void beautifyAllHistograms()
void book(const std::string ¤tHistoName, const char *what, const char *zaxis)
void fill(const std::string ¤tHistoName, unsigned int id, double value)