Ignore:
Timestamp:
01/30/04 14:55:59 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2607 r2984  
    124124Bool_t MReadMarsFile::Notify()
    125125{
    126     Int_t runtype = -1;
     126    UInt_t runtype = 0xffff;
    127127
    128128    const MRawRunHeader *rawheader = (MRawRunHeader*)fParList->FindObject("MRawRunHeader");
     
    145145    if (!MReadTree::Notify())
    146146        return kFALSE;
     147
     148    if (rawheader && runtype!=0xffff && runtype != rawheader->GetRunType())
     149    {
     150        *fLog << warn << "Warning - You are mixing files with different run types (";
     151        *fLog << runtype << ", " << rawheader->GetRunType() << ")" << endl;
     152    }
    147153
    148154    if (fDisplay)
     
    152158        txt += GetNumEntry()-1;
    153159        fDisplay->SetStatusLine2(txt);
    154     }
    155 
    156     if (rawheader)
    157     {
    158         if (runtype != rawheader->GetRunType())
    159             *fLog << warn << "Warning - You are mixing files with different run types!" << endl;
    160160    }
    161161
     
    209209    }
    210210
     211    /*
    211212    const Int_t idx = GetFileIndex();
    212213    fRun->SetEventNum(idx<0?0:idx); // Assumption: One Entry per File!
     
    216217        return kFALSE;
    217218    }
    218 
     219    */
    219220    return MReadTree::PreProcess(pList);
    220221}
Note: See TracChangeset for help on using the changeset viewer.