Changeset 3752
- Timestamp:
- 04/15/04 15:24:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3751 r3752 29 29 * mcalib/CalibLinkDef.h 30 30 - new class to calibrate the relative times 31 32 * manalysis/MGeomApply.cc 33 - added MArrivalTime::Init() 31 34 32 35 -
trunk/MagicSoft/Mars/manalysis/MGeomApply.cc
r3700 r3752 41 41 // MBlindPixels 42 42 // MArrivalTimeCam 43 // MArrivalTime Pix43 // MArrivalTime 44 44 // 45 45 // It uses the geometry (MGeomCam) found in the parameter list. … … 80 80 #include "MBlindPixels.h" 81 81 #include "MArrivalTimeCam.h" 82 #include "MArrivalTime.h" 82 83 #include "MBadPixelsCam.h" 83 84 … … 169 170 tme->InitSize(cam->GetNumPixels()); 170 171 172 MArrivalTime *atm = (MArrivalTime*)pList->FindObject(AddSerialNumber("MArrivalTime")); 173 if (atm) 174 atm->InitSize(cam->GetNumPixels()); 175 171 176 MBadPixelsCam *bad = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 172 177 if (bad) -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r3750 r3752 36 36 // 37 37 // Output Containers: 38 // M CerPhotEvt38 // MArrivalTime 39 39 // 40 40 ////////////////////////////////////////////////////////////////////////////// … … 58 58 #include "MBadPixelsPix.h" 59 59 60 #include "M CerPhotEvt.h"60 #include "MArrivalTime.h" 61 61 62 62 ClassImp(MCalibrateRelTimes); … … 69 69 MCalibrateRelTimes::MCalibrateRelTimes(const char *name, const char *title) 70 70 : fGeomCam(NULL), fCalibrations(NULL), fBadPixels(NULL), fSignals(NULL), 71 f CerPhotEvt(NULL)71 fArrivalTime(NULL) 72 72 { 73 73 fName = name ? name : "MCalibrateRelTimes"; … … 86 86 // they were not found: 87 87 // 88 // - M CerPhotEvt88 // - MArrivalTime 89 89 // 90 90 Int_t MCalibrateRelTimes::PreProcess(MParList *pList) … … 103 103 *fLog << warn << AddSerialNumber("MBadPixelsCam") << " not found ... no action" << endl; 104 104 105 105 106 fCalibrations = (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 106 107 if (!fCalibrations) … … 111 112 112 113 113 f CerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt"));114 if (!f CerPhotEvt)114 fArrivalTime = (MArrivalTime*)pList->FindCreateObj(AddSerialNumber("MArrivalTime")); 115 if (!fArrivalTime) 115 116 { 116 *fLog << err << AddSerialNumber("M CerPhotEvt") << " not found... aborting." << endl;117 *fLog << err << AddSerialNumber("MArrivalTime") << ": Cannot create ... aborting." << endl; 117 118 return kFALSE; 118 119 } … … 159 160 160 161 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCalibrations)[pixidx]; 161 MBadPixelsPix &bad = (*fBadPixels)[pixidx];162 162 163 163 if (fBadPixels) 164 if (!bad.IsCalibrationResultOK()) 165 continue; 164 { 165 MBadPixelsPix &bad = (*fBadPixels)[pixidx]; 166 if (!bad.IsCalibrationResultOK()) 167 continue; 168 } 166 169 167 170 offset = pix.GetTimeOffset(); … … 190 193 */ 191 194 192 MCerPhotPix &cpix = (*fCerPhotEvt)[pixidx]; 193 cpix.SetTime(time); 195 fArrivalTime->SetTime(pixidx,time); 194 196 195 197 } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */ 196 198 197 f CerPhotEvt->SetReadyToSave();199 fArrivalTime->SetReadyToSave(); 198 200 199 201 return kTRUE; -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.h
r3750 r3752 18 18 class MCalibrationRelTimeCam; 19 19 class MArrivalTimeCam; 20 class M CerPhotEvt;20 class MArrivalTime; 21 21 class MCalibrateRelTimes : public MTask 22 22 { … … 26 26 MBadPixelsCam *fBadPixels; // Bad Pixels information 27 27 MArrivalTimeCam *fSignals; // Extracted Arrival Time 28 M CerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation28 MArrivalTime *fArrivalTime; // Calibrated arrival times 29 29 30 30 Int_t PreProcess(MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.