Changeset 2209 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 06/23/03 12:09:05 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MCameraSmooth.cc
r2173 r2209 66 66 // - get MGeomCam from the parameter list 67 67 // 68 Bool_t MCameraSmooth::PreProcess (MParList *pList)68 Int_t MCameraSmooth::PreProcess (MParList *pList) 69 69 { 70 70 fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt"); … … 89 89 // Do the smoothing 90 90 // 91 Bool_t MCameraSmooth::Process()91 Int_t MCameraSmooth::Process() 92 92 { 93 93 const UShort_t entries = fEvt->GetNumPixels(); -
trunk/MagicSoft/Mars/mimage/MCameraSmooth.h
r1940 r2209 23 23 Bool_t fUseCentralPixel; // use also the central pixel 24 24 25 Int_t PreProcess(MParList *pList); 26 Int_t Process(); 27 25 28 public: 26 29 MCameraSmooth(Byte_t cnt=1, const char *name=NULL, const char *title=NULL); 27 30 28 31 void SetUseCetralPixel(Bool_t b=kTRUE) { fUseCentralPixel=kTRUE; } 29 30 Bool_t PreProcess(MParList *pList);31 Bool_t Process();32 32 33 33 ClassDef(MCameraSmooth, 0) // task to smooth the camera contants -
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r2173 r2209 90 90 // MNewImagePar, too. 91 91 // 92 Bool_t MHillasCalc::PreProcess(MParList *pList)92 Int_t MHillasCalc::PreProcess(MParList *pList) 93 93 { 94 94 // necessary … … 147 147 // If the calculation wasn't sucessfull skip this event 148 148 // 149 Bool_t MHillasCalc::Process()149 Int_t MHillasCalc::Process() 150 150 { 151 151 if (TestFlag(kCalcHillas)) … … 176 176 // is calculated with respect to the number of executions of this task. 177 177 // 178 Bool_t MHillasCalc::PostProcess()178 Int_t MHillasCalc::PostProcess() 179 179 { 180 180 if (GetNumExecutions()==0) -
trunk/MagicSoft/Mars/mimage/MHillasCalc.h
r2100 r2209 37 37 Int_t fFlags; 38 38 39 Bool_t PreProcess(MParList *pList);40 Bool_t Process();41 Bool_t PostProcess();39 Int_t PreProcess(MParList *pList); 40 Int_t Process(); 41 Int_t PostProcess(); 42 42 43 43 public: -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc
r2173 r2209 72 72 // ------------------------------------------------------------------------- 73 73 // 74 Bool_t MHillasSrcCalc::PreProcess(MParList *pList)74 Int_t MHillasSrcCalc::PreProcess(MParList *pList) 75 75 { 76 76 fHillas = (MHillas*)pList->FindObject(fHillasInput, "MHillas"); … … 103 103 // ------------------------------------------------------------------------- 104 104 // 105 Bool_t MHillasSrcCalc::Process()105 Int_t MHillasSrcCalc::Process() 106 106 { 107 107 … … 120 120 // is calculated with respect to the number of executions of this task. 121 121 // 122 Bool_t MHillasSrcCalc::PostProcess()122 Int_t MHillasSrcCalc::PostProcess() 123 123 { 124 124 if (GetNumExecutions()==0) -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.h
r2004 r2209 25 25 void StreamPrimitive(ofstream &out) const; 26 26 27 Bool_t PreProcess(MParList *plist);28 Bool_t Process();29 Bool_t PostProcess();27 Int_t PreProcess(MParList *plist); 28 Int_t Process(); 29 Int_t PostProcess(); 30 30 31 31 public: -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r2173 r2209 316 316 // Returns the maximum Pixel Id (used for ispixused in CleanStep2) 317 317 // 318 Int_tMImgCleanStd::CleanStep1Std()318 void MImgCleanStd::CleanStep1Std() 319 319 { 320 320 const Int_t entries = fEvt->GetNumPixels(); 321 322 Int_t max = entries;323 321 324 322 // … … 339 337 if (entry * ratio <= fCleanLvl1 * noise) 340 338 pix.SetPixelUnused(); 341 342 if (id>max) 343 max = id; 344 } 345 346 return max; 339 } 347 340 } 348 341 … … 358 351 // Returns the maximum Pixel Id (used for ispixused in CleanStep2) 359 352 // 360 Int_tMImgCleanStd::CleanStep1Dem()353 void MImgCleanStd::CleanStep1Dem() 361 354 { 362 355 const Int_t entries = fEvt->GetNumPixels(); 363 364 Int_t max = entries;365 356 366 357 // … … 380 371 if (entry * ratio <= fCleanLvl1 * fInnerNoise) 381 372 pix.SetPixelUnused(); 382 383 if (id>max) 384 max = id; 385 } 386 return max; 373 } 387 374 } 388 375 … … 394 381 // Returns the maximum Pixel Id (used for ispixused in CleanStep2) 395 382 // 396 Int_tMImgCleanStd::CleanStep1()383 void MImgCleanStd::CleanStep1() 397 384 { 398 385 switch (fCleaningMethod) 399 386 { 400 387 case kStandard: 401 return CleanStep1Std(); 388 CleanStep1Std(); 389 return; 402 390 case kDemocratic: 403 return CleanStep1Dem(); 404 } 405 406 return 0; 391 CleanStep1Dem(); 392 return; 393 } 407 394 } 408 395 … … 415 402 // Takes the maximum pixel id from CleanStep1 as an argument 416 403 // 417 void MImgCleanStd::CleanStep2( Int_t max)404 void MImgCleanStd::CleanStep2() 418 405 { 419 406 const Int_t entries = fEvt->GetNumPixels(); … … 425 412 // (MCerPhotEvt::IsPixelUsed) all the time. 426 413 // 427 Byte_t *ispixused = new Byte_t[ max+1];414 Byte_t *ispixused = new Byte_t[fCam->GetNumPixels()]; 428 415 429 416 for (Int_t i=0; i<entries; i++) … … 463 450 } 464 451 } 465 452 466 453 if (hasNeighbor == kFALSE) 467 454 pix.SetPixelUnused(); … … 640 627 // if not create one and add them to the list 641 628 // 642 Bool_t MImgCleanStd::PreProcess (MParList *pList)629 Int_t MImgCleanStd::PreProcess (MParList *pList) 643 630 { 644 631 fCam = (MGeomCam*)pList->FindObject("MGeomCam"); … … 673 660 // Cleans the image. 674 661 // 675 Bool_t MImgCleanStd::Process()662 Int_t MImgCleanStd::Process() 676 663 { 677 664 if (fSgb) 678 665 fInnerNoise = fSgb->GetSigmabarInner(); 679 666 680 const Int_t max =CleanStep1();681 CleanStep2( max);667 CleanStep1(); 668 CleanStep2(); 682 669 CleanStep3(); 683 670 -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.h
r2052 r2209 38 38 void StreamPrimitive(ofstream &out) const; 39 39 40 Int_tCleanStep1Dem();41 Int_tCleanStep1Std();40 void CleanStep1Dem(); 41 void CleanStep1Std(); 42 42 Bool_t CleanStep3Dem(const MCerPhotPix &pix); 43 43 Bool_t CleanStep3Std(const MCerPhotPix &pix); … … 45 45 void CleanStep4(UShort_t r, MCerPhotPix &pix); 46 46 47 void CleanStep1(); 48 void CleanStep2(); 49 void CleanStep3(); 50 51 Int_t PreProcess(MParList *pList); 52 Int_t Process(); 53 47 54 public: 48 55 MImgCleanStd(const Float_t lvl1=3.0, const Float_t lvl2=2.5, 49 56 const char *name=NULL, const char *title=NULL); 50 51 Int_t CleanStep1();52 void CleanStep2(Int_t max);53 void CleanStep3();54 55 Bool_t PreProcess(MParList *pList);56 Bool_t Process();57 58 57 void Print(Option_t *o="") const; 59 58 -
trunk/MagicSoft/Mars/mimage/MNewImageParCalc.cc
r2026 r2209 72 72 // ------------------------------------------------------------------------- 73 73 // 74 Bool_t MNewImageParCalc::PreProcess(MParList *pList)74 Int_t MNewImageParCalc::PreProcess(MParList *pList) 75 75 { 76 76 fHillas = (MHillas*)pList->FindObject(fHillasInput, "MHillas"); … … 113 113 // ------------------------------------------------------------------------- 114 114 // 115 Bool_t MNewImageParCalc::Process()115 Int_t MNewImageParCalc::Process() 116 116 { 117 117 -
trunk/MagicSoft/Mars/mimage/MNewImageParCalc.h
r2026 r2209 28 28 //Int_t fErrors; 29 29 30 Bool_t PreProcess(MParList *plist);31 Bool_t Process();30 Int_t PreProcess(MParList *plist); 31 Int_t Process(); 32 32 //Bool_t PostProcess(); 33 33
Note:
See TracChangeset
for help on using the changeset viewer.