20 char*
title = argv[2];
22 std::cout <<
"ready to use file " << filename <<
" to create the map " << title <<
" and save it in " <<outfile << std::endl;
36 printTrackerMap(filename,title,outfile,size,logscale,withpixel,min,max);
39 else {
std::cout <<
"Wrong number of arguments: " << argc << std::endl;
return -1; }
54 themap.setTitle(title);
55 double ratio=2400./4500.;
56 if(withpixel==
"True") {themap.addPixel(
true); themap.onlyPixel(
false); ratio=8./19.;}
57 if(withpixel==
"Only") {themap.addPixel(
false); themap.onlyPixel(
true); ratio=16./9.;}
58 if(withpixel==
"False") {themap.addPixel(
false); themap.onlyPixel(
false); ratio=8./15.;}
60 std::ifstream
input(filename);
65 while( input >> detid >> val) {
66 themap.fill_current_val(detid,val);
69 std::cout <<
"preparing a map with size " << size <<
"x" << int(size*ratio) << std::endl;
71 themap.save(
true,min,max,outfile,size,
int(size*ratio));
static std::string const input
int main(int argc, char **argv)
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.