Changeset 2470 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 11/04/03 17:08:27 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r2455 r2470 48 48 // 49 49 // Input Containers: 50 // MCerPhotEvt, MGeomCam[, MHillas] 50 // MCerPhotEvt 51 // MGeomCam 52 // [MHillas] 51 53 // 52 54 // Output Containers: 53 // [MHillas,] MHillasExt, MNewImagePar 55 // [MHillas] 56 // MHillasExt 57 // MNewImagePar 54 58 // 55 59 ///////////////////////////////////////////////////////////////////////////// … … 93 97 { 94 98 // necessary 95 fCerPhotEvt = (MCerPhotEvt*)pList->FindObject( "MCerPhotEvt");99 fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt")); 96 100 if (!fCerPhotEvt) 97 101 { … … 101 105 102 106 // necessary 103 fGeomCam = (MGeomCam*)pList->FindObject( "MGeomCam");107 fGeomCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam")); 104 108 if (!fGeomCam) 105 109 { … … 110 114 // depend on whether MHillas is an in- or output container 111 115 if (TestFlag(kCalcHillas)) 112 fHillas = (MHillas*)pList->FindCreateObj("MHillas", fHilName);116 fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fHilName)); 113 117 else 114 118 { 115 fHillas = (MHillas*)pList->FindObject( fHilName, "MHillas");119 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fHilName), "MHillas"); 116 120 *fLog << err << fHilName << " [MHillas] not found... aborting." << endl; 117 121 } … … 122 126 if (TestFlag(kCalcHillasExt)) 123 127 { 124 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", fHilExtName);128 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fHilExtName)); 125 129 if (!fHillasExt) 126 130 return kFALSE; … … 130 134 if (TestFlag(kCalcNewImagePar)) 131 135 { 132 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", fImgParName);136 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fImgParName)); 133 137 if (!fNewImgPar) 134 138 return kFALSE; -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc
r2209 r2470 29 29 // 30 30 // Task to calculate the source dependant part of the hillas parameters 31 // 32 // FIXME: Merge with MHillasCalc 33 // 34 // Input Containers: 35 // MHillas 36 // [MSrcPosCam] 37 // 38 // Output Containers: 39 // MHillasSrc 31 40 // 32 41 ////////////////////////////////////////////////////////////////////////////// … … 74 83 Int_t MHillasSrcCalc::PreProcess(MParList *pList) 75 84 { 76 fHillas = (MHillas*)pList->FindObject( fHillasInput, "MHillas");85 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fHillasInput), "MHillas"); 77 86 if (!fHillas) 78 87 { … … 81 90 } 82 91 83 fSrcPos = (MSrcPosCam*)pList->FindObject( fSrcName, "MSrcPosCam");92 fSrcPos = (MSrcPosCam*)pList->FindObject(AddSerialNumber(fSrcName), "MSrcPosCam"); 84 93 if (!fSrcPos) 85 94 { 86 *fLog << warn << fSrcName << " [MSrcPosCam] not found... creating default MSrcPosCam." << endl;87 fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", fSrcName);95 *fLog << warn << AddSerialNumber(fSrcName) << " [MSrcPosCam] not found... creating default container." << endl; 96 fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", AddSerialNumber(fSrcName)); 88 97 if (!fSrcPos) 89 98 return kFALSE; 90 99 } 91 100 92 fHillasSrc = (MHillasSrc*)pList->FindCreateObj("MHillasSrc", fHillasName);101 fHillasSrc = (MHillasSrc*)pList->FindCreateObj("MHillasSrc", AddSerialNumber(fHillasName)); 93 102 if (!fHillasSrc) 94 103 return kFALSE; -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r2465 r2470 244 244 // 245 245 // Input Containers: 246 // MGeomCam, MCerPhotEvt, MSigmabar 246 // MGeomCam 247 // MCerPhotEvt 248 // [MSigmabar] 247 249 // 248 250 // Output Containers: … … 646 648 Int_t MImgCleanStd::PreProcess (MParList *pList) 647 649 { 648 fCam = (MGeomCam*)pList->FindObject( "MGeomCam");650 fCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam")); 649 651 if (!fCam) 650 652 { … … 653 655 } 654 656 655 fEvt = (MCerPhotEvt*)pList->FindObject( "MCerPhotEvt");657 fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt")); 656 658 if (!fEvt) 657 659 { … … 662 664 if (fCleaningMethod == kDemocratic) 663 665 { 664 fSgb = (MSigmabar*)pList->FindObject( "MSigmabar");666 fSgb = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar")); 665 667 if (!fSgb) 666 668 { … … 671 673 else 672 674 { 673 fPed = (MPedestalCam*)pList->FindObject( "MPedestalCam");675 fPed = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 674 676 if (!fPed) 675 677 {
Note:
See TracChangeset
for help on using the changeset viewer.