Changeset 11489 for trunk/Mars/mraw
- Timestamp:
- 07/20/11 18:01:11 (13 years ago)
- Location:
- trunk/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mraw/MRawEvtData.cc
r9227 r11489 47 47 // 48 48 // 49 // Version 8 50 // ------------------ 51 // + MArrayS *fStartCell 52 // 49 53 // Version 7 50 54 // ------------------ … … 358 362 359 363 fABFlags = new MArrayB(maxid==0 ? 0 : maxid/8+1); 364 fStartCells = new MArrayS(0); 360 365 361 366 fConnectedPixels = 0; 367 } 368 369 void MRawEvtData::InitStartCells() 370 { 371 delete fStartCells; 372 fStartCells = new MArrayS(fHiGainPixId->GetSize()); 362 373 } 363 374 … … 373 384 delete fLoGainFadcSamples; 374 385 delete fABFlags; 386 delete fStartCells; 375 387 } 376 388 … … 510 522 (*fHiGainPixId)[i] = i; 511 523 } 524 525 Byte_t *MRawEvtData::GetSamples() const { return fHiGainFadcSamples->GetArray(); } 526 UShort_t *MRawEvtData::GetStartCells() const { return fStartCells->GetArray(); } 527 UShort_t *MRawEvtData::GetPixelIds() const { return fHiGainPixId->GetArray(); } 528 Bool_t MRawEvtData::HasStartCells() const { return fStartCells->GetSize()==fHiGainPixId->GetSize(); } 512 529 513 530 /* -
trunk/Mars/mraw/MRawEvtData.h
r9226 r11489 36 36 37 37 MArrayB *fABFlags; //-> A information about the exact trigger position 38 MArrayS *fStartCells; // 38 39 39 40 UShort_t fNumBytesPerSample; … … 77 78 void ResetPixels(); 78 79 void ResetPixels(UShort_t npix, UShort_t maxid); 80 void InitStartCells(); 79 81 void AddPixel(UShort_t nOfPixel, const TArrayC &data); 80 82 void Set(const MArrayI &data); … … 90 92 UInt_t GetScale() const { return 1<<((fNumBytesPerSample-1)*8); } 91 93 UInt_t GetMax() const { return (UInt_t)(~1)>>((4-fNumBytesPerSample)*8); } 94 95 Byte_t *GetSamples() const; 96 UShort_t *GetStartCells() const; 97 UShort_t *GetPixelIds() const; 98 99 Bool_t HasStartCells() const; 92 100 93 101 void ReadPixel(istream &fin, Int_t npix); … … 109 117 ; 110 118 111 ClassDef(MRawEvtData, 7) //Container to store the raw Event Data119 ClassDef(MRawEvtData, 8) //Container to store the raw Event Data 112 120 }; 113 121
Note:
See TracChangeset
for help on using the changeset viewer.