Changeset 6253 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 02/04/05 13:31:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r5399 r6253 376 376 fLoGainFadcSamples = new MArrayB(numconnected*numlo); 377 377 378 fABFlags = new MArrayB(maxid /8+1);378 fABFlags = new MArrayB(maxid==0 ? 0 : maxid/8+1); 379 379 380 380 fConnectedPixels = 0; -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r5728 r6253 73 73 // return kTRUE the lo gains exist for the actual pixel, else return kFALSE 74 74 // 75 #include <iostream>76 75 Bool_t MRawEvtPixelIter::HasLoGain() const 77 76 { … … 85 84 return kTRUE; 86 85 87 // cout << fNumLoGainEntry << " " << flush;88 // cout << fData->fLoGainPixId->GetSize() << " " << flush;89 90 86 if (fNumLoGainEntry>fData->fLoGainPixId->GetSize()) 91 87 return kFALSE; 92 88 93 /*94 cout << fNumLoGainEntry << " " << flush;95 cout << fData->fLoGainPixId->GetSize() << " " << flush;96 cout << fData->fLoGainPixId->GetArray() << " " << flush;97 cout << fLoGainId << endl;98 */99 // cout << (int)(fLoGainId-fData->fLoGainPixId->GetArray()) << " " << flush;100 // cout << (int)(fHiGainId-fData->fHiGainPixId->GetArray()) << " " << flush;101 102 89 Bool_t rc = *fHiGainId!=*fLoGainId; 103 104 // cout << "done." << endl;105 106 90 107 91 if (rc) 108 92 return kFALSE; 109 /* 110 // We have no lo-gain at all 111 if (!fLoGainId) 112 return kFALSE; 113 114 // This is to make the first call of this function in Next() 115 // work properly! NEVER call this function before Next() 116 if (fNumLoGainEntry==0) 117 return kTRUE; 118 119 // Make sure, that we don't exceed the last entry in the array! 120 if (fNumLoGainEntry==fData->fLoGainPixId->GetSize()) 121 return kFALSE; 122 123 // Check whether the current position in lo-gain fits the hi-gain 124 return *fHiGainId!=*fLoGainId; 125 */ 93 126 94 return kTRUE; 127 95 } -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r5728 r6253 97 97 // return kTRUE the lo gains exist for the actual pixel, else return kFALSE 98 98 // 99 return fABFlags ? TESTBIT(fABFlags[GetPixelId()/8], GetPixelId()%8) : 0;99 return TESTBIT(GetABFlag(), GetPixelId()%8); 100 100 } 101 101 Byte_t GetABFlag() const
Note:
See TracChangeset
for help on using the changeset viewer.