Changeset 7733 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 05/23/06 17:07:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r7377 r7733 18 18 ! Author(s): Oscar Blanch 12/2001 <mailto:blanch@ifae.es> 19 19 ! Author(s): Thomas Bretz 08/2002 <mailto:tbretz@astro.uni-wuerzburg.de> 20 ! Author(s): Stefan Ruegamer <mailto:snruegam@astro.uni-wuerzburg.de> 20 21 ! 21 ! Copyright: MAGIC Software Development, 2000-200 422 ! Copyright: MAGIC Software Development, 2000-2006 22 23 ! 23 24 ! … … 107 108 MBadPixelsTreat::MBadPixelsTreat(const char *name, const char *title) 108 109 : fGeomCam(0), fEvt(0), fBadPixels(0), fPedPhot1(0), fPedPhot2(0), 109 fFlags(0), fNumMinNeighbors(3) 110 fFlags(0), fNumMinNeighbors(3), fMaxArrivalTimeDiff(1.0) 110 111 { 111 112 fName = name ? name : gsDefName.Data(); … … 425 426 void MBadPixelsTreat::InterpolateTimes() const 426 427 { 427 const Double_t tdiffshoweredge = 0.5;428 429 428 const Int_t n = fEvt->GetNumPixels(); 430 429 for (int i=0; i<n; i++) … … 471 470 472 471 // Calculate mean arrival time of pixel probably inside the shower 473 if (TMath::Abs(tm1 - tm2)< tdiffshoweredge)472 if (TMath::Abs(tm1 - tm2)<fMaxArrivalTimeDiff) 474 473 { 475 474 sum2 += tm1+tm2; … … 601 600 // MBadPixelsTreat.ProcessPedestalEvt: no 602 601 // MBadPixelsTreat.NumMinNeighbors: 3 602 // MBadPixelsTreat.MaxArrivalTimeDiff: 1.0 603 603 // 604 604 Int_t MBadPixelsTreat::ReadEnv(const TEnv &env, TString prefix, Bool_t print) … … 640 640 SetNumMinNeighbors(GetEnvValue(env, prefix, "NumMinNeighbors", fNumMinNeighbors)); 641 641 } 642 if (IsEnvDefined(env, prefix, "MaxArrivalTimeDiff", print)) 643 { 644 rc = kTRUE; 645 SetMaxArrivalTimeDiff(GetEnvValue(env, prefix, "MaxArrivalTimeDiff", fMaxArrivalTimeDiff)); 646 } 642 647 return rc; 643 648 } -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r7376 r7733 24 24 TList fPedPhotCams; 25 25 26 Byte_t fFlags; // flag for the method which is used 27 Byte_t fNumMinNeighbors; 26 Byte_t fFlags; // flag for the method which is used 27 Byte_t fNumMinNeighbors; // Number of neighbors required 28 Float_t fMaxArrivalTimeDiff; // Maximum allowed arrival time difference of neighboring pixels 28 29 29 30 TList fNamePedPhotCams; … … 95 96 Bool_t IsUseInterpolation() const { return TESTBIT(fFlags, kUseInterpolation); } 96 97 97 void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; } 98 void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; } 99 void SetMaxArrivalTimeDiff(Float_t d) { fMaxArrivalTimeDiff=d; } 98 100 void AddNamePedPhotCam(const char *name="MPedPhotCam"); 99 101 void SetNamePedPhotCam(const char *name)
Note:
See TracChangeset
for help on using the changeset viewer.