Changeset 3056 for trunk/MagicSoft/Mars/mcalib/MHCalibrationPINDiode.cc
- Timestamp:
- 02/08/04 20:52:18 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPINDiode.cc
r3007 r3056 48 48 MHCalibrationPINDiode::MHCalibrationPINDiode(const char *name, const char *title) 49 49 : fChargeNbins(1000), 50 fTimeNbins(64), 51 fChargevsNbins(10000), 52 fTimeFirst(-0.25), 53 fTimeLast(31.75) 50 fChargevsNbins(10000) 54 51 { 55 52 … … 68 65 fHPINDiodeCharge->SetDirectory(NULL); 69 66 70 fHPINDiodeTime = new TH1F("HPINDiodeTime","Distribution of Mean Arrival Times PINDiode",71 fTimeNbins,fTimeFirst,fTimeLast);72 fHPINDiodeTime->SetXTitle("Mean Arrival Times [FADC slice nr]");73 fHPINDiodeTime->SetYTitle("Nr. of events");74 fHPINDiodeTime->Sumw2();75 fHPINDiodeTime->SetDirectory(NULL);76 77 67 fHPINDiodeChargevsN = new TH1I("HPINDiodeChargevsN","Sum of Hi Gain Charges vs. Event Number Pixel ", 78 68 fChargevsNbins,-0.5,(Axis_t)fChargevsNbins - 0.5); … … 88 78 89 79 delete fHPINDiodeCharge; 90 delete fHPINDiodeTime;91 80 delete fHPINDiodeChargevsN; 92 81 93 82 if (fChargeGausFit) 94 83 delete fChargeGausFit; 95 if (fRelTimeGausFit)96 delete fRelTimeGausFit;97 84 if (fFitLegend) 98 85 delete fFitLegend; … … 110 97 fChargeProb = -1.; 111 98 fChargeNdf = -1; 112 fRelTimeProb = -1.;113 fRelTimeNdf = -1;114 fRelTimeMean = -1.;115 fRelTimeSigma = -1.;116 117 fRelTimeLowerFitRangeHiGain = -99.;118 fRelTimeUpperFitRangeHiGain = -99.;119 fRelTimeLowerFitRangeLoGain = -99.;120 fRelTimeUpperFitRangeLoGain = -99.;121 99 122 100 if (fChargeGausFit) 123 101 delete fChargeGausFit; 124 if (fRelTimeGausFit)125 delete fRelTimeGausFit;126 102 if (fFitLegend) 127 103 delete fFitLegend; … … 137 113 138 114 fHPINDiodeCharge->Reset(); 139 fHPINDiodeTime->Reset();140 115 fHPINDiodeChargevsN->Reset(); 141 116 } … … 145 120 { 146 121 return (fHPINDiodeCharge->Fill(q) > -1); 147 }148 149 Bool_t MHCalibrationPINDiode::FillTime(Float_t t)150 {151 return (fHPINDiodeTime->Fill(t) > -1);152 122 } 153 123 … … 160 130 { 161 131 162 Int_t nbins = 30;132 Int_t nbins = 20; 163 133 164 134 CutEdges(fHPINDiodeCharge,nbins);
Note:
See TracChangeset
for help on using the changeset viewer.