Changeset 18500


Ignore:
Timestamp:
05/08/16 22:57:22 (9 years ago)
Author:
tbretz
Message:
Minor improvement to output
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/rootifysql.cc

    r18499 r18500  
    175175    if (verbose>0)
    176176    {
    177         cout << res.size() << " entries received." << endl;
     177        cout << res.size() << " rows received." << endl;
    178178        cout << "Query time: " << Time().UnixTime()-start2.UnixTime() << "s" << endl;
    179179    }
     
    197197
    198198    if (verbose>0)
    199         cout << "Configuring " << r.size() << " branches..." << endl;
     199        cout << "Trying to setup " << r.size() << " branches..." << endl;
    200200
    201201    if (verbose>2)
     
    206206    vector<double>  buf(l.size());
    207207    vector<uint8_t> typ(l.size(),'-');
     208
     209    UInt_t cols = 0;
    208210
    209211    // -------------------- Configure branches of TTree ------------------------
     
    211213    for (size_t i=0; i<l.size(); i++)
    212214    {
    213         ttree->Branch(l[i].c_str(), buf.data()+i);
    214 
    215215        const string t = r[i].type().sql_name();
    216216
     
    232232        if (verbose>2)
    233233            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        }
    234240    }
    235241    // -------------------------------------------------------------------------
     
    238244        cout << endl;
    239245    if (verbose>0)
    240         cout << "Filling branches..." << endl;
     246        cout << "Configured " << cols << " branches.\nFilling branches..." << endl;
    241247
    242248    if (display)
     
    303309
    304310    if (verbose>0)
    305         cout << ttree->GetEntries() << " filled into tree." << endl;
     311        cout << ttree->GetEntries() << " rows filled into tree." << endl;
    306312
    307313    ttree->Write();
Note: See TracChangeset for help on using the changeset viewer.