10 : verbosity_(ps.getUntrackedParameter<
int>(
"verbosity", 1)),
11 beg_fed_id_(ps.getUntrackedParameter<
int>(
"beg_fed_id", 0)),
12 end_fed_id_(ps.getUntrackedParameter<
int>(
"end_fed_id", 654)),
13 first_event_(ps.getUntrackedParameter<
int>(
"first_event", 1)),
14 last_event_(ps.getUntrackedParameter<
int>(
"last_event", 9999999)),
16 writeDcc_(ps.getUntrackedParameter<
bool>(
"writeDCC",
false)),
17 filename_(ps.getUntrackedParameter<
std::
string>(
"filename",
"dump.bin")),
18 fedRawDataCollectionToken_(
28 std::ofstream dumpFile(
filename_.c_str(), std::ios::app);
36 if (
data.size() > 4) {
38 <<
" size_fed: " <<
data.size() <<
"\n";
40 if ((
data.size() % 16) != 0) {
41 edm::LogVerbatim(
"EcalTools") <<
"***********************************************";
42 edm::LogVerbatim(
"EcalTools") <<
"Fed size in bits not multiple of 64, strange.";
43 edm::LogVerbatim(
"EcalTools") <<
"***********************************************";
46 int length =
data.size();
47 const unsigned long* pData = (
reinterpret_cast<unsigned long*
>(
const_cast<unsigned char*
>(
data.data())));
49 for (
int words = 0; words < length / 4; (words += 2)) {
50 edm::LogVerbatim(
"EcalTools") << std::setw(8) << std::hex << pData[words + 1] <<
" " << std::setw(8) << std::hex
57 dumpFile.write(reinterpret_cast<const char*>(pData), length);
Log< level::Info, true > LogVerbatim
const edm::EDGetTokenT< FEDRawDataCollection > fedRawDataCollectionToken_
EcalHexDisplay(const edm::ParameterSet &ps)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
char data[epos_bytes_allocation]