ATLAS Offline Software
Functions
run_AFP_PixelIdentifier.cxx File Reference
#include <TROOT.h>
#include <TFile.h>
#include <string>
#include <boost/program_options.hpp>
#include "AFP_Calibration/AFP_PixelIdentifier.h"
Include dependency graph for run_AFP_PixelIdentifier.cxx:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 13 of file run_AFP_PixelIdentifier.cxx.

14 {
15 
16  std::string input_file_name;
17  std::string output_file_name;
18  std::vector<std::string> pixel_tools_list;
19 
20  boost::program_options::options_description main_options("main options");
21 
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")
25  ("pixel_tools_list",boost::program_options::value<std::vector<std::string> >(&pixel_tools_list)->multitoken(), "list of AFP pixel tools");
26  ;
27 
28  boost::program_options::variables_map vm;
29 
30  try
31  {
32  boost::program_options::store(boost::program_options::parse_command_line(argc, argv, main_options), vm);
33  boost::program_options::notify(vm);
34  }
35  catch(std::exception& e)
36  {
37  std::cerr << "Bad command line argument" << std::endl;
38  std::cerr << e.what() << std::endl;
39  return 1;
40  }
41 
42  if(pixel_tools_list.empty())
43  {
44  pixel_tools_list.push_back("AFP_DeadPixel");
45  pixel_tools_list.push_back("AFP_NoisyPixel");
46  }
47 
49  identifier.execute();
50 
51  return 0;
52 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:71
athena.value
value
Definition: athena.py:124
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
xAOD::identifier
identifier
Definition: UncalibratedMeasurement_v1.cxx:15
calibdata.exception
exception
Definition: calibdata.py:496
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
rename_histos_in_files_from_old_code.output_file_name
string output_file_name
Definition: rename_histos_in_files_from_old_code.py:253
rename_histos_in_files_from_old_code.input_file_name
string input_file_name
Definition: rename_histos_in_files_from_old_code.py:17
AFP_PixelIdentifier
Definition: AFP_PixelIdentifier.h:22