Fork me on GitHub

Changeset 247 in svn


Ignore:
Timestamp:
Feb 5, 2009, 2:37:32 PM (16 years ago)
Author:
severine ovyn
Message:

cerr ok

Location:
trunk/Utilities/ExRootAnalysis/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ExRootAnalysis/src/ExRootTreeReader.cc

    r220 r247  
    44 *  Class simplifying access to ROOT tree branches
    55 *
    6  *  $Date: 2009-02-02 11:32:01 $
    7  *  $Revision: 1.2 $
     6 *  $Date: 2009-02-05 13:37:32 $
     7 *  $Revision: 1.3 $
    88 *
    99 *
     
    1717#include "TChain.h"
    1818#include <iostream>
     19#include <iomanip>
    1920
    2021using namespace std;
     
    113114  if(!array)
    114115  {
    115     cout << "** WARNING: cannot access branch '" << branchName << "', return NULL pointer" << endl;
     116    cerr << left  << setw(35) <<"**   ERROR: cannot access branch"<<""
     117         << left  << setw(15) << branchName                       <<""
     118         << right << setw(19) <<" **"<<""<<endl;
    116119  }
    117120
     
    150153    if(!it_map->second.first)
    151154    {
    152       cout << "** WARNING: cannot get branch '" << it_map->first << "'" << endl;
     155     cerr << left  << setw(35) <<"**   ERROR: cannot get branch"<<""
     156          << left  << setw(15) << it_map->first                  <<""
     157          << right << setw(19) <<" **"<<""<<endl;
    153158    }
    154159  }
  • trunk/Utilities/ExRootAnalysis/src/ExRootTreeWriter.cc

    r220 r247  
    44 *  Class handling output ROOT tree
    55 *
    6  *  $Date: 2009-02-02 11:32:01 $
    7  *  $Revision: 1.2 $
     6 *  $Date: 2009-02-05 13:37:32 $
     7 *  $Revision: 1.3 $
    88 *
    99 *
     
    1818#include "TTree.h"
    1919#include <iostream>
     20#include <iomanip>
    2021
    2122using namespace std;
     
    3132  if(!fNewTree)
    3233  {
    33     cout << "** ERROR: cannot create tree" << endl;
     34    cerr <<"**                  ERROR: cannot create tree                      **"<< endl;
    3435    return;
    3536  }
Note: See TracChangeset for help on using the changeset viewer.