00001 00002 // RawBlockProxy 00003 // 00004 // Initial JobCModuleProxy by messier@huhepl.harvard.edu 00005 // Adapted to RawBlockProxy by rhatcher@fnal.gov (2001-04-13) 00006 // 00008 #include "RawData/RawBlockProxy.h" 00009 #include "MessageService/MsgService.h" 00010 00011 #include "RawData/RawDataBlock.h" 00012 00013 CVSID("$Id: RawBlockProxy.cxx,v 1.4 2002/07/13 15:43:09 rhatcher Exp $"); 00014 00015 //...................................................................... 00016 00017 ostream& operator<<(ostream& os, const RawBlockProxy& rbp) 00018 { 00019 os << " " 00020 << ((rbp.IsDCS()) ? "DCS" : "DAQ") << " " 00021 << "0x" << hex << setw(4) << setfill('0') 00022 << rbp.GetMajorId() 00023 << setfill(' ') << dec 00024 << " (" << setw(5) << rbp.GetMajorId() << ") " 00025 << rbp.GetName() << " "; 00026 00027 return os; 00028 } 00029 00030 //...................................................................... 00031 00032 RawBlockProxy::RawBlockProxy() 00033 { 00034 fName = "<null>"; 00035 } 00036 00037 //...................................................................... 00038 00039 RawDataBlock *RawBlockProxy::CreateRawDataBlock(const Int_t* block) 00040 { 00041 MSG("RawData", Msg::kError) 00042 << "RawBlockProxy: Attempt to create bare RawDataBlock '" 00043 << fName << "' " 00044 << ((fIsDCS) ? "DCS" : "DAQ") << " " 00045 << fMajorId << endl; 00046 00047 return new RawDataBlock(block); 00048 } 00049
1.3.9.1