Changeset 8577 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 06/18/07 15:16:18 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.