#include <RawDataBlock.h>
Inheritance diagram for RawDataBlock:

Public Member Functions | |
| RawDataBlock () | |
| RawDataBlock (const Int_t *block) | |
| RawDataBlock (const RawDataBlock &rhs) | |
| virtual | ~RawDataBlock () |
| RawDataBlock & | operator= (const RawDataBlock &rhs) |
| const Int_t * | GetData () const |
| Int_t | GetSize () const |
| RawBlockId | GetBlockId () const |
| Int_t | GetMinorId () const |
| Int_t | GetChecksum () const |
| Bool_t | TestChecksum () const |
| virtual void | Print (Option_t *option="") const |
| virtual std::ostream & | FormatToOStream (std::ostream &os, Option_t *option="") const |
| Int_t * | AppendToBuffer (Int_t *bstart) const |
Static Public Member Functions | |
| void | SetForceHexDump (Bool_t force) |
| Bool_t | GetForceHexDump () |
Protected Attributes | |
| Int_t | fSize |
| Int_t * | fRawBlock |
Static Private Attributes | |
| Bool_t | fgForceHexDump = false |
|
|
Definition at line 44 of file RawDataBlock.cxx.
|
|
|
Definition at line 51 of file RawDataBlock.cxx. References fRawBlock, and fSize. 00052 : fSize(0), fRawBlock(0) 00053 { 00054 // Normal constructor 00055 // 00056 // build from flat buffer simply by duplicating data 00057 // 00058 if ( ! block ) return; 00059 00060 fSize = (*block); 00061 00062 if (fSize > 0) { 00063 fRawBlock = new Int_t [fSize]; 00064 memcpy(fRawBlock,block,sizeof(Int_t)*fSize); 00065 } else { 00066 fSize = 0; 00067 } 00068 }
|
|
|
Definition at line 71 of file RawDataBlock.cxx. References fRawBlock, fSize, GetData(), and GetSize(). 00072 : TObject(rhs), fSize(0), fRawBlock(0) 00073 { 00074 // deep copy constructor 00075 // 00076 // build from rhs's buffer simply by duplicating data 00077 // 00078 fSize = rhs.GetSize(); 00079 00080 if (fSize > 0) { 00081 const Int_t* block = rhs.GetData(); 00082 fRawBlock = new Int_t [fSize]; 00083 memcpy(fRawBlock,block,sizeof(Int_t)*fSize); 00084 } else { 00085 fSize = 0; 00086 } 00087 }
|
|
|
Definition at line 90 of file RawDataBlock.cxx. References fSize. 00091 {
00092 if (fSize > 0) delete [] fRawBlock;
00093 }
|
|
|
Definition at line 122 of file RawDataBlock.cxx. References fRawBlock, and fSize. Referenced by RotoObjectifier::BufferSquish(), and RotoClientModule::SendFakeStartEndRecord(). 00123 {
00124 // serialize this out to a buffer
00125 memcpy(bstart,fRawBlock,sizeof(Int_t)*fSize);
00126 Int_t *buff_end = bstart + fSize;
00127 return buff_end;
00128 }
|
|
||||||||||||
|
|
|
Definition at line 77 of file RawDataBlock.h. References fRawBlock, and fSize. Referenced by RotoObjectifier::BufferInflate(), and FormatToOStream().
|
|
|
|
Definition at line 54 of file RawDataBlock.h. 00054 { return fgForceHexDump; }
|
|
|
|
Definition at line 40 of file RawDataBlock.h. Referenced by RotoObjectifier::BufferInflate(), RotoObjectifier::BufferSquish(), RotoObjectifier::DebugDumpInflateBlock(), RotoObjectifier::DebugDumpSquishBlock(), RawQieLookUpTableBlock::FormatToOStream(), operator=(), OltNewModule::ProcessTimeframe(), RawDataBlock(), AlgCalDetSI::RunAlg(), and RotoClientModule::SendFakeStartEndRecord(). 00040 { return fSize; }
|
|
|
|
Definition at line 131 of file RawDataBlock.cxx. References FormatToOStream(), and option. Referenced by FarPlaneCheckout::Ana(), RotoObjectifier::DebugDumpInflateBlock(), RotoObjectifier::DebugDumpSquishBlock(), RerootToRawDataModule::Get(), and BDTDPlotter::write(). 00132 {
00133 FormatToOStream(cout,option);
00134 }
|
|
|
Definition at line 52 of file RawDataBlock.h. References fgForceHexDump. 00053 {fgForceHexDump=force;}
|
|
|
Definition at line 87 of file RawDataBlock.h. References fRawBlock, and rdxsum_test(). Referenced by RotoObjectifier::BufferInflate(), ValidateRawChecksums::FilterRawRecord(), and FormatToOStream(). 00088 {
00089 // TestChecksum returns TRUE if there is an error
00090 return rdxsum_test((long*)fRawBlock);
00091 }
|
|
|
Definition at line 36 of file RawDataBlock.cxx. Referenced by SetForceHexDump(). |
|
|
Definition at line 64 of file RawDataBlock.h. Referenced by AppendToBuffer(), FormatToOStream(), GetBlockId(), GetChecksum(), operator=(), RawDataBlock(), and TestChecksum(). |
|
|
Definition at line 63 of file RawDataBlock.h. Referenced by AppendToBuffer(), FormatToOStream(), GetBlockId(), GetChecksum(), operator=(), RawDataBlock(), and ~RawDataBlock(). |
1.3.9.1