Ignore:
Timestamp:
01/18/08 17:06:02 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MCaos.cc

    r8376 r8818  
    22
    33#include <fstream>
    4 #include <iomanip>
    54
    65#include <TSystem.h>
     
    1211#include <TCanvas.h>
    1312
     13#include "MLog.h"
     14#include "MLogManip.h"
     15
    1416#include "MTime.h"
     17#include "MPointing.h"
    1518
    1619#include "Led.h"
     
    1922#include "FilterLed.h"
    2023
    21 #include "coord.h"
    22 
    2324using namespace std;
    2425
     
    2829    if (!fin)
    2930    {
    30         cout << "ERROR - Cannot open " << name << endl;
     31        gLog << err << "ERROR - Cannot open " << name << endl;
    3132        return;
    3233    }
     
    3435    fPositions.Clear();
    3536
    36     cout << " Reading " << name << ":" << endl;
    37     cout << "------------------------------" << endl;
     37    gLog << all << " Reading " << name << ":" << endl;
     38    gLog << inf << "------------------------------" << endl;
    3839    while (1)
    3940    {
     
    4344            break;
    4445
    45         cout << " Led #" << fPositions.GetEntriesFast() << ":  ";
    46         cout << setw(3) << px << " ";
    47         cout << setw(3) << py << "  (";
    48         cout << setw(3) << ox << ", ";
    49         cout << setw(3) << oy << ")" << endl;
     46        gLog << " Led #" << fPositions.GetEntriesFast() << ":  ";
     47        gLog << setw(3) << px << " ";
     48        gLog << setw(3) << py << "  (";
     49        gLog << setw(3) << ox << ", ";
     50        gLog << setw(3) << oy << ")" << endl;
    5051        AddPosition(px, py, ox, oy);
    5152    }
    52     cout << "Found " << fPositions.GetEntriesFast() << " leds." << endl;
     53    gLog << all << "Found " << fPositions.GetEntriesFast() << " leds." << endl;
    5354}
    5455
     
    7475        fFile = NULL;
    7576
    76         cout << "Error: Cannot open file '" << name << "'" << endl;
     77        gLog << err << "ERROR - Cannot open file '" << name << "'" << endl;
    7778    }
    7879
     
    8788    tree->Branch("EvtTime.",    &fEvtTime,    "fEvtTime/D");
    8889
    89     cout << "Root file '" << name << "' open." << endl;
     90    gLog << inf << "Root file '" << name << "' open." << endl;
    9091}
    9192
     
    102103    fFile = NULL;
    103104
    104     cout << "Root file closed (n=" << n << ")" << endl;
     105    gLog << inf << "Root file closed (n=" << n << ")" << endl;
    105106
    106107    if (n<1)
    107108    {
    108109        gSystem->Unlink(name);
    109         cout << "Root file deleted - no entries." << endl;
     110        gLog << warn << "Root file deleted - no entries." << endl;
    110111    }
    111112}
Note: See TracChangeset for help on using the changeset viewer.