Changeset 11869 for trunk/Mars/mraw
- Timestamp:
- 08/09/11 23:52:20 (13 years ago)
- Location:
- trunk/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mraw/MRawRunHeader.cc
r11554 r11869 1283 1283 } 1284 1284 1285 void MRawRunHeader::InitFact(UShort_t num, UShort_t pix, UShort_t samples )1285 void MRawRunHeader::InitFact(UShort_t num, UShort_t pix, UShort_t samples, UShort_t *map) 1286 1286 { 1287 1287 fNumCrates = num; … … 1292 1292 fPixAssignment->Set(num*pix); 1293 1293 1294 for (int i=0; i<num*pix; i++) 1295 (*fPixAssignment)[i] = i+1; 1294 if (map) 1295 for (int i=0; i<num*pix; i++) 1296 (*fPixAssignment)[i] = map[i]+1; 1297 else 1298 { 1299 for (int i=0; i<num*pix; i++) 1300 (*fPixAssignment)[i] = i+1; 1301 } 1296 1302 1297 1303 fNumSamplesHiGain = samples; -
trunk/Mars/mraw/MRawRunHeader.h
r11554 r11869 109 109 void InitCamera(UShort_t type, UShort_t pix=0); 110 110 void InitPixels(UShort_t pix) { InitCamera((UShort_t)-1, pix); } 111 void InitFact(UShort_t num, UShort_t pix, UShort_t samples );111 void InitFact(UShort_t num, UShort_t pix, UShort_t samples, UShort_t *map=0); 112 112 void SetRunType(UShort_t type) { fRunType=type; } 113 113 void SetRunInfo(UShort_t tel, UInt_t run, UInt_t file=0); … … 164 164 UInt_t GetMax() const { switch (fNumBytesPerSample) { case 1: return 0xff; case 2: return 0xffff; case 4: return 0xffffffff; } return 0; } 165 165 166 const MArrayS &GetPixAssignment() const { return *fPixAssignment; } 167 166 168 UInt_t GetNumSamplesPerCrate() const 167 169 {
Note:
See TracChangeset
for help on using the changeset viewer.