ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/ElectronStudies/src/ZeeTreeWriterArgs.cc
(Generate patch)

Comparing UserCode/MitHzz4l/ElectronStudies/src/ZeeTreeWriterArgs.cc (file contents):
Revision 1.1 by anlevin, Tue Jul 17 14:09:14 2012 UTC vs.
Revision 1.4 by anlevin, Thu Jul 26 22:41:07 2012 UTC

# Line 2 | Line 2
2   #include <stdlib.h>    
3   #include <getopt.h>
4  
5 < #include "ZeeTreeWriterArgs.h"
5 > #include "ZeeTreeWriterArgs.h"
6  
7   void parse_zee_tree_writer_args(int argc, char** argv, ZeeTreeWriterFlags &flags) {
8  
# Line 17 | Line 17 | void parse_zee_tree_writer_args(int argc
17        {"book",   1, 0, 'b'},
18        {"dataset",        1, 0, 'c'},
19        {"fileset",        1, 0, 'd'},
20 <      {"outputFilename",         1, 0, 'e'},
21 <      {"n_events_to_process",    1, 0, 'h'},
20 >      {"output_filename",        1, 0, 'e'},
21 >      {"is_data",        1, 0, 'f'},
22 >      {"n_events_to_process",    1, 0, 'g'},
23 >      {"rho",    1, 0, 'h'},
24        {0, 0, 0, 0}
25      };
26      
# Line 48 | Line 50 | void parse_zee_tree_writer_args(int argc
50        flags.fileset = string(optarg);
51        break;
52      case 'e':
53 <      flags.outputFilename = string(optarg);
53 >      flags.output_filename = string(optarg);
54 >      break;
55 >    case 'f':
56 >      flags.is_data = atoi(optarg);
57 >      break;
58 >    case 'g':
59 >      flags.n_events_to_process = atoi(optarg);
60        break;
61      case 'h':
62 <      flags.n_events_to_process =atoi(optarg);
62 >      flags.rho = string(optarg);
63        break;
64      case '2':
65        if (digit_optind != 0 && digit_optind != this_option_optind)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines