Changeset 9422 for trunk/MagicSoft/Mars/msimcamera
- Timestamp:
- 04/16/09 10:46:32 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msimcamera
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimBundlePhotons.cc
r9318 r9422 106 106 // Make sure that each line has exactly one row 107 107 if (!fLut.HasConstantLength() && fLut.GetMaxEntries()!=1) 108 return kFALSE; 108 { 109 *fLog << err << fFileName << " wrongly formatted." << endl; 110 return kFALSE; 111 } 109 112 110 113 *fLog << inf << "Using look-up table from " << fFileName << endl; -
trunk/MagicSoft/Mars/msimcamera/MSimReadout.cc
r9318 r9422 163 163 } 164 164 165 // Get Number of pixels 166 const UInt_t npix = fData->GetNumPixels(); 167 168 if (npix!=fCamera->GetNumChannels()) 165 // Make sure that we have not more analog channels than pixels 166 // FIXME: Is this really necessary? 167 if (fCamera->GetNumChannels()>fData->GetNumPixels()) 169 168 { 170 169 *fLog << err; 171 170 *fLog << "ERROR - Number of analog channels " << fCamera->GetNumChannels(); 172 *fLog << " doesn't matchnumber of pixels " << fData->GetNumPixels() << endl;171 *fLog << " exceeds number of pixels " << fData->GetNumPixels() << endl; 173 172 return kERROR; 174 173 } … … 221 220 222 221 // Digitize into a buffer 223 MArrayI buffer(nslices* npix);222 MArrayI buffer(nslices*fData->GetNumPixels()); 224 223 225 224 // Loop over all channels/pixels 226 for (UInt_t i=0; i< npix; i++)225 for (UInt_t i=0; i<fCamera->GetNumChannels(); i++) 227 226 { 228 227 // Get i-th canalog hannel
Note:
See TracChangeset
for help on using the changeset viewer.