Changeset 6855 for trunk/MagicSoft/Mars/mhft
- Timestamp:
- 03/18/05 17:21:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhft
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhft/MGeomCamMagicEnhance.cc
r5691 r6855 163 163 164 164 // Copy result into output MCerPhotEvt 165 fEvtOut-> Reset();165 fEvtOut->InitSize(res.GetSize()); 166 166 167 167 for (UInt_t i=0; i<res.GetSize(); i++) 168 168 fEvtOut->AddPixel(i, res[i], 0); 169 169 170 fEvtOut->FixSize();170 //fEvtOut->FixSize(); 171 171 fEvtOut->SetReadyToSave(); 172 172 -
trunk/MagicSoft/Mars/mhft/MHexagonalFTCalc.cc
r5691 r6855 172 172 fOffset.Reset(); 173 173 174 fMap.Set(lim);175 for (int i=0; i<lim; i++)176 fMap[i]=-1;174 //fMap.Set(lim); 175 //for (int i=0; i<lim; i++) 176 // fMap[i]=-1; 177 177 178 178 const Double_t dx = (*geom)[2].GetX(); // -(*geom)[0].GetX() … … 190 190 if ((*geom)[idx].GetAidx()==0) 191 191 { 192 fMap[idx] = i;192 //fMap[idx] = i; 193 193 fOffset[i] = 1; 194 194 } … … 254 254 MArrayD re(lim); 255 255 256 MCerPhotPix *pix=0; 257 258 MCerPhotEvtIter Next(fEvtIn, kFALSE); 259 256 // MCerPhotPix *pix=0; 257 // MCerPhotEvtIter Next(fEvtIn, kFALSE); 258 // while ((pix = (MCerPhotPix*)Next())) 260 259 // Copy data from MCerPhotEvt into array 261 while ((pix = (MCerPhotPix*)Next())) 262 { 263 const Int_t idx = pix->GetPixId(); 264 if (fMap[idx]>=0) 265 re[fMap[idx]] = pix->GetNumPhotons(); 260 const UInt_t npix = fEvtIn->GetNumPixels(); 261 for (UInt_t idx=0; idx<npix; idx++) 262 { 263 //const Int_t idx = pix->GetPixId(); 264 //if (fMap[idx]>=0) 265 re[idx] = (*fEvtIn)[idx].GetNumPhotons(); 266 266 } 267 267 … … 307 307 return kTRUE; 308 308 309 fEvtOut-> Reset();309 fEvtOut->InitSize(lim); // necessary? 310 310 for (int i=0; i<lim; i++) 311 311 { 312 const Int_t map = fMap[i];313 if (map>=0)314 fEvtOut->AddPixel(i, out[map]);315 } 316 fEvtOut->FixSize();312 //const Int_t map = fMap[i]; 313 //if (map>=0) 314 fEvtOut->AddPixel(i, out[i]); 315 } 316 //fEvtOut->FixSize(); 317 317 fEvtOut->SetReadyToSave(); 318 318
Note:
See TracChangeset
for help on using the changeset viewer.