Changeset 5431 for trunk/MagicSoft/Mars/mfilter/MFSelBasic.cc
- Timestamp:
- 11/18/04 15:55:40 (20 years ago)
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.