Changeset 8489 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 05/10/07 16:33:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.cc
r6858 r8489 110 110 Int_t MFSoftwareTrigger::CountPixels(Int_t idx, Float_t tm0) const 111 111 { 112 // Try to get the pixel information of a pixel with this index 113 MSignalPix *pix = fEvt->GetPixById(idx); 114 115 // If a pixel with this index is not existing... do nothing. 116 if (!pix) 117 return 0; 112 // get the pixel information of a pixel with this index 113 MSignalPix &pix = (*fEvt)[idx]; 118 114 119 115 // If pixel already assigned to a cluster 120 if (pix ->TestBit(kWasChecked))121 return 0; 122 123 if (pix ->IsPixelUnmapped())116 if (pix.TestBit(kWasChecked)) 117 return 0; 118 119 if (pix.IsPixelUnmapped()) 124 120 return 0; 125 121 126 122 // Assign the new island number num to this used pixel 127 pix ->SetBit(kWasChecked);123 pix.SetBit(kWasChecked); 128 124 129 125 // Get the size of this pixel and check threshold 130 const Double_t size = pix ->GetNumPhotons()*fCam->GetPixRatio(idx);126 const Double_t size = pix.GetNumPhotons()*fCam->GetPixRatio(idx); 131 127 if (size<fThreshold) 132 128 return 0; 133 129 134 const Float_t tm1 = pix ->GetArrivalTime();130 const Float_t tm1 = pix.GetArrivalTime(); 135 131 if (TMath::Abs(tm1-tm0)>fTimeWindow) 136 132 return 0; 137 133 138 //pix ->SetBit(kAboveThreshold);134 //pix.SetBit(kAboveThreshold); 139 135 140 136 Int_t num = 1;
Note:
See TracChangeset
for help on using the changeset viewer.