Changeset 651 for trunk/MagicSoft
- Timestamp:
- 02/23/01 16:49:26 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r650 r651 4 4 5 5 * mraw/MRawEvtPixelIter.h: added GetSum* functions 6 7 * mbase/MParList.[h,cc]: Removed unnecessary fNext-stuff 6 8 7 9 -
trunk/MagicSoft/Mars/mbase/MParList.cc
r609 r651 23 23 ClassImp(MParList) 24 24 25 MParList::MParList() : fNext(NULL)25 MParList::MParList() 26 26 { 27 27 // … … 102 102 } 103 103 104 TObject*MParList::FindObject(const char *name) const104 MParContainer *MParList::FindObject(const char *name) const 105 105 { 106 106 // … … 108 108 // 'name' is the name of the object you are searching for. 109 109 // 110 return ( TObject*)fContainer.FindObject(name);110 return (MParContainer*)fContainer.FindObject(name); 111 111 } 112 112 -
trunk/MagicSoft/Mars/mbase/MParList.h
r609 r651 26 26 { 27 27 private: 28 TIter *fNext; //!29 28 TOrdCollection fContainer; // Collection of Parameter and Data Containers 30 29 … … 35 34 ~MParList() 36 35 { 37 if (fNext)38 delete fNext;39 36 } 40 37 … … 43 40 void SetLogStream(MLog *log); 44 41 45 TObject *FindObject(const char *name) const; 46 47 void Reset() 48 { 49 fNext = new TIter(&fContainer); 50 } 51 52 MParContainer *Next() 53 { 54 return (MParContainer*)(*fNext)(); 55 } 42 MParContainer *FindObject(const char *name) const; 56 43 57 44 void Print(Option_t *t = NULL); -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r456 r651 97 97 } 98 98 99 ULong_t MRawEvtPixelIter::GetSumHiGainFadcSamples() const 100 { 101 // 102 // return the sum of the hi gain samples of the present pixel 103 // 104 Byte_t *ptr = fHiGainPos; 105 const Byte_t *end = ptr + fData->GetNumHiGainSamples(); 99 106 107 ULong_t sum=0; 100 108 109 do sum += *ptr++; 110 while (ptr != end); 101 111 112 return sum; 113 } 102 114 115 ULong_t MRawEvtPixelIter::GetSumLoGainFadcSamples() const 116 { 117 // 118 // return the sum of the lo gain samples of the present pixel 119 // 120 if (!IsLoGain()) 121 return 0; 103 122 123 Byte_t *ptr = fLoGainPos; 124 const Byte_t *end = ptr + fData->GetNumLoGainSamples(); 125 126 ULong_t sum=0; 127 128 do sum += *ptr++; 129 while (ptr != end); 130 131 return sum; 132 } 133 -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r650 r651 55 55 } 56 56 57 ULong_t GetSumHiGainFadcSamples() const 58 { 59 // 60 // return the sum of the hi gain samples of the present pixel 61 // 62 Byte_t *ptr = fHiGainPos; 63 const Byte_t *end = ptr + fData->GetNumHiGainSamples(); 64 65 ULong_t sum=0; 66 67 do sum += *ptr++; 68 while (ptr != end); 69 70 return sum; 71 } 57 ULong_t GetSumHiGainFadcSamples() const; 72 58 73 59 Bool_t IsLoGain() const … … 88 74 } 89 75 90 ULong_t GetSumLoGainFadcSamples() const 91 { 92 // 93 // return the sum of the lo gain samples of the present pixel 94 // 95 if (!IsLoGain()) 96 return 0; 97 98 Byte_t *ptr = fLoGainPos; 99 const Byte_t *end = ptr + fData->GetNumLoGainSamples(); 100 101 ULong_t sum=0; 102 103 do sum += *ptr++; 104 while (ptr != end); 105 106 return sum; 107 } 76 ULong_t GetSumLoGainFadcSamples() const; 108 77 109 78 void Reset();
Note:
See TracChangeset
for help on using the changeset viewer.