- Timestamp:
- 02/22/12 19:03:23 (13 years ago)
- Location:
- trunk/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhist/MHCamera.cc
r11567 r12921 1359 1359 // Call this function to add a MCamEvent on top of the present contents. 1360 1360 // 1361 void MHCamera::AddMeanShift(const MCamEvent &event, Int_t type) 1362 { 1363 if (fNcells<=1 || IsFreezed()) 1364 return; 1365 1366 const Double_t mean = event.GetCameraMean(*fGeomCam, type); 1367 1368 // FIXME: Security check missing! 1369 for (Int_t idx=0; idx<fNcells-2; idx++) 1370 { 1371 Double_t val=0; 1372 if (event.GetPixelContent(val, idx, *fGeomCam, type)/* && !IsUsed(idx)*/) 1373 { 1374 SetUsed(idx); 1375 Fill(idx, val-mean); // FIXME: Slow! 1376 } 1377 } 1378 fEntries++; 1379 } 1380 1381 // ------------------------------------------------------------------------ 1382 // 1383 // Call this function to add a MCamEvent on top of the present contents. 1384 // 1385 void MHCamera::AddMedianShift(const MCamEvent &event, Int_t type) 1386 { 1387 if (fNcells<=1 || IsFreezed()) 1388 return; 1389 1390 const Double_t median = event.GetCameraMedian(*fGeomCam, type); 1391 1392 // FIXME: Security check missing! 1393 for (Int_t idx=0; idx<fNcells-2; idx++) 1394 { 1395 Double_t val=0; 1396 if (event.GetPixelContent(val, idx, *fGeomCam, type)/* && !IsUsed(idx)*/) 1397 { 1398 SetUsed(idx); 1399 Fill(idx, val-median); // FIXME: Slow! 1400 } 1401 } 1402 fEntries++; 1403 } 1404 1405 // ------------------------------------------------------------------------ 1406 // 1407 // Call this function to add a MCamEvent on top of the present contents. 1408 // 1361 1409 void MHCamera::AddCamContent(const MCamEvent &event, Int_t type) 1362 1410 { -
trunk/Mars/mhist/MHCamera.h
r9317 r12921 174 174 virtual void SetCamError(const MCamEvent &evt, Int_t type=0); 175 175 virtual void SetUsed(const TArrayC &arr); 176 177 virtual void AddMedianShift(const MCamEvent &evt, Int_t type=0); 178 virtual void AddMeanShift(const MCamEvent &evt, Int_t type=0); 176 179 177 180 virtual void CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0, Bool_t isabove=kTRUE);
Note:
See TracChangeset
for help on using the changeset viewer.