17 <<
" --input-file <filename> Specify the input file\n" 18 <<
" --h or --help Show this help message\n" 19 <<
" <detid> Provide DetId (list of DetIds)\n";
24 std::vector<std::pair<uint32_t, float>> detidValues;
33 for (
int i = 1;
i <
argc; ++
i) {
36 if (
arg ==
"--h" ||
arg ==
"--help") {
39 }
else if (
arg ==
"--input-file" &&
i + 1 <
argc) {
40 gStyle->SetPalette(kRainbow);
41 gStyle->SetNumberContours(256);
44 gStyle->SetPalette(1);
48 detidValues.emplace_back(
detid, 1.0);
49 }
catch (
const std::invalid_argument&) {
67 std::istringstream iss(
line);
75 detidValues.emplace_back(
detid, 1.0);
82 TCanvas
c = TCanvas(
"c",
"c", 1200, 800);
83 theMap.
book(
"mytest",
"Marked modules",
"input values");
84 for (
const auto& [
detid,
value] : detidValues) {
90 c.SaveAs(
"Phase1PixelMaps_Summary.png");
92 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 showHelp(const std::string &scriptName)
void book(const std::string ¤tHistoName, const char *what, const char *zaxis)
void fill(const std::string ¤tHistoName, unsigned int id, double value)