Changeset 8788 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 12/14/07 09:59:26 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r8744 r8788 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.3 6 2007-09-07 12:17:16tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.37 2007-12-14 09:56:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 197 197 : fGeom(NULL), fPedestalsInter(NULL), 198 198 fPedestalsOut(NULL), fExtractor(NULL), fSignal(0), 199 fExtractWinFirst(0), fExtractWinSize(0), fUseSpecialPixels(kFALSE) 199 fExtractWinFirst(0), fExtractWinSize(0), fUseSpecialPixels(kFALSE), 200 fCounter(0) 200 201 { 201 202 fName = name ? name : "MExtractPedestal"; … … 468 469 } 469 470 471 fCounter = 0; 472 470 473 return fExtractor ? fExtractor->CallPreProcess(pList) : kTRUE; 471 474 } … … 621 624 Int_t MExtractPedestal::PostProcess() 622 625 { 626 fPedestalsOut->SetNumEvents(fCounter); 627 623 628 return fExtractor ? fExtractor->CallPostProcess() : kTRUE; 624 629 } -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h
r8571 r8788 90 90 MArrayI fNumEventsUsed; // Number of events used for pedestal calc for each pixel 91 91 92 UInt_t fCounter; // Counter for events processed 93 92 94 // MTask virtual functions 93 95 Int_t PreProcess(MParList *pList); -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r8490 r8788 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.3 8 2007-05-11 10:25:45tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.39 2007-12-14 09:56:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 238 238 } 239 239 240 fCounter++; 241 240 242 if (fPedestalUpdate) 241 243 fPedestalsOut->SetReadyToSave(); -
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r8490 r8788 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcPedRun.cc,v 1.5 1 2007-05-11 10:25:45tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcPedRun.cc,v 1.52 2007-12-14 09:56:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 265 265 CalcPixel(pixel, 0, fUseSpecialPixels); 266 266 267 fCounter++; 268 267 269 fPedestalsOut->SetReadyToSave(); 268 270 -
trunk/MagicSoft/Mars/mpedestal/MPedestalCam.cc
r8497 r8788 36 36 // - fTotalEntries 37 37 // 38 // Class Version 3: 39 // ---------------- 40 // + fNumEvents 41 // 38 42 ///////////////////////////////////////////////////////////////////////////// 39 43 #include "MPedestalCam.h" … … 78 82 // 79 83 MPedestalCam::MPedestalCam(const char *name, const char *title) 80 : fNumSlices(0) 84 : fNumSlices(0), fNumEvents(0) 81 85 { 82 86 fName = name ? name : "MPedestalCam"; … … 122 126 (*this)[i].Copy(cam[i]); 123 127 128 cam.fNumEvents = fNumEvents; 129 cam.fNumSlices = fNumSlices; 130 124 131 n = GetNumAverageArea(); 125 132 cam.InitAverageAreas(n); … … 293 300 } 294 301 295 void MPedestalCam::Print(Option_t *o ) const296 { 297 *fLog << all << GetDescriptor() << ":" << endl;298 *fLog << " Pixels:" << endl;302 void MPedestalCam::Print(Option_t *option) const 303 { 304 *fLog << all << GetDescriptor(); 305 *fLog << " - Events=" << fNumEvents << ", Slices=" << fNumSlices << ":" << endl; 299 306 *fLog << endl; 300 307 301 PrintArr(*fArray);302 303 308 *fLog << endl; 304 *fLog << "Event-by-event averaged areas:" << endl; 305 *fLog << endl; 306 309 *fLog << "Event-by-event averaged areas:" << endl; 307 310 PrintArr(*fAverageAreas); 308 311 309 312 *fLog << endl; 310 313 *fLog << "Event-by-event averaged sectors:" << endl; 311 *fLog << endl;312 313 314 PrintArr(*fAverageSectors); 314 } 315 315 316 if (TString(option).Contains("all", TString::kIgnoreCase)) 317 { 318 *fLog << "Pixels:" << endl; 319 PrintArr(*fArray); 320 } 321 } 322 323 /* 316 324 Float_t MPedestalCam::GetPedestalMin(const MGeomCam *geom) const 317 325 { … … 357 365 return maxval; 358 366 } 367 */ 359 368 360 369 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mpedestal/MPedestalCam.h
r8490 r8788 24 24 25 25 UInt_t fNumSlices; // Total number of slices 26 UInt_t fNumEvents; // Number of events used for pedestal calculation 26 27 27 28 void PrintArr(const TCollection &list) const; … … 31 32 MPedestalCam(const char *name=NULL, const char *title=NULL); 32 33 ~MPedestalCam(); 33 34 35 // TObject 34 36 void Clear(Option_t *o=""); 35 37 void Copy(TObject &object) const; 36 38 void Print(Option_t *o="") const; //*MENU* 39 37 40 // Getters 38 41 MPedestalPix &GetAverageArea ( UInt_t i ); … … 42 45 const MPedestalPix &GetAverageSector ( UInt_t i ) const; 43 46 const Int_t GetNumAverageSector() const; 44 Float_t GetPedestalMin ( const MGeomCam *cam ) const;45 Float_t GetPedestalMax ( const MGeomCam *cam ) const;47 //Float_t GetPedestalMin ( const MGeomCam *cam ) const; 48 //Float_t GetPedestalMax ( const MGeomCam *cam ) const; 46 49 Int_t GetSize () const; 47 50 ULong_t GetNumSlices() const { return fNumSlices; } 51 UInt_t GetNumEvents() const { return fNumEvents; } 48 52 49 53 TArrayF GetAveragedPedPerArea ( const MGeomCam &geom, const UInt_t ai=0, MBadPixelsCam *bad=NULL ); … … 51 55 TArrayF GetAveragedRmsPerArea ( const MGeomCam &geom, const UInt_t ai=0, MBadPixelsCam *bad=NULL ); 52 56 TArrayF GetAveragedRmsPerSector( const MGeomCam &geom, const UInt_t sec=0, MBadPixelsCam *bad=NULL ); 53 57 54 58 MPedestalPix &operator[] ( Int_t i ); 55 59 const MPedestalPix &operator[] ( Int_t i ) const; … … 60 64 void InitAverageSectors ( const UInt_t i ); 61 65 62 void Print(Option_t *o="") const;63 64 66 // Setters 65 67 void SetNumSlices(const ULong_t n) { fNumSlices = n; } 66 68 void SetNumEvents(const UInt_t n) { fNumEvents = n; } 69 70 // MCamEvent 67 71 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; 68 72 void DrawPixelContent(Int_t idx) const; 69 73 70 ClassDef(MPedestalCam, 2) // Storage Container for all pedestal information of the camera74 ClassDef(MPedestalCam, 3) // Storage Container for all pedestal information of the camera 71 75 }; 72 76
Note:
See TracChangeset
for help on using the changeset viewer.