- Author
- G. Franzoni
Definition at line 27 of file EcalHexDisplay.h.
Implements edm::EDAnalyzer.
Definition at line 22 of file EcalHexDisplay.cc.
References beg_fed_id_, gather_cfg::cout, FEDRawData::data(), data, end_fed_id_, event_, fedRawDataCollectionTag_, filename_, first_event_, edm::Event::getByLabel(), last_event_, FEDNumbering::MAXFEDID, lumiPlot::rawdata, FEDRawData::size(), and writeDcc_.
31 std::ofstream dumpFile (
filename_.c_str(),std::ios::app );
41 std::cout <<
"\n\n\n[EcalHexDumperModule] Event: "
44 <<
" size_fed: " << data.
size() <<
"\n"<< std::endl;
46 if ( ( data.
size() %16 ) !=0)
48 std::cout <<
"***********************************************" << std::endl;
49 std::cout<<
"Fed size in bits not multiple of 64, strange." << std::endl;
50 std::cout <<
"***********************************************" << std::endl;
54 int length = data.
size();
55 const unsigned long * pData = (
reinterpret_cast<unsigned long*
>(
const_cast<unsigned char*
> ( data.
data())));
57 for (
int words=0; words < length/4; (words+=2) )
59 std::cout << std::setw(8) << std::hex << pData[words+1] <<
" ";
60 std::cout << std::setw(8) << std::hex << pData[words] << std::endl;
68 dumpFile.write( reinterpret_cast <const char *> (pData), length);
size_t size() const
Lenght of the data buffer in bytes.
edm::InputTag fedRawDataCollectionTag_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.