Changeset 6907 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 04/04/05 10:18:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6906 r6907 184 184 } 185 185 186 voidMHAlpha::FitEnergyBins(Bool_t paint)186 Float_t MHAlpha::FitEnergyBins(Bool_t paint) 187 187 { 188 188 // Do not store the 'final' result in fFit … … 193 193 fHEnergy.SetEntries(0); 194 194 195 Float_t mean = 0; 196 Int_t num = 0; 195 197 for (int i=1; i<=n; i++) 196 198 { … … 202 204 else 203 205 fHEnergy.SetBinError(i, fit.GetEventsExcess()); 204 } 205 } 206 207 if (fit.GetSignificance()>1) 208 { 209 mean += fit.GetSignificance(); 210 num++; 211 } 212 } 213 } 214 return mean/num; 206 215 } 207 216 … … 412 421 fHAlphaTime.SetEntries(0); 413 422 414 // Get number of bins415 const Int_t n = fHTime.GetNbinsX();416 417 423 // 418 424 // Prepare Histogram … … 420 426 if (final) 421 427 time->Plus1ns(); 428 429 // Get number of bins 430 const Int_t n = fHTime.GetNbinsX(); 422 431 423 432 // Enhance binning -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r6240 r6907 117 117 118 118 void FitEnergySpec(Bool_t paint=kFALSE); 119 voidFitEnergyBins(Bool_t paint=kFALSE);119 Float_t FitEnergyBins(Bool_t paint=kFALSE); 120 120 void FitThetaBins(Bool_t paint=kFALSE); 121 121
Note:
See TracChangeset
for help on using the changeset viewer.