Changeset 4577 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 08/11/04 12:01:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MGeomApply.cc
r4511 r4577 118 118 Bool_t MGeomApply::ReInit(MParList *pList) 119 119 { 120 MGeomCam * cam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));121 if (! cam)120 MGeomCam *geom = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam")); 121 if (!geom) 122 122 { 123 123 *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl; … … 128 128 // the use of some camera files from the 0.7 beta version in which the 129 129 // array containing pixel ratios is not initialized. 130 cam->CalcPixRatio(); 131 130 geom->CalcPixRatio(); 131 132 TIter Next(*pList); 133 TObject *o = 0; 134 135 while ((o=Next())) 136 { 137 MCamEvent *cam = dynamic_cast<MCamEvent*>(o); 138 if (cam) 139 cam->Init(*geom); 140 } 141 /* 132 142 MPedestalCam *ped = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 133 143 if (ped) 134 ped->Init(* cam);144 ped->Init(*geom); 135 145 136 146 MCalibrationCam *cal = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam")); 137 147 if (cal) 138 cal->Init(* cam);148 cal->Init(*geom); 139 149 140 150 MCalibrationCam *cat = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 141 151 if (cat) 142 cat->Init(* cam);152 cat->Init(*geom); 143 153 144 154 MCalibrationCam *qe = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationQECam")); 145 155 if (qe) 146 qe->Init(* cam);156 qe->Init(*geom); 147 157 148 158 MCalibrationCam *pcam = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam")); 149 159 if (pcam) 150 pcam->Init(* cam);160 pcam->Init(*geom); 151 161 152 162 MPedPhotCam *pedphot = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam")); 153 163 if (pedphot) 154 pedphot->Init(* cam);164 pedphot->Init(*geom); 155 165 156 166 MExtractedSignalCam *ext = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam")); 157 167 if (ext) 158 ext->Init Size(cam->GetNumPixels());168 ext->Init(*cam); 159 169 160 170 MArrivalTimeCam *tme = (MArrivalTimeCam*)pList->FindObject(AddSerialNumber("MArrivalTimeCam")); … … 168 178 MBadPixelsCam *bad = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 169 179 if (bad) 170 bad->InitSize(cam->GetNumPixels()); 180 bad->InitSize(cam->GetNumPixels()); 181 */ 171 182 172 183 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.