16 <<
" --input-file <filename> Specify the input file\n" 17 <<
" --h or --help Show this help message\n" 18 <<
" <detid> Provide DetId (list of DetIds)\n";
23 std::vector<std::pair<uint32_t, float>> detidValues;
32 for (
int i = 1;
i <
argc; ++
i) {
35 if (
arg ==
"--h" ||
arg ==
"--help") {
38 }
else if (
arg ==
"--input-file" &&
i + 1 <
argc) {
39 gStyle->SetPalette(kRainbow);
40 gStyle->SetNumberContours(256);
43 gStyle->SetPalette(1);
47 detidValues.emplace_back(
detid, 1.0);
48 }
catch (
const std::invalid_argument&) {
66 std::istringstream iss(
line);
74 detidValues.emplace_back(
detid, 1.0);
83 for (
const auto& [
detid,
value] : detidValues) {
87 TCanvas
c = TCanvas(
"c",
"c", 3000, 2000);
89 c.SaveAs(
"Phase1PixelSummaryMap.png");
91 std::cout <<
"Filled tracker map with " << detidValues.size() <<
" detids." << std::endl;
void createTrackerBaseMap()
int main(int argc, char *argv[])
void showHelp(const std::string &scriptName)
void printTrackerMap(TCanvas &canvas, const float topMargin=0.02, int index=0)
bool fillTrackerMap(unsigned int id, double value)