Changeset 8577 for trunk/MagicSoft/Mars
- Timestamp:
- 06/18/07 15:16:18 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8575 r8577 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/06/18 Thomas Bretz 22 23 * mbadpixels/Makefile: 24 - added include of mraw 25 26 * mbadpixels/MBadPixelsTreat.[h,cc]: 27 - added some comments 28 - check for MRawRunHeader 29 - calculate max time difference from time in ns 30 31 * callisto.rc callisto_mux.rc, callisto_Dec04Jan05.rc: 32 - changed old value for time difference to 3.0 33 - use the default value (3.0) in all files 34 35 20 36 21 37 2007/06/17 Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r8571 r8577 20 20 limits in the signal- and pedestal-extraction) the numbers 21 21 refer still to the data's 16bit range. 22 23 - callisto: The maximum arrival time difference used in the bad 24 pixel treatment is now in units of nanoseconds, which leads to 3.0ns 25 for both, old FADC and MUX-FADC, data. 22 26 23 27 -
trunk/MagicSoft/Mars/callisto.rc
r8484 r8577 129 129 #MJPedestalC1.ExtractPedestal.PedestalUpdate: no 130 130 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 131 #MJPedestalC1.ExtractPedestal.CheckWinSize: 29 131 #MJPedestalC1.ExtractPedestal.CheckWinLast: 6 132 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 300 132 133 133 134 #MJPedestalC2.ExtractPedestal: MPedCalcPedRun … … 392 393 #MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0 393 394 #MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors: 3 394 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0395 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 3.0 395 396 #MJCalibrateSignal.MBadPixelsTreat.UseInterpolation: yes 396 397 #MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes -
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r8484 r8577 155 155 #MJPedestalC1.ExtractPedestal.ExtractWinSize: 6 156 156 #MJPedestalC1.ExtractPedestal.PedestalUpdate: no 157 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 158 #MJPedestalC1.ExtractPedestal.CheckWinSize: 29 157 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 158 #MJPedestalC1.ExtractPedestal.CheckWinLast: 29 159 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 40 159 160 160 161 #MJPedestalC2.ExtractPedestal: MPedCalcPedRun … … 162 163 #MJPedestalC2.ExtractPedestal.ExtractWinSize: 6 163 164 #MJPedestalC2.ExtractPedestal.PedestalUpdate: no 164 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0 165 #MJPedestalC2.ExtractPedestal.CheckWinSize: 29 165 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0 166 #MJPedestalC2.ExtractPedestal.CheckWinLast: 29 167 #MJPedestalC2.ExtractPedestal.MaxSignalVar: 40 166 168 167 169 # ------------------------------------------------------------------------- … … 174 176 #MJPedestalC1.ExtractPedestal.ExtractWinSize: 6 175 177 #MJPedestalC1.ExtractPedestal.PedestalUpdate: no 176 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0177 #MJPedestalC1.ExtractPedestal.CheckWin Size:29178 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 40178 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 179 #MJPedestalC1.ExtractPedestal.CheckWinLast: 29 180 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 40 179 181 180 182 #MJPedestalC2.ExtractPedestal: MPedCalcFromLoGain … … 182 184 #MJPedestalC2.ExtractPedestal.ExtractWinSize: 6 183 185 #MJPedestalC2.ExtractPedestal.PedestalUpdate: no 184 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0185 #MJPedestalC2.ExtractPedestal.CheckWin Size:29186 #MJPedestalC2.ExtractPedestal.MaxSignalVar: 40186 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0 187 #MJPedestalC2.ExtractPedestal.CheckWinLast: 29 188 #MJPedestalC2.ExtractPedestal.MaxSignalVar: 40 187 189 188 190 # ------------------------------------------------------------------------- … … 356 358 #MJCalibrateSignal.MPedCalcFundamental.ExtractWinSize: 6 357 359 #MJCalibrateSignal.MPedCalcFundamental.CheckWinFirst: 0 358 #MJCalibrateSignal.MPedCalcFundamental.CheckWin Size: 29360 #MJCalibrateSignal.MPedCalcFundamental.CheckWinLast: 29 359 361 #MJCalibrateSignal.MPedCalcFundamental.MaxSignalVar: 40 360 362 … … 367 369 #MJCalibrateSignal.MPedCalcFromExtractorRndm.ExtractWinSize: 6 368 370 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinFirst: 0 369 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWin Size: 29371 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinLast: 29 370 372 #MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxSignalVar: 40 371 373 … … 378 380 #MJCalibrateSignal.MPedCalcFromExtractor.ExtractWinSize: 6 379 381 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinFirst: 0 380 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWin Size: 29382 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinLast: 29 381 383 #MJCalibrateSignal.MPedCalcFromExtractor.MaxSignalVar: 40 382 384 … … 417 419 #MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0 418 420 #MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors: 3 419 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 1.0421 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 3.0 420 422 #MJCalibrateSignal.MBadPixelsTreat.UseInterpolation: yes 421 423 #MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes -
trunk/MagicSoft/Mars/callisto_mux.rc
r8575 r8577 415 415 #MJCalibrateSignal.MBadPixelsCalc.PedestalLevelVariance: 3.0 416 416 #MJCalibrateSignal.MBadPixelsTreat.NumMinNeighbors: 3 417 MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 6.0417 #MJCalibrateSignal.MBadPixelsTreat.MaxArrivalTimeDiff: 3.0 418 418 #MJCalibrateSignal.MBadPixelsTreat.UseInterpolation: yes 419 419 #MJCalibrateSignal.MBadPixelsTreat.ProcessPedestalEvt: yes -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r8339 r8577 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsTreat.cc,v 1.3 8 2007-03-01 17:42:27tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsTreat.cc,v 1.39 2007-06-18 14:11:08 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 64 64 // MPedPhotCam 65 65 // MBadPixelsCam 66 // MRawRunHeader 66 67 // [MGeomCam] 67 68 // … … 97 98 #include "MBadPixelsCam.h" 98 99 100 #include "MRawRunHeader.h" 101 99 102 ClassImp(MBadPixelsTreat); 100 103 … … 109 112 // 110 113 MBadPixelsTreat::MBadPixelsTreat(const char *name, const char *title) 111 : fGeomCam(0), fEvt(0), fBadPixels(0), fPedPhot1(0), fPedPhot2(0), 112 fFlags(0), fNumMinNeighbors(3), fMaxArrivalTimeDiff(0.9) 114 : fGeomCam(0), fEvt(0), fBadPixels(0), fRawRunHeader(0), 115 fPedPhot1(0), fPedPhot2(0),fFlags(0), fNumMinNeighbors(3), 116 fMaxArrivalTimeDiff(3.) 113 117 { 114 118 fName = name ? name : gsDefName.Data(); … … 146 150 Int_t MBadPixelsTreat::PreProcess (MParList *pList) 147 151 { 152 fRawRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 153 if (!fRawRunHeader) 154 { 155 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 156 return kFALSE; 157 } 158 148 159 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 149 160 if (!fBadPixels) … … 216 227 217 228 if (fPedPhot1 && fPedPhot2) 218 *fLog << "Maximum arrival time difference: " << fMaxArrivalTimeDiff << endl;229 *fLog << "Maximum arrival time difference: " << fMaxArrivalTimeDiff << "ns" << endl; 219 230 220 231 } … … 434 445 void MBadPixelsTreat::InterpolateTimes() const 435 446 { 447 const Double_t maxdiff = fMaxArrivalTimeDiff*fRawRunHeader->GetFreqSampling()/1000.; 448 436 449 const Int_t n = fEvt->GetNumPixels(); 437 450 for (int i=0; i<n; i++) … … 478 491 479 492 // Calculate mean arrival time of pixel probably inside the shower 480 if (TMath::Abs(tm1 - tm2)< fMaxArrivalTimeDiff)493 if (TMath::Abs(tm1 - tm2)<maxdiff) 481 494 { 482 495 sum2 += tm1+tm2; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r7804 r8577 10 10 class MPedPhotCam; 11 11 class MBadPixelsCam; 12 class MRawRunHeader; 12 13 13 14 class MBadPixelsTreat : public MTask 14 15 { 15 16 private: 16 MGeomCam *fGeomCam; //! 17 MSignalCam *fEvt; //! 18 MBadPixelsCam *fBadPixels; //! 17 MGeomCam *fGeomCam; //! Camera geometry to get the area scaling factors 18 MSignalCam *fEvt; //! Signal Event to be interpolated 19 MBadPixelsCam *fBadPixels; //! Bad Pixels to be interpolated 20 MRawRunHeader *fRawRunHeader; //! Run header to get the sampling frequency 19 21 20 MPedPhotCam *fPedPhot1; //! Pedestal from extractor used for "no-signal" in InterpolateTimes21 MPedPhotCam *fPedPhot2; //! Pedestal from extractor used for "no-signal" in InterpolateTimes22 MPedPhotCam *fPedPhot1; //! Pedestal from extractor used for "no-signal" in InterpolateTimes 23 MPedPhotCam *fPedPhot2; //! Pedestal from extractor used for "no-signal" in InterpolateTimes 22 24 23 25 24 TList fPedPhotCams; 26 TList fPedPhotCams; // List of PedPhotCams to be treated 25 27 26 28 Byte_t fFlags; // flag for the method which is used -
trunk/MagicSoft/Mars/mbadpixels/Makefile
r8416 r8577 21 21 INCLUDES = -I. -I../mbase -I../manalysis -I../mgeom -I../mgui \ 22 22 -I../mmc -I../mpedestal -I../msignal -I../mpointing \ 23 -I../mhbase -I../mhist 23 -I../mhbase -I../mhist -I../mraw 24 24 # MBadPixelsCalc (manalysis): MPedPhotCam, MSigmabar 25 25 # MBadPixelsCalc (mgeom): MGeomCam
Note:
See TracChangeset
for help on using the changeset viewer.