Changeset 5431 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 11/18/04 15:55:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfilter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFSelBasic.cc
r4584 r5431 86 86 fThetaMax = thetamax; 87 87 88 } 89 90 // -------------------------------------------------------------------------- 91 // 92 // Set the pointers 93 // 94 // 95 Int_t MFSelBasic::PreProcess(MParList *pList) 96 { 97 fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 98 if (!fRawRun) 99 { 100 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl; 101 return kFALSE; 102 } 103 104 fPointPos = (MPointingPos*)pList->FindObject("MPointingPos"); 105 if (!fPointPos) 106 { 107 *fLog << dbginf << "MPointingPos not found... aborting." << endl; 108 return kFALSE; 109 } 110 111 fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt"); 112 if (!fEvt) 113 { 114 *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl; 115 return kFALSE; 116 } 117 118 fCam = (MGeomCam*)pList->FindObject("MGeomCam"); 119 if (!fCam) 120 { 121 *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl; 122 return kFALSE; 123 } 124 125 memset(fCut, 0, sizeof(fCut)); 126 127 //------------------------- 88 128 *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax = "; 89 129 *fLog << fMinPhotons <<", " << fThetaMin << ", " << fThetaMax << endl; 90 } 91 92 // -------------------------------------------------------------------------- 93 // 94 // Set the pointers 95 // 96 // 97 Int_t MFSelBasic::PreProcess(MParList *pList) 98 { 99 fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 100 if (!fRawRun) 101 { 102 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl; 103 return kFALSE; 104 } 105 106 fPointPos = (MPointingPos*)pList->FindObject("MPointingPos"); 107 if (!fPointPos) 108 { 109 *fLog << dbginf << "MPointingPos not found... aborting." << endl; 110 return kFALSE; 111 } 112 113 fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt"); 114 if (!fEvt) 115 { 116 *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl; 117 return kFALSE; 118 } 119 120 fCam = (MGeomCam*)pList->FindObject("MGeomCam"); 121 if (!fCam) 122 { 123 *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl; 124 return kFALSE; 125 } 126 127 memset(fCut, 0, sizeof(fCut)); 130 //------------------------- 128 131 129 132 return kTRUE; -
trunk/MagicSoft/Mars/mfilter/MFSelFinal.cc
r2663 r5431 86 86 fDistMax = distmax; 87 87 88 *fLog << inf << "MFSelFinal cut values : fHadronnessMax, fAlphaMax, fDistMax = ";89 *fLog << fHadronnessMax << ", " << fAlphaMax << ", " << fDistMax << endl;90 88 } 91 89 … … 120 118 121 119 memset(fCut, 0, sizeof(fCut)); 120 121 //---------------------- 122 *fLog << inf << "MFSelFinal cut values : fHadronnessMax, fAlphaMax, fDistMax = "; 123 *fLog << fHadronnessMax << ", " << fAlphaMax << ", " << fDistMax << endl; 124 //---------------------- 122 125 123 126 return kTRUE; -
trunk/MagicSoft/Mars/mfilter/MFSelStandard.cc
r3398 r5431 92 92 fWidthMin = widthmin; 93 93 94 } 95 96 // -------------------------------------------------------------------------- 97 // 98 // MISSING 99 // 100 Int_t MFSelStandard::PreProcess(MParList *pList) 101 { 102 fHil = (MHillas*)pList->FindObject(fHilName, "MHillas"); 103 if (!fHil) 104 { 105 *fLog << err << fHilName << " [MHillas] not found... aborting." << endl; 106 return kFALSE; 107 } 108 109 fHilSrc = (MHillasSrc*)pList->FindObject(fHilSrcName, "MHillasSrc"); 110 if (!fHilSrc) 111 { 112 *fLog << err << fHilSrcName << " [MHillasSrc] not found... aborting." << endl; 113 return kFALSE; 114 } 115 116 fNewImgPar = (MNewImagePar*)pList->FindObject(fImgParName, "MNewImagePar"); 117 if (!fNewImgPar) 118 { 119 *fLog << err << fImgParName << " [MNewImagePar] not found... aborting." << endl; 120 return kFALSE; 121 } 122 123 MGeomCam *cam = (MGeomCam*)pList->FindObject("MGeomCam"); 124 if (!cam) 125 { 126 *fLog << err << "MGeomCam (Camera Geometry) not found... aborting." << endl; 127 return kFALSE; 128 } 129 130 fMm2Deg = cam->GetConvMm2Deg(); 131 132 memset(fCut, 0, sizeof(fCut)); 133 134 //-------------------- 94 135 *fLog << inf << "MFSelStandard cut values : fUsedPixelsMax, fCorePixelsMin = "; 95 136 *fLog << fUsedPixelsMax << ", " << fCorePixelsMin << endl; … … 98 139 *fLog << inf << " fLengthMin, fWidthMin = " << fLengthMin ; 99 140 *fLog << ", " << fWidthMin << endl; 100 } 101 102 // -------------------------------------------------------------------------- 103 // 104 // MISSING 105 // 106 Int_t MFSelStandard::PreProcess(MParList *pList) 107 { 108 fHil = (MHillas*)pList->FindObject(fHilName, "MHillas"); 109 if (!fHil) 110 { 111 *fLog << err << fHilName << " [MHillas] not found... aborting." << endl; 112 return kFALSE; 113 } 114 115 fHilSrc = (MHillasSrc*)pList->FindObject(fHilSrcName, "MHillasSrc"); 116 if (!fHilSrc) 117 { 118 *fLog << err << fHilSrcName << " [MHillasSrc] not found... aborting." << endl; 119 return kFALSE; 120 } 121 122 fNewImgPar = (MNewImagePar*)pList->FindObject(fImgParName, "MNewImagePar"); 123 if (!fNewImgPar) 124 { 125 *fLog << err << fImgParName << " [MNewImagePar] not found... aborting." << endl; 126 return kFALSE; 127 } 128 129 MGeomCam *cam = (MGeomCam*)pList->FindObject("MGeomCam"); 130 if (!cam) 131 { 132 *fLog << err << "MGeomCam (Camera Geometry) not found... aborting." << endl; 133 return kFALSE; 134 } 135 136 fMm2Deg = cam->GetConvMm2Deg(); 137 138 memset(fCut, 0, sizeof(fCut)); 141 //-------------------- 139 142 140 143 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.