Ignore:
Timestamp:
02/22/01 14:30:10 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r532 r609  
    1010#include "MRawFileWrite.h"
    1111
    12 #include <iostream.h>
    13 
    1412#include <TFile.h>
    1513#include <TTree.h>
    1614#include <TBranch.h>
    1715
     16#include "MLog.h"
    1817#include "MParList.h"
    1918#include "MRawRunHeader.h"
     
    4342    if (!fOut->IsOpen())
    4443    {
    45         cout << "MRawFileWrite::MRawFileWrite: ERROR: Cannot open file '";
    46         cout << fname << "'" << endl;
     44        *fLog << "MRawFileWrite::MRawFileWrite: ERROR: Cannot open file '";
     45        *fLog << fname << "'" << endl;
    4746    }
    4847}
     
    6261    if (!fRawEvtHeader)
    6362    {
    64         cout << "MRawFileWrite::PreProcess - ERROR: MRawEvtHeader not found... aborting." << endl;
     63        *fLog << "MRawFileWrite::PreProcess - ERROR: MRawEvtHeader not found... aborting." << endl;
    6564        return kFALSE;
    6665    }
     
    6968    if (!fRawEvtData)
    7069    {
    71         cout << "MRawFileWrite::PreProcess - ERROR: MRawEvtData not found... aborting." << endl;
     70        *fLog << "MRawFileWrite::PreProcess - ERROR: MRawEvtData not found... aborting." << endl;
    7271        return kFALSE;
    7372    }
     
    7675    if (!fRawCrateArray)
    7776    {
    78         cout << "MRawFileWrite::PreProcess - ERROR: MRawCrateArray not found... aborting." << endl;
     77        *fLog << "MRawFileWrite::PreProcess - ERROR: MRawCrateArray not found... aborting." << endl;
    7978        return kFALSE;
    8079    }
     
    8382    if (!fRawEvtTime)
    8483    {
    85         cout << "MRawFileWrite::PreProcess - WARNING: MRawEvtTime not found... aborting." << endl;
     84        *fLog << "MRawFileWrite::PreProcess - WARNING: MRawEvtTime not found... aborting." << endl;
    8685        return kFALSE;
    8786    }
     
    9089    if (!fRawRunHeader)
    9190    {
    92         cout << "MRawFileWrite::PreProcess - ERROR: MRawRunHeader not found... aborting." << endl;
     91        *fLog << "MRawFileWrite::PreProcess - ERROR: MRawRunHeader not found... aborting." << endl;
    9392        return kFALSE;
    9493    }
Note: See TracChangeset for help on using the changeset viewer.