Changeset 18501


Ignore:
Timestamp:
05/14/16 17:11:40 (9 years ago)
Author:
tbretz
Message:
Minor change to the verbosity option, renamed no-out to null
File:
1 edited

Legend:

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

    r18500 r18501  
    2727        ("tree,t",        var<string>("Result"),       "Name of the root tree")
    2828        ("display,d",     po_switch(),                 "Displays contents on the screen (most usefull in combination with mysql statements as SHOW or EXPLAIN)")
    29         ("no-out,n",      po_switch(),                 "Redirect the output file to /dev/null")
     29        ("null,n",        po_switch(),                 "Redirect the output file to /dev/null")
    3030        ("delimiter",     var<string>(""),             "The delimiter used if contents are displayed with --display (default=\\t)")
    3131        ("verbose,v",     var<uint16_t>(1),            "Verbosity (0: quiet, 1: default, 2: more, 3, ...)")
     
    160160        query += '\n';
    161161
    162     if (verbose>1)
     162    if (verbose>2)
    163163        cout << '\n' << query << endl;
    164164
     
    199199        cout << "Trying to setup " << r.size() << " branches..." << endl;
    200200
    201     if (verbose>2)
     201    if (verbose>1)
    202202        cout << endl;
    203203
     
    205205
    206206    vector<double>  buf(l.size());
    207     vector<uint8_t> typ(l.size(),'-');
     207    vector<uint8_t> typ(l.size(),'n');
    208208
    209209    UInt_t cols = 0;
     
    230230                            typ[i] = 'C';
    231231
    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)
    236238        {
    237239            ttree->Branch(l[i].c_str(), buf.data()+i);
     
    241243    // -------------------------------------------------------------------------
    242244
    243     if (verbose>2)
     245    if (verbose>1)
    244246        cout << endl;
    245247    if (verbose>0)
Note: See TracChangeset for help on using the changeset viewer.