Changeset 5163 for trunk/MagicSoft/Mars/mtemp/mmpi/macros
- Timestamp:
- 10/03/04 20:58:45 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mmpi/macros/calculate_of_weights.C
r5127 r5163 10 10 11 11 for (int i = 1; i<162;i++){ 12 derivative->SetBinContent(i,(( p->GetBinContent(i+1)-p->GetBinContent(i-1))/0.2));13 derivative->SetBinError(i,(sqrt( p->GetBinError(i+1)*p->GetBinError(i+1)+p->GetBinError(i-1)*p->GetBinError(i-1))/0.2));12 derivative->SetBinContent(i,((shape->GetBinContent(i+1)-shape->GetBinContent(i-1))/0.2)); 13 derivative->SetBinError(i,(sqrt(shape->GetBinError(i+1)*shape->GetBinError(i+1)+shape->GetBinError(i-1)*shape->GetBinError(i-1))/0.2)); 14 14 } 15 15
Note:
See TracChangeset
for help on using the changeset viewer.