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 theMap.
bookMap(
"Strip Tracker Map of Marked modules",
"input values");
58 for (
const auto& [
detid,
value] : detidValues) {
63 bool allSame = std::all_of(detidValues.begin(), detidValues.end(), [&](
const std::pair<uint32_t, float>&
p) {
64 return p.second == detidValues[0].second;
67 TCanvas
c = TCanvas(
"c",
"c");
74 c.SaveAs(
"SiStripsTkMaps.png");
76 std::cout <<
"Filled tracker map with " << detidValues.size() <<
" detids." << std::endl;
int main(int argc, char *argv[])
void bookMap(const std::string mapTitle, const std::string zAxisTitle)
U second(std::pair< T, U > const &p)
void fill(long rawid, double val)
void setZAxisRange(double xmin, double xmax)
void drawMap(TCanvas &canvas, std::string option="")