Changeset 8129 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/19/06 12:49:49 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MArrayD.h
r7808 r8129 157 157 } 158 158 159 Double_t GetSum() const 160 { 161 const Double_t *end = fArray+fN; 162 163 Double_t sum = 0; 164 for (Double_t *ptr = fArray; ptr<end; ptr++) 165 sum += *ptr; 166 return sum; 167 } 168 159 169 static void StripZeros(TArrayD &arr); 160 170 void StripZeros(); -
trunk/MagicSoft/Mars/mbase/MArrayF.h
r7808 r8129 163 163 } 164 164 165 Double_t GetSum() const 166 { 167 const Float_t *end = fArray+fN; 168 169 Double_t sum = 0; 170 for (Float_t *ptr=fArray; ptr<end; ptr++) 171 sum += *ptr; 172 173 return sum; 174 } 175 165 176 static void StripZeros(TArrayF &arr); 166 177 void StripZeros();
Note:
See TracChangeset
for help on using the changeset viewer.