25 char*
title = argv[2];
27 std::cout <<
"ready to use file " << filename <<
" to create the map " << title <<
" and save it in " << outfile
42 printTrackerMap(filename, title, outfile, size, logscale, withpixel, min, max);
45 std::cout <<
"Wrong number of arguments: " << argc << std::endl;
62 if (logscale ==
"True")
64 if (logscale ==
"False")
68 themap.setTitle(title);
69 double ratio = 2400. / 4500.;
70 if (withpixel ==
"True") {
71 themap.addPixel(
true);
72 themap.onlyPixel(
false);
75 if (withpixel ==
"Only") {
76 themap.addPixel(
false);
77 themap.onlyPixel(
true);
80 if (withpixel ==
"False") {
81 themap.addPixel(
false);
82 themap.onlyPixel(
false);
86 std::ifstream
input(filename);
91 while (input >> detid >> val) {
92 themap.fill_current_val(detid, val);
95 std::cout <<
"preparing a map with size " << size <<
"x" << int(size * ratio) << std::endl;
97 themap.save(
true, min, max, outfile, size,
int(size * ratio));
static std::string const input
void addUntrackedParameter(std::string const &name, T const &value)
void printTrackerMap(const std::string filename, const std::string title, const std::string outfile, const int size, const std::string logscale, std::string withpixel, const float min, const float max)
tuple size
Write out results.