- Timestamp:
- 03/30/04 11:24:20 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3608 r3609 41 41 * mcalib/MHGausEvents.[h,cc] 42 42 - fixed axes for event and fourier spectrum Draw 43 44 * mcalib/MHCalibrationChargePix.[h,cc] 45 * mcalib/MHCalibrationChargeCam.[h,cc] 46 - moved definition of pulser frequency to MHCalibrationChargeCam 43 47 44 48 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3601 r3609 96 96 using namespace std; 97 97 98 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.0 05;98 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.01; 99 99 const Float_t MHCalibrationChargeCam::fgNumLoGainSaturationLimit = 0.005; 100 // 100 const Int_t MHCalibrationChargeCam::fgPulserFrequency = 500; 101 101 // 102 102 // … … 147 147 SetNumHiGainSaturationLimit(); 148 148 SetNumLoGainSaturationLimit(); 149 SetPulserFrequency(); 149 150 150 151 fNumInnerPixels = 0; … … 352 353 (*this)[i].Init(); 353 354 (*this)[i].ChangeHistId(i); 355 (*this)[i].SetEventFrequency(fPulserFrequency); 354 356 } 355 357 } … … 371 373 (*this)(i).Init(); 372 374 (*this)(i).ChangeHistId(i); 373 } 375 (*this)(i).SetEventFrequency(fPulserFrequency); 376 } 377 374 378 } 375 379 380 fAverageHiGainInnerPix->SetEventFrequency(fPulserFrequency); 381 fAverageLoGainInnerPix->SetEventFrequency(fPulserFrequency); 382 fAverageHiGainOuterPix->SetEventFrequency(fPulserFrequency); 383 fAverageLoGainOuterPix->SetEventFrequency(fPulserFrequency); 384 376 385 377 386 *fLog << inf << GetDescriptor() << ": " << fNumExcluded << " excluded Pixels " << endl; 378 379 387 return kTRUE; 380 388 } … … 505 513 } 506 514 507 fAverageHiGainInnerPix-> 508 fAverageLoGainInnerPix-> 509 fAverageHiGainOuterPix-> 510 fAverageLoGainOuterPix-> 515 fAverageHiGainInnerPix->FillAbsTime(sumhiinnertot/fNumInnerPixels); 516 fAverageLoGainInnerPix->FillAbsTime(sumloinnertot/fNumInnerPixels); 517 fAverageHiGainOuterPix->FillAbsTime(sumhioutertot/fNumOuterPixels); 518 fAverageLoGainOuterPix->FillAbsTime(sumlooutertot/fNumOuterPixels); 511 519 512 520 return kTRUE; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r3551 r3609 28 28 static const Float_t fgNumHiGainSaturationLimit; // The default number of fNumHiGainSaturationLimit 29 29 static const Float_t fgNumLoGainSaturationLimit; // The default number of fNumLoGainSaturationLimit 30 static const Int_t fgPulserFrequency; // The default pulser frequency 31 32 Float_t fNumHiGainSaturationLimit; // Rel. number sat. higain FADC slices upon which the pixel is called saturated 33 Float_t fNumLoGainSaturationLimit; // Rel. number sat. logain FADC slices upon which the pixel is called saturated 34 Int_t fPulserFrequency; // The pulser frequency 35 36 TObjArray *fHiGainArray; //-> Array of MHCalibrationChargePix with hists 37 TObjArray *fLoGainArray; //-> Array of MHCalibrationChargePix with hists 38 MHCalibrationChargeHiGainPix *fAverageHiGainInnerPix; //-> HiGain Average of all inner pixels 39 MHCalibrationChargeLoGainPix *fAverageLoGainInnerPix; //-> LoGain Average of all inner pixels 40 MHCalibrationChargeHiGainPix *fAverageHiGainOuterPix; //-> HiGain Average of all outer pixels 41 MHCalibrationChargeLoGainPix *fAverageLoGainOuterPix; //-> LoGain Average of all outer pixels 30 42 31 Float_t fNumHiGainSaturationLimit; // The rel. number of saturated higain FADC slices in the whole run upon which the pixel is called saturated 32 Float_t fNumLoGainSaturationLimit; // The rel. number of saturated logain FADC slices in the whole run upon which the pixel is called saturated 33 34 TObjArray *fHiGainArray; //-> Array of MHCalibrationChargePix with hists 35 TObjArray *fLoGainArray; //-> Array of MHCalibrationChargePix with hists 36 MHCalibrationChargeHiGainPix *fAverageHiGainInnerPix; //-> One MHCalibrationChargeHiGainPix with the average of all inner pixels 37 MHCalibrationChargeLoGainPix *fAverageLoGainInnerPix; //-> One MHCalibrationChargeLoGainPix with the average of all inner pixels 38 MHCalibrationChargeHiGainPix *fAverageHiGainOuterPix; //-> One MHCalibrationChargeHiGainPix with the average of all outer pixels 39 MHCalibrationChargeLoGainPix *fAverageLoGainOuterPix; //-> One MHCalibrationChargeLoGainPix with the average of all outer pixels 40 41 MCalibrationChargeCam *fCam; //! Class holding the results 42 MRawEvtData *fRawEvt; //! Raw event data (time slices) 43 MGeomCam *fGeom; //! MAGIC geometry 44 MBadPixelsCam *fBadPixels; //! Bad Pixels 43 MCalibrationChargeCam *fCam; //! Cam holding the results 44 MRawEvtData *fRawEvt; //! Raw event data (time slices) 45 MGeomCam *fGeom; //! MAGIC geometry 46 MBadPixelsCam *fBadPixels; //! Bad Pixels 45 47 46 48 Int_t fNumInnerPixels; … … 80 82 void SetNumHiGainSaturationLimit( const Float_t lim=fgNumHiGainSaturationLimit) { fNumHiGainSaturationLimit = lim; } 81 83 void SetNumLoGainSaturationLimit( const Float_t lim=fgNumLoGainSaturationLimit) { fNumLoGainSaturationLimit = lim; } 82 84 void SetPulserFrequency ( const Int_t f=fgPulserFrequency) { fPulserFrequency = f; } 85 83 86 Float_t GetNumHiGainSaturationLimit() const { return fNumHiGainSaturationLimit; } 84 87 Float_t GetNumLoGainSaturationLimit() const { return fNumLoGainSaturationLimit; } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3551 r3609 58 58 59 59 const Float_t MHCalibrationChargePix::fgPickupLimit = 5.; 60 const Int_t MHCalibrationChargePix::fgPulserFrequency = 500;61 60 // -------------------------------------------------------------------------- 62 61 // … … 95 94 Clear(); 96 95 97 SetPulserFrequency();98 96 } 99 97 … … 138 136 fName = Form("%s%d", fName.Data(), id); 139 137 fTitle = Form("%s%d", fTitle.Data(), id); 140 }141 142 void MHCalibrationChargePix::SetPulserFrequency(Float_t f)143 {144 SetEventFrequency(f);145 138 } 146 139 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3428 r3609 23 23 24 24 protected: 25 26 static const Int_t fgPulserFrequency;27 25 28 26 Int_t fPixId; … … 67 65 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit) { fPickupLimit = lim; } 68 66 69 void SetPulserFrequency(Float_t f=fgPulserFrequency);70 71 67 void SetSaturated ( const Float_t f ) { fSaturated += f; } 72 68 void SetExcluded ( const Bool_t b=kTRUE ); -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r3608 r3609 100 100 // 101 101 MHGausEvents::MHGausEvents(const char *name, const char *title) 102 : f HPowerProbability(NULL),102 : fEventFrequency(0), fHPowerProbability(NULL), 103 103 fPowerSpectrum(NULL), 104 104 fGraphEvents(NULL), fGraphPowerSpectrum(NULL), … … 113 113 114 114 SetPowerProbabilityBins(); 115 SetEventFrequency();116 115 SetProbLimit(); 117 116 SetNDFLimit(); -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.h
r3608 r3609 63 63 64 64 void DrawEvents(); // Draw a graph of the array fEvents 65 void DrawPowerSpectrum(TVirtualPad &pad, Int_t i); // Draw a graph of the array fPowerSpectrum and the hist fHPowerProbability65 void DrawPowerSpectrum(TVirtualPad &pad, Int_t i); // Draw a graph of the array fPowerSpectrum and the hist fHPowerProbability 66 66 67 67 Float_t *CreateEventXaxis(Int_t n); // Create an x-axis for the Event TGraphs … … 77 77 78 78 // Setters 79 void SetEventFrequency(const Float_t f =0) {fEventFrequency = f; }79 void SetEventFrequency(const Float_t f) { fEventFrequency = f; } 80 80 81 81 void SetMean ( const Double_t d ) { fMean = d; }
Note:
See TracChangeset
for help on using the changeset viewer.