Ignore:
Timestamp:
08/20/13 13:47:35 (11 years ago)
Author:
tbretz
Message:
Fixed severity in logging stream.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/merpp.C

    r15232 r17032  
     1#include "MLogManip.h"
     2
    13void merpp(TString &froot, const char *id, const char *faux)
    24{
     
    68    if (file.IsZombie())
    79    {
    8         gLog << "merpp: Invalid file '" << froot << "'" << endl;
     10        gLog << err << "merpp: Invalid file '" << froot << "'" << endl;
    911        return;
    1012    }
     
    1416    if (!tree)
    1517    {
    16         gLog << "merpp: Tree 'RunHeaders' not found... skipped." << endl;
     18        gLog << err << "merpp: Tree 'RunHeaders' not found... skipped." << endl;
    1719        return;
    1820    }
     
    2022    if (tree->GetEntries()!=1)
    2123    {
    22         gLog << "merpp: Number of RunHeaders do not match 1... skipped." << endl;
     24        gLog << err << "merpp: Number of RunHeaders do not match 1... skipped." << endl;
    2325        return;
    2426    }
     
    2931    if (file.Get(id))
    3032    {
    31         gLog << "WARNING - Tree '" << id << "' already existing... skipped." << endl;
     33        gLog << warn << "WARNING - Tree '" << id << "' already existing... skipped." << endl;
    3234        return;
    3335    }
     
    4345    TString time   = Form("MTime%s",   id);
    4446
     47    gLog << all;
    4548    gLog << " --- Fits file: " << ffits << endl;
    4649    gLog << " --- Root file: " << froot << endl;
     
    7881    if (!seq.IsValid())
    7982    {
    80         gLog << "ERROR - Sequence invalid!" << endl;
     83        gLog << err << "ERROR - Sequence invalid!" << endl;
    8184        return 1;
    8285    }
     
    8588
    8689    gLog.Separator("Merpp");
     90    gLog << all;
    8791    gLog << "Merge slow control data of sequence ";
    8892    gLog << seq.GetFileName() << endl;
     
    9397    if (seq.GetRuns(iter, MSequence::kFactImg, path)<=0)
    9498    {
    95         gLog << "ERROR - Sequence valid but without files." << endl;
     99        gLog << err << "ERROR - Sequence valid but without files." << endl;
    96100        return 2;
    97101    }
Note: See TracChangeset for help on using the changeset viewer.