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

Public Member Functions | |
| RawDcsHeaderBlock () | |
| RawDcsHeaderBlock (const Int_t *block) | |
| RawDcsHeaderBlock (const VldContext &vldc) | |
| virtual | ~RawDcsHeaderBlock () |
| VldTimeStamp | GetTimeStamp () const |
| VldContext | GetVldContext () const |
| virtual std::ostream & | FormatToOStream (std::ostream &os, Option_t *option="") const |
| RawDcsHeaderBlock (const RawDcsHeaderBlock &rhs) | |
Static Public Member Functions | |
| void | SetDebugFlags (const UInt_t dbgflgs) |
| UInt_t | GetDebugFlags () |
Static Private Attributes | |
| UInt_t | fgDebugFlags = 0 |
|
|
Definition at line 35 of file RawDcsHeaderBlock.cxx. 00035 : RawDataBlock() 00036 { 00037 // Default constructor 00038 }
|
|
|
Definition at line 41 of file RawDcsHeaderBlock.cxx. 00042 : RawDataBlock(block) 00043 { 00044 // stored block format is: 00045 //--------------------- 00046 // 0 # words in block 00047 // 1 checksum 00048 // 2 Block Id 00049 //----- 00050 // 3 timestamp (sec) 00051 // 4 timestamp (nsec) 00052 }
|
|
|
Definition at line 54 of file RawDcsHeaderBlock.cxx. References VldContext::GetDetector(), RawBlockProxy::GetMajorId(), VldTimeStamp::GetNanoSec(), VldTimeStamp::GetSec(), VldContext::GetSimFlag(), VldContext::GetTimeStamp(), RawBlockRegistry::Instance(), RawBlockProxy::IsDCS(), RawBlockRegistry::LookUp(), and rdxsum_fill(). 00055 : RawDataBlock() 00056 { 00057 // Component ctor 00058 00059 fSize = zzzz_last; 00060 if (fRawBlock) delete [] fRawBlock; 00061 fRawBlock = new Int_t [fSize]; 00062 00063 fRawBlock[0] = fSize; 00064 // fRawBlock[1] = checksum... see below 00065 00066 RawBlockRegistry& rbr = RawBlockRegistry::Instance(); 00067 RawBlockProxy* rbp = rbr.LookUp("RawDcsHeaderBlock"); 00068 00069 Bool_t isDCS = rbp->IsDCS(); 00070 Int_t majorId = rbp->GetMajorId(); 00071 Int_t minorId = 1; // latest and greatest minor version # 00072 RawBlockId rbid(majorId,minorId,isDCS, 00073 vldc.GetDetector(),vldc.GetSimFlag()); 00074 fRawBlock[2] = rbid.GetEncoded(); 00075 00076 fRawBlock[indx_sec] = vldc.GetTimeStamp().GetSec(); 00077 fRawBlock[indx_nsec] = vldc.GetTimeStamp().GetNanoSec(); 00078 00079 // fill checksum 00080 rdxsum_fill((long*)fRawBlock,0); 00081 00082 }
|
|
|
Definition at line 85 of file RawDcsHeaderBlock.cxx. 00086 {
00087 // dtor
00088 }
|
|
|
Definition at line 39 of file RawDcsHeaderBlock.h. 00040 : RawDataBlock(rhs) { ; }
|
|
||||||||||||
|
Reimplemented from RawDataBlock. Definition at line 109 of file RawDcsHeaderBlock.cxx. References VldTimeStamp::AsString(), RawDataBlock::FormatToOStream(), GetTimeStamp(), and option. 00111 {
00112 RawDataBlock::FormatToOStream(os,option);
00113 if (option[0] == 'X') return os;
00114
00115 os << " TimeStamp " << GetTimeStamp().AsString("c") << endl;
00116
00117 return os;
00118 }
|
|
|
Definition at line 36 of file RawDcsHeaderBlock.h. 00036 { return fgDebugFlags; }
|
|
|
Definition at line 91 of file RawDcsHeaderBlock.cxx. References indx_nsec, and indx_sec. Referenced by FormatToOStream(), and GetVldContext(). 00092 {
00093 // get the timestamp
00094 if (fSize > indx_nsec)
00095 return VldTimeStamp(fRawBlock[indx_sec],fRawBlock[indx_nsec]);
00096
00097 return VldTimeStamp((time_t)0,(Int_t)0);
00098 }
|
|
|
Definition at line 101 of file RawDcsHeaderBlock.cxx. References RawDataBlock::GetBlockId(), RawBlockId::GetDetector(), RawBlockId::GetSimFlag(), and GetTimeStamp(). Referenced by RotoObjectifier::BuildRecord(). 00102 {
00103 // build validity context
00104 RawBlockId rbid = GetBlockId();
00105 return VldContext(rbid.GetDetector(),rbid.GetSimFlag(),GetTimeStamp());
00106 }
|
|
|
Definition at line 35 of file RawDcsHeaderBlock.h. References fgDebugFlags. 00035 {fgDebugFlags=dbgflgs;}
|
|
|
Definition at line 14 of file RawDcsHeaderBlock.cxx. Referenced by SetDebugFlags(). |
1.3.9.1