#include <TROOT.h>
#include <TFile.h>
#include <string>
#include <boost/program_options.hpp>
#include "AFP_Calibration/AFP_PixelIdentifier.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 13 of file run_AFP_PixelIdentifier.cxx.
18 std::vector<std::string> pixel_tools_list;
20 boost::program_options::options_description main_options(
"main options");
22 main_options.add_options()
23 (
"input_file",boost::program_options::value<std::string>(&
input_file_name)->default_value(
"AFP_PixelHistoFiller.root"),
"name of output root file")
24 (
"output_file",boost::program_options::value<std::string>(&
output_file_name)->default_value(
"AFP_PixelIdentifier.root"),
"name of output root file")
28 boost::program_options::variables_map vm;
33 boost::program_options::notify(vm);
37 std::cerr <<
"Bad command line argument" << std::endl;
38 std::cerr <<
e.what() << std::endl;
42 if(pixel_tools_list.empty())
44 pixel_tools_list.push_back(
"AFP_DeadPixel");
45 pixel_tools_list.push_back(
"AFP_NoisyPixel");