Ignore:
Timestamp:
03/02/01 12:48:15 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r665 r666  
    8484    //  if not create one and add them to the list
    8585    //
    86     fRawRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     86    fRawRunHeader = (MRawRunHeader*)pList->FindCreateObj("MRawRunHeader");
    8787    if (!fRawRunHeader)
    88     {
    89         *fLog << "MRawFileRead::PreProcess - WARNING: MRawRunHeader not found... creating." << endl;
    90         fRawRunHeader = new MRawRunHeader;
    91         pList->AddToList(fRawRunHeader);
    92     }
     88        return kFALSE;
    9389
    94     fRawEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader");
     90    fRawEvtHeader = (MRawEvtHeader*)pList->FindCreateObj("MRawEvtHeader");
    9591    if (!fRawEvtHeader)
    96     {
    97         *fLog << "MRawFileRead::PreProcess - WARNING: MRawEvtHeader not found... creating." << endl;
    98         fRawEvtHeader = new MRawEvtHeader;
    99         pList->AddToList(fRawEvtHeader);
    100     }
     92        return kFALSE;
    10193
    102     fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData");
     94    fRawEvtData = (MRawEvtData*)pList->FindCreateObj("MRawEvtData");
    10395    if (!fRawEvtData)
    104     {
    105         *fLog << "MRawFileRead::PreProcess - WARNING: MRawEvtData not found... creating." << endl;
    106         fRawEvtData = new MRawEvtData;
    107         pList->AddToList(fRawEvtData);
    108     }
     96        return kFALSE;
    10997
    110     fRawCrateArray = (MRawCrateArray*)pList->FindObject("MRawCrateArray");
     98    fRawCrateArray = (MRawCrateArray*)pList->FindCreateObj("MRawCrateArray");
    11199    if (!fRawCrateArray)
    112     {
    113         *fLog << "MRawFileRead::PreProcess - WARNING: MRawCrateArray not found... creating." << endl;
    114         fRawCrateArray = new MRawCrateArray;
    115         pList->AddToList(fRawCrateArray);
    116     }
     100        return kFALSE;
    117101
    118     fRawEvtTime = (MTime*)pList->FindObject("MRawEvtTime");
     102    fRawEvtTime = (MTime*)pList->FindCreateObj("MRawEvtTime");
    119103    if (!fRawEvtTime)
    120     {
    121         *fLog << "MRawFileRead::PreProcess - WARNING: MRawEvtTime not found... creating." << endl;
    122         fRawEvtTime = new MTime("MRawEvtTime");
    123         pList->AddToList(fRawEvtTime);
    124     }
     104        return kTRUE;
    125105
    126106    //
Note: See TracChangeset for help on using the changeset viewer.