From 16f99eea9ce47fd5dab92cca9abd8177205ac875 Mon Sep 17 00:00:00 2001 From: "Chia Ming, Kuo" Date: Thu, 8 Oct 2015 16:29:06 +0200 Subject: [PATCH 1/2] take into account comments after last PR --- EventFilter/ESRawToDigi/src/ESUnpacker.cc | 27 +++++++++++------------ 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/EventFilter/ESRawToDigi/src/ESUnpacker.cc b/EventFilter/ESRawToDigi/src/ESUnpacker.cc index 58cbc82cc3e2f..45deb9e0d08b1 100644 --- a/EventFilter/ESRawToDigi/src/ESUnpacker.cc +++ b/EventFilter/ESRawToDigi/src/ESUnpacker.cc @@ -42,7 +42,7 @@ ESUnpacker::ESUnpacker(const edm::ParameterSet& ps) } } else { - std::cout<<"ESUnpacker::ESUnpacker : Look up table file can not be found in "<> 2 ) & 0x1; if (debug_) { - std::cout<<"[ESUnpacker]: FED Trailer candidate. Is trailer? "<> 60) & m4; if (dccHead == 3) dccHeaderCount++; dccLine = (*word >> 56) & m4; @@ -220,14 +220,13 @@ void ESUnpacker::interpretRawData(int fedId, const FEDRawData & rawData, ESRawDa } if (optoRX2_ == 128) { enableOptoRX[NenableOptoRX] = 2; - NenableOptoRX++; } // Event data int iopto = 0; int opto = -1; for (const Word64* word=(header+dccWords+1); word!=trailer; ++word) { - if (debug_) std::cout<<"Event : "<> 60) & m4; @@ -262,7 +261,7 @@ void ESUnpacker::interpretRawData(int fedId, const FEDRawData & rawData, ESRawDa if (opto==0) ESDCCHeader.setOptoBC0(optoBC); else if (opto==1) ESDCCHeader.setOptoBC1(optoBC); else if (opto==2) ESDCCHeader.setOptoBC2(optoBC); - iopto++; + if (iopto < 2) ++iopto; } } @@ -282,7 +281,7 @@ void ESUnpacker::word2digi(int kid, int kPACE[4], const Word64 & word, ESDigiCol adc[2] = (word >> 32) & m16; int strip = (word >> 48) & m5; - if (debug_) std::cout< Date: Thu, 8 Oct 2015 17:29:00 +0200 Subject: [PATCH 2/2] take into account comments after last PR --- EventFilter/ESRawToDigi/src/ESUnpacker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EventFilter/ESRawToDigi/src/ESUnpacker.cc b/EventFilter/ESRawToDigi/src/ESUnpacker.cc index 45deb9e0d08b1..1db4b5e19d96d 100644 --- a/EventFilter/ESRawToDigi/src/ESUnpacker.cc +++ b/EventFilter/ESRawToDigi/src/ESUnpacker.cc @@ -77,9 +77,9 @@ void ESUnpacker::interpretRawData(int fedId, const FEDRawData & rawData, ESRawDa bx_ = ESHeader.bxID(); if (debug_) { - LogDebug("ESUnpacker")<<"[ESUnpacker]: FED Header candidate. Is header? "<< ESHeader.check(); + LogDebug("ESUnpacker") << "[ESUnpacker]: FED Header candidate. Is header? "<< ESHeader.check(); if (ESHeader.check()) - LogDebug("ESUnpacker") <<". BXID: "<