Go to the source code of this file.
 | 
| struct   | IO | 
|   | Structure to store the different command line arguments for JRunAnalyzer.  More...
  | 
|   | 
 | 
| int  | read_user_options (IO &options, int argc, char **argv) | 
|   | Parses the command line options and fills an IO structure with them.  More...
  | 
|   | 
| int  | main (int argc, char **argv) | 
|   | 
◆ read_user_options()
  
  
      
        
          | int read_user_options  | 
          ( | 
          IO &  | 
          options,  | 
         
        
           | 
           | 
          int  | 
          argc,  | 
         
        
           | 
           | 
          char **  | 
          argv  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Parses the command line options and fills an IO structure with them. 
- Parameters
 - 
  
    | options | an option structure  | 
    | argc | the number of command line arguments  | 
    | argv | the command line arguments | 
  
   
- Returns
 - 1 if works 2 if it doesn't work 
 
Definition at line 59 of file JRunAnalyzer.cc.
   73     if (zap.
read(argc, argv) != 0)
 
   79   catch(
const exception &error) {
 
   81     ERROR(error.what() << endl);
 
 
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 92 of file JRunAnalyzer.cc.
  100   Analyzer.read_daqevents_from_file() ;
 
  102   Analyzer.read_summaryslices_from_file () ;
 
  116   TFile outfile(options.
ofname.c_str() , 
"recreate") ; 
 
  122   run_histograms.Write_to_file (outfile) ;
 
  126   cout << 
"Done! " << endl ;