Changeset 9157 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 11/12/08 16:16:11 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8891 r9157 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.4 2 2008-05-15 18:37:26tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.43 2008-11-12 15:55:32 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 143 143 const UInt_t MHCalibrationPulseTimeCam::fgSaturationLimit = 245; 144 144 const UInt_t MHCalibrationPulseTimeCam::fgLowerSignalLimit = 85; 145 const Int_t MHCalibrationPulseTimeCam::fgNumPixelsRequired = 2;145 const Int_t MHCalibrationPulseTimeCam::fgNumPixelsRequired = 3; 146 146 const Int_t MHCalibrationPulseTimeCam::fgHiGainNbins = 20; 147 147 const Axis_t MHCalibrationPulseTimeCam::fgHiGainFirst = -0.5; … … 201 201 fOuterRefTime = 5.; 202 202 } 203 203 204 // -------------------------------------------------------------------------- 204 205 // … … 400 401 fSignalCam->GetLastUsedSliceHiGain(), max); 401 402 402 // check if maximum is high enough403 403 if (max<fLowerSignalLimit) 404 404 continue; … … 420 420 for (UInt_t j=0; j<nareas; j++) 421 421 { 422 if (fAverageAreaNum[j] > fNumPixelsRequired) 423 { 424 sumarea[j] /= fAverageAreaNum[j]; 425 426 if (IsOscillations()) 427 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]); 428 else 429 GetAverageHiGainArea(j).FillHist(sumarea[j]); 430 431 } 422 if (fAverageAreaNum[j]<fNumPixelsRequired) 423 continue; 424 425 sumarea[j] /= fAverageAreaNum[j]; 426 427 if (IsOscillations()) 428 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]); 429 else 430 GetAverageHiGainArea(j).FillHist(sumarea[j]); 432 431 } 433 432 434 433 for (UInt_t j=0; j<nsectors; j++) 435 434 { 436 if (fAverageSectorNum[j] > 0)437 {438 sumsector[j] /= fAverageSectorNum[j]; 439 440 if (IsOscillations()) 441 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]);442 else443 GetAverageHiGainSector(j).FillHist(sumsector[j]);444 }435 if (fAverageSectorNum[j]<fNumPixelsRequired) 436 continue; 437 438 sumsector[j] /= fAverageSectorNum[j]; 439 440 if (IsOscillations()) 441 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]); 442 else 443 GetAverageHiGainSector(j).FillHist(sumsector[j]); 445 444 } 446 445 … … 535 534 } 536 535 536 Double_t MHCalibrationPulseTimeCam::GetNumEvents() const 537 { 538 return GetAverageAreas()>0 ? GetAverageHiGainArea(0).GetEntries() : 0; 539 } 537 540 538 541 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.h
r8891 r9157 73 73 void SetNumPixelsRequired( const Byte_t lim=fgNumPixelsRequired ) { fNumPixelsRequired = lim; } 74 74 75 Double_t GetNumEvents() const; 76 77 75 78 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kTRUE; } 76 79 void DrawPixelContent( Int_t num ) const; -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h
r8339 r9157 104 104 105 105 // Getters 106 const Double_t GetEntries() const { return fHGausHist.GetEntries(); } 106 107 const Double_t GetChiSquare() const { return ( fFGausFit ? fFGausFit->GetChisquare() : 0.); } 107 108 const Double_t GetExpChiSquare() const { return ( fFExpFit ? fFExpFit->GetChisquare() : 0.); }
Note:
See TracChangeset
for help on using the changeset viewer.