Changeset 18500 for trunk/FACT++
- Timestamp:
- 05/08/16 22:57:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/rootifysql.cc
r18499 r18500 175 175 if (verbose>0) 176 176 { 177 cout << res.size() << " entries received." << endl;177 cout << res.size() << " rows received." << endl; 178 178 cout << "Query time: " << Time().UnixTime()-start2.UnixTime() << "s" << endl; 179 179 } … … 197 197 198 198 if (verbose>0) 199 cout << " Configuring" << r.size() << " branches..." << endl;199 cout << "Trying to setup " << r.size() << " branches..." << endl; 200 200 201 201 if (verbose>2) … … 206 206 vector<double> buf(l.size()); 207 207 vector<uint8_t> typ(l.size(),'-'); 208 209 UInt_t cols = 0; 208 210 209 211 // -------------------- Configure branches of TTree ------------------------ … … 211 213 for (size_t i=0; i<l.size(); i++) 212 214 { 213 ttree->Branch(l[i].c_str(), buf.data()+i);214 215 215 const string t = r[i].type().sql_name(); 216 216 … … 232 232 if (verbose>2) 233 233 cout << l[i].c_str() << " [" << typ[i] << "] " << t << '\n'; 234 235 if (typ[i]!='V' && typ[i]!='C') 236 { 237 ttree->Branch(l[i].c_str(), buf.data()+i); 238 cols++; 239 } 234 240 } 235 241 // ------------------------------------------------------------------------- … … 238 244 cout << endl; 239 245 if (verbose>0) 240 cout << " Filling branches..." << endl;246 cout << "Configured " << cols << " branches.\nFilling branches..." << endl; 241 247 242 248 if (display) … … 303 309 304 310 if (verbose>0) 305 cout << ttree->GetEntries() << " filled into tree." << endl;311 cout << ttree->GetEntries() << " rows filled into tree." << endl; 306 312 307 313 ttree->Write();
Note:
See TracChangeset
for help on using the changeset viewer.