Changeset 8279 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 01/30/07 14:16:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r8106 r8279 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.9 5 2006-10-17 17:16:00tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.96 2007-01-30 14:16:45 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 1333 1333 } 1334 1334 1335 // ------------------------------------------------------------------------ 1336 // 1337 // In the case the kProfile flag is set the spread of the bin is returned. 1338 // If you want to have the mean error instead set the kErrorMean bit via 1339 // SetBit(kErrorMean) first. 1340 // 1335 1341 Stat_t MHCamera::GetBinError(Int_t bin) const 1336 1342 { … … 1346 1352 const Double_t val = fArray[bin] / n; 1347 1353 1348 return sqr>val*val ? TMath::Sqrt(sqr - val*val) / n : 0; 1354 const Double_t spread = sqr>val*val ? TMath::Sqrt(sqr - val*val); 1355 1356 return TestBit(kErrorMean) ? spread/TMath::Sqrt(n) : spread; 1349 1357 1350 1358 /*
Note:
See TracChangeset
for help on using the changeset viewer.