Ignore:
Timestamp:
09/28/06 19:35:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc

    r6949 r7995  
    195195    if (rawheader && runtype!=0xffff && runtype != rawheader->GetRunType())
    196196    {
    197         *fLog << warn << "Warning - You are mixing files with different run types (";
     197        *fLog << warn << "WARNING - You are mixing files with different run types (";
    198198        *fLog << runtype << ", " << rawheader->GetRunType() << ")" << endl;
     199    }
     200
     201    if (!rawheader->IsValid())
     202    {
     203        *fLog << warn << "WARNING - The run header read from the file is invalid." << endl;
     204        *fLog << "          Please check if the file contents are ok." << endl;
     205        rawheader->Print("header");
    199206    }
    200207
     
    204211        if (mcheader->GetCamVersion()==50)
    205212        {
    206             *fLog << warn << "Warning - You are using a file created with Camera 0.5." << endl;
     213            *fLog << warn << "WARNING - You are using a file created with Camera 0.5." << endl;
    207214            *fLog << "In this camera version some events have undefined Impact-Values" << endl;
    208215            *fLog << "(MMcEvt::fImpact) Please don't use it for MC studies using the" << endl;
Note: See TracChangeset for help on using the changeset viewer.