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

Comparing UserCode/MitHzz4l/NonMCBackground/src/FOArgs.cc (file contents):
Revision 1.1 by dkralph, Sat Dec 17 21:29:32 2011 UTC vs.
Revision 1.2 by dkralph, Tue Jun 12 22:04:05 2012 UTC

# Line 13 | Line 13 | void parse_foargs( int argc, char** argv
13      int this_option_optind = optind ? optind : 1;
14      int option_index = 0;
15      static struct option long_options[] = {
16 <      {"inputdir",  1, 0, 'a'},
17 <      {"etabin",  1, 0, 'b'},
18 <      {"ptbin",  1, 0, 'c'},
16 >      {"inputfile",  1, 0, 'a'},
17 >      {"outputfile", 1, 0, 'b'},
18 >      {"outdir", 1, 0, 'c'},
19 >      {"mc", 0, 0, 'd'},
20 >      {"debug", 0, 0, 'e'},
21 >      {"era", 0, 0, 'f'},
22 >      {"inputdir",  1, 0, 'g'},
23 >      {"mufakedir",  1, 0, 'h'},
24 >      {"elefakedir",  1, 0, 'i'},
25 >      {"faketype",  1, 0, 'j'},
26 >      {"config",  1, 0, 'k'},
27 >      {"efftype",  1, 0, 'l'},
28 >      {"inputfiles",  1, 0, 'm'},
29        {0, 0, 0, 0}
30      };
31      
# Line 33 | Line 43 | void parse_foargs( int argc, char** argv
43               break;
44  
45             case 'a':
46 <             flags.inputdir = std::string(optarg);
46 >             flags.inputfile = std::string(optarg);
47               break;
48             case 'b':
49 <             flags.etabin = std::string(optarg);
49 >             flags.outputfile = std::string(optarg);
50               break;
51             case 'c':
52 <             flags.ptbin = std::string(optarg);
52 >             flags.outdir = TString(optarg);
53 >             break;
54 >           case 'd':
55 >             flags.mc = true;
56 >             break;
57 >           case 'e':
58 >             flags.debug = true;
59 >             break;
60 >           case 'f':
61 >             flags.era = atoi(optarg);
62 >             break;
63 >           case 'g':
64 >             flags.inputdir = std::string(optarg);
65 >             break;
66 >           case 'h':
67 >             flags.mufakedir = std::string(optarg);
68 >             break;
69 >           case 'i':
70 >             flags.elefakedir = std::string(optarg);
71 >             break;
72 >           case 'j':
73 >             flags.faketype = std::string(optarg);
74 >             break;
75 >           case 'k':
76 >             flags.config = std::string(optarg);
77 >             break;
78 >           case 'l':
79 >             flags.efftype = std::string(optarg);
80 >             break;
81 >           case 'm':
82 >             flags.inputfiles = std::string(optarg);
83               break;
84             case '2':
85               if (digit_optind != 0 && digit_optind != this_option_optind)
# Line 49 | Line 89 | void parse_foargs( int argc, char** argv
89               break;
90  
91  
52
53
92             case '?':
93               break;
94  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines