Changeset 16055 for trunk/FACT++/src/DataCalib.cc
- Timestamp:
- 05/22/13 22:40:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r15628 r16055 89 89 } 90 90 91 bool DataCalib::Open(const RUN_HEAD *h, const FAD::RunDescription &d)92 { 93 if (h ->NPix != 1440)91 bool DataCalib::Open(const RUN_HEAD &h, const FAD::RunDescription &d) 92 { 93 if (h.NPix != 1440) 94 94 { 95 95 Error("Number of pixels in header for run "+to_string(GetRunId())+" not 1440."); … … 109 109 } 110 110 111 if (fData.fStep!=2 && h ->Nroi != 1024)111 if (fData.fStep!=2 && h.Nroi != 1024) 112 112 { 113 113 ostringstream msg; 114 msg << "Region of interest of run " << GetRunId() << " not 1024, but " << h ->Nroi << " in step " << fData.fStep << " ... as it ought to be.";114 msg << "Region of interest of run " << GetRunId() << " not 1024, but " << h.Nroi << " in step " << fData.fStep << " ... as it ought to be."; 115 115 Error(msg); 116 116 return false; … … 121 121 // We don't check consistency over several boards because this is done 122 122 // by the eventCheck routine already 123 for (int i=0; i<h ->NBoard; i++)124 { 125 const PEVNT_HEADER &hh = h ->FADhead[i];123 for (int i=0; i<h.NBoard; i++) 124 { 125 const PEVNT_HEADER &hh = h.FADhead[i]; 126 126 127 127 if (hh.start_package_flag==0) … … 164 164 fProcessing = true; 165 165 166 const bool hastm = h ->Nroi<=512 && h->NroiTM>=2*h->Nroi;166 const bool hastm = h.Nroi<=512 && h.NroiTM>=2*h.Nroi; 167 167 168 168 Reset(); 169 InitSize(hastm ? 1600 : 1440, h ->Nroi);169 InitSize(hastm ? 1600 : 1440, h.Nroi); 170 170 171 171 fData.fRoi = fNumSamples; … … 175 175 } 176 176 177 bool DataCalib::WriteEvt(const EVENT *e)177 bool DataCalib::WriteEvt(const EVENT &e) 178 178 { 179 179 // FIXME: SET StartPix to 0 if StartPix is -1 … … 181 181 if (fData.fStep==0) 182 182 { 183 AddRel(e ->Adc_Data, e->StartPix);183 AddRel(e.Adc_Data, e.StartPix); 184 184 } 185 185 if (fData.fStep==1) 186 186 { 187 AddRel(e ->Adc_Data, e->StartPix, fData.fOffset.data(), fData.fNumOffset);187 AddRel(e.Adc_Data, e.StartPix, fData.fOffset.data(), fData.fNumOffset); 188 188 } 189 189 if (fData.fStep==2) 190 190 { 191 AddAbs(e ->Adc_Data, e->StartPix, fData.fOffset.data(), fData.fNumOffset);191 AddAbs(e.Adc_Data, e.StartPix, fData.fOffset.data(), fData.fNumOffset); 192 192 } 193 193
Note:
See TracChangeset
for help on using the changeset viewer.