Changeset 666 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 03/02/01 12:48:15 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r665 r666 84 84 // if not create one and add them to the list 85 85 // 86 fRawRunHeader = (MRawRunHeader*)pList->Find Object("MRawRunHeader");86 fRawRunHeader = (MRawRunHeader*)pList->FindCreateObj("MRawRunHeader"); 87 87 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; 93 89 94 fRawEvtHeader = (MRawEvtHeader*)pList->Find Object("MRawEvtHeader");90 fRawEvtHeader = (MRawEvtHeader*)pList->FindCreateObj("MRawEvtHeader"); 95 91 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; 101 93 102 fRawEvtData = (MRawEvtData*)pList->Find Object("MRawEvtData");94 fRawEvtData = (MRawEvtData*)pList->FindCreateObj("MRawEvtData"); 103 95 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; 109 97 110 fRawCrateArray = (MRawCrateArray*)pList->Find Object("MRawCrateArray");98 fRawCrateArray = (MRawCrateArray*)pList->FindCreateObj("MRawCrateArray"); 111 99 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; 117 101 118 fRawEvtTime = (MTime*)pList->Find Object("MRawEvtTime");102 fRawEvtTime = (MTime*)pList->FindCreateObj("MRawEvtTime"); 119 103 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; 125 105 126 106 //
Note:
See TracChangeset
for help on using the changeset viewer.