Changeset 4648 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 08/17/04 13:31:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r4576 r4648 47 47 // 48 48 // 49 // Version 3: 50 // ---------- 49 // Version 5 (0.8.5): 50 // ------------------ 51 // - Changed type of ABFlags from TArrayC to MArrayB 52 // 53 // Version 4 (0.8.4): 54 // ------------------ 55 // - Changed derivement from MCamEvent to MParContainer and MCamEvent 56 // 57 // Version 3 (0.8.4): 58 // ------------------ 51 59 // - Added fABFlags 52 60 // … … 397 405 if (flag && fRunHeader) 398 406 { 399 //const int npix = fRunHeader->GetNumCrates()*fRunHeader->GetNumPixInCrate();400 407 const int npix = fRunHeader->GetNumConnectedPixels(); 401 408 … … 404 411 fHiGainFadcSamples = new MArrayB(npix*fRunHeader->GetNumSamplesHiGain()); 405 412 fLoGainFadcSamples = new MArrayB(npix*fRunHeader->GetNumSamplesLoGain()); 406 fABFlags = new TArrayC(fRunHeader->GetMaxPixId());413 fABFlags = new MArrayB(fRunHeader->GetMaxPixId()/8+1); 407 414 408 415 fArraySize = npix; … … 414 421 fHiGainFadcSamples = new MArrayB(0); 415 422 fLoGainFadcSamples = new MArrayB(0); 416 fABFlags = new TArrayC(0);423 fABFlags = new MArrayB(0); 417 424 418 425 fArraySize = 0; … … 495 502 const UShort_t ipos = npos+i; 496 503 504 // Get Hardware Id 505 const Short_t hwid = fRunHeader->GetPixAssignment(ipos); 506 507 // Check whether the pixel is connected or not 508 if (hwid<=0) 509 continue; 510 497 511 // -1 converts the hardware pixel Id into the software pixel index 498 const Int_t npix = (Int_t)fRunHeader->GetPixAssignment(ipos)-1; 499 500 // Check whether the pixel is connected or not 501 if (npix<0) 502 continue; 512 const Int_t npix = /*hwid>0 ?*/ (Int_t)hwid-1 /*: hwid*/; 503 513 504 514 // -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r4577 r4648 35 35 MArrayB *fLoGainFadcSamples; //-> list of lo gain samples of all pixels (ordering: see fLoGainPixId) 36 36 37 TArrayC*fABFlags; //-> A information about the exact trigger position37 MArrayB *fABFlags; //-> A information about the exact trigger position 38 38 39 39 Int_t fPosInArray; //! … … 89 89 ; 90 90 91 ClassDef(MRawEvtData, 4) //Container to store the raw Event Data91 ClassDef(MRawEvtData, 5) //Container to store the raw Event Data 92 92 }; 93 93 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r4609 r4648 399 399 } 400 400 401 UInt_t MRawEvtHeader::GetCalibrationPattern() const 402 { 403 return fTrigPattern[1]; 404 } 405 /* 401 406 // -------------------------------------------------------------------------- 402 407 // … … 425 430 return (CalibCol_t)((fTrigPattern[1]<<24)&0xf); 426 431 } 432 */ -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r4609 r4648 25 25 kTTCalibration = 2 26 26 }; 27 27 /* 28 28 enum CalibCol_t { 29 29 kColRed = BIT(0), … … 33 33 kColUV = BIT(4) 34 34 }; 35 35 */ 36 36 private: 37 37 MTime *fTime; //! object to store the time in (ReadEvt) … … 74 74 75 75 UInt_t GetTriggerID() const; 76 76 UInt_t GetCalibrationPattern() const; 77 /* 77 78 UShort_t GetPulserSlotPattern() const; 78 79 Byte_t GetPowerOfContLight() const; 79 80 CalibCol_t GetContLedColor() const; 80 81 */ 81 82 Int_t ReadEvt(istream& fin, UShort_t ver); 82 83 void SkipEvt(istream& fin, UShort_t ver);
Note:
See TracChangeset
for help on using the changeset viewer.