- Author
- G. Franzoni
Definition at line 26 of file EcalHexDisplay.h.
Implements edm::EDAnalyzer.
Definition at line 21 of file EcalHexDisplay.cc.
References beg_fed_id_, gather_cfg::cout, FEDRawData::data(), data, end_fed_id_, event_, filename_, first_event_, edm::Event::getByType(), errorMatrix2Lands_multiChannel::id, last_event_, FEDNumbering::MAXFEDID, lumiPlot::rawdata, FEDRawData::size(), and writeDcc_.
30 std::ofstream dumpFile (
filename_.c_str(),std::ios::app );
40 std::cout <<
"\n\n\n[EcalHexDumperModule] Event: "
43 <<
" size_fed: " << data.
size() <<
"\n"<< std::endl;
45 if ( ( data.
size() %16 ) !=0)
47 std::cout <<
"***********************************************" << std::endl;
48 std::cout<<
"Fed size in bits not multiple of 64, strange." << std::endl;
49 std::cout <<
"***********************************************" << std::endl;
53 int length = data.
size();
54 const unsigned long * pData = (
reinterpret_cast<unsigned long*
>(
const_cast<unsigned char*
> ( data.
data())));
56 for (
int words=0; words < length/4; (words+=2) )
58 std::cout << std::setw(8) << std::hex << pData[words+1] <<
" ";
59 std::cout << std::setw(8) << std::hex << pData[words] << std::endl;
67 dumpFile.write( reinterpret_cast <const char *> (pData), length);
bool getByType(Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.