Changeset 1496 for trunk/MagicSoft
- Timestamp:
- 08/12/02 14:14:13 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
r1487 r1496 160 160 const Int_t n = gpix.GetNumNeighbors(); 161 161 162 Int_t num = TESTBIT(fFlags, kUseCentralPixel) ? 1 : 0; 163 162 164 nphot[i] = TESTBIT(fFlags, kUseCentralPixel) ? (*fEvt)[id].GetNumPhotons() : 0; 163 165 perr[i] = TESTBIT(fFlags, kUseCentralPixel) ? (*fEvt)[id].GetErrorPhot() : 0; … … 166 168 const UShort_t nid = gpix.GetNeighbor(j); 167 169 170 if (fPixels->IsBlind(nid)) 171 continue; 172 168 173 nphot[i] += (*fEvt)[nid].GetNumPhotons(); 169 174 perr[i] += (*fEvt)[nid].GetErrorPhot(); 175 176 num++; 170 177 } 171 178 172 nphot[i] /= TESTBIT(fFlags, kUseCentralPixel) ? n+1 : n;173 perr[i] /= TESTBIT(fFlags, kUseCentralPixel) ? n+1 : n;179 nphot[i] /= num; 180 perr[i] /= num; 174 181 } 175 182 … … 263 270 MMcRunHeader *mcrun = (MMcRunHeader*)pList->FindObject("MMcRunHeader"); 264 271 if (!mcrun) 272 { 273 *fLog << warn << "MBlindPixelCalc::ReInit: Warning - No run header available... no action." << endl; 265 274 return kTRUE; 275 } 266 276 267 277 Int_t rah, ram, ras; … … 272 282 if (rah!=5 || ram!=34 || ras!=32 || ded!=22 || dem!=0 || des!=55) 273 283 { 274 *fLog << warn << "Warning - DetectedStarfield unknown..." << endl;284 *fLog << warn << "Warning - Starfield unknown..." << endl; 275 285 return kTRUE; 276 286 } -
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h
r1487 r1496 42 42 b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation); 43 43 } 44 void SetUseCe tralPixel(Bool_t b=kTRUE)44 void SetUseCentralPixel(Bool_t b=kTRUE) 45 45 { 46 46 b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
Note:
See TracChangeset
for help on using the changeset viewer.