Changeset 9211 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 01/06/09 09:10:53 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MArrayB.h
r8398 r9211 51 51 fArray = NULL; 52 52 Set(array.fN, array.fArray); 53 }54 55 UInt_t GetSize() const56 {57 return fN;58 53 } 59 54 -
trunk/MagicSoft/Mars/mbase/MArrayD.h
r8398 r9211 42 42 fArray = NULL; 43 43 Set(array.fN, array.fArray); 44 }45 46 UInt_t GetSize() const47 {48 return fN;49 44 } 50 45 -
trunk/MagicSoft/Mars/mbase/MArrayF.h
r8398 r9211 42 42 fArray = NULL; 43 43 Set(array.fN, array.fArray); 44 }45 46 UInt_t GetSize() const47 {48 return fN;49 44 } 50 45 … … 174 169 } 175 170 171 template<class T> 172 void Add(T *src, Int_t n, Int_t p=0) 173 { 174 Float_t *dest = fArray + p; 175 Float_t *end = dest + n; 176 177 while (dest<end) 178 *dest++ += *src++; 179 } 180 181 template<class T> 182 void AddClipped(Double_t th, T src, Int_t n, Int_t p=0) 183 { 184 Float_t *dest = fArray + p; 185 Float_t *end = dest + n; 186 187 while (dest<end) 188 *dest++ += TMath::Min(*src++, th); 189 } 190 176 191 static void StripZeros(TArrayF &arr); 177 192 void StripZeros(); -
trunk/MagicSoft/Mars/mbase/MArrayI.h
r8398 r9211 41 41 fArray = NULL; 42 42 Set(array.fN, array.fArray); 43 }44 45 UInt_t GetSize() const46 {47 return fN;48 43 } 49 44 -
trunk/MagicSoft/Mars/mbase/MArrayS.h
r8398 r9211 49 49 fArray = NULL; 50 50 Set(array.fN, array.fArray); 51 }52 53 UInt_t GetSize() const54 {55 return fN;56 51 } 57 52
Note:
See TracChangeset
for help on using the changeset viewer.