Skip to content

Commit

Permalink
added MessageLogger.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlee committed Oct 14, 2020
1 parent d7eefac commit d2467cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 2 additions & 3 deletions EventFilter/GEMRawToDigi/plugins/GEMDigiToRawModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

class GEMDigiToRawModule : public edm::global::EDProducer<edm::RunCache<GEMROMapping>> {
public:
Expand Down Expand Up @@ -269,9 +270,7 @@ void GEMDigiToRawModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve

uint64_t* w = reinterpret_cast<uint64_t*>(fedRawData.data());
for (const auto& word : words) {
#ifdef EDM_ML_DEBUG
std::cout << std::bitset<64>(word) << std::endl;
#endif
LogDebug("GEMDigiToRawModule") << std::bitset<64>(word);
*(w++) = word;
}
LogDebug("GEMDigiToRawModule") << " words " << words.size();
Expand Down
8 changes: 1 addition & 7 deletions EventFilter/GEMRawToDigi/plugins/GEMRawToDigiModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Utilities/interface/Transition.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

class GEMRawToDigiModule : public edm::global::EDProducer<edm::RunCache<GEMROMapping> > {
public:
Expand Down Expand Up @@ -121,13 +122,6 @@ void GEMRawToDigiModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve

const uint64_t* word = reinterpret_cast<const uint64_t*>(data);

#ifdef EDM_ML_DEBUG
const uint64_t* w = word;
for (int i = 0; i < nWords; i++) {
std::cout << std::bitset<64>(*(w++)) << std::endl;
}
#endif

auto amc13Event = gemRawToDigi_->convertWordToAMC13Event(word);

if (amc13Event == nullptr)
Expand Down

0 comments on commit d2467cd

Please sign in to comment.