Changeset 18501
- Timestamp:
- 05/14/16 17:11:40 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/rootifysql.cc
r18500 r18501 27 27 ("tree,t", var<string>("Result"), "Name of the root tree") 28 28 ("display,d", po_switch(), "Displays contents on the screen (most usefull in combination with mysql statements as SHOW or EXPLAIN)") 29 ("n o-out,n",po_switch(), "Redirect the output file to /dev/null")29 ("null,n", po_switch(), "Redirect the output file to /dev/null") 30 30 ("delimiter", var<string>(""), "The delimiter used if contents are displayed with --display (default=\\t)") 31 31 ("verbose,v", var<uint16_t>(1), "Verbosity (0: quiet, 1: default, 2: more, 3, ...)") … … 160 160 query += '\n'; 161 161 162 if (verbose> 1)162 if (verbose>2) 163 163 cout << '\n' << query << endl; 164 164 … … 199 199 cout << "Trying to setup " << r.size() << " branches..." << endl; 200 200 201 if (verbose> 2)201 if (verbose>1) 202 202 cout << endl; 203 203 … … 205 205 206 206 vector<double> buf(l.size()); 207 vector<uint8_t> typ(l.size(),' -');207 vector<uint8_t> typ(l.size(),'n'); 208 208 209 209 UInt_t cols = 0; … … 230 230 typ[i] = 'C'; 231 231 232 if (verbose>2) 233 cout << l[i].c_str() << " [" << typ[i] << "] " << t << '\n'; 234 235 if (typ[i]!='V' && typ[i]!='C') 232 const bool use = typ[i]!='V' && typ[i]!='C'; 233 234 if (verbose>1) 235 cout << (use?" + ":" - ") << l[i].c_str() << " [" << t << "] {" << typ[i] << "}\n"; 236 237 if (use) 236 238 { 237 239 ttree->Branch(l[i].c_str(), buf.data()+i); … … 241 243 // ------------------------------------------------------------------------- 242 244 243 if (verbose> 2)245 if (verbose>1) 244 246 cout << endl; 245 247 if (verbose>0)
Note:
See TracChangeset
for help on using the changeset viewer.