97 : eventCounter_(0), allDigiCounter_(0), allWordCounter_(0) {
101 produces<FEDRawDataCollection>();
105 edm::LogInfo(
"CTPPSTotemDigiToRaw") <<
" CTPPSTotemDigiToRaw destructor!";
126 digiCounter += (di.data).
size();
127 digis[di.detId()] = di.data;
134 for (
const auto&
p :
mapping->VFATMapping) {
136 fedIds_.emplace(
p.first.getFEDId());
140 p.first.getIdxInFiber(),
149 auto buffers = std::make_unique<FEDRawDataCollection>();
159 CTPPSTotemDataFormatter::RawData::iterator fedbuffer = rawdata.find(it);
160 if (fedbuffer != rawdata.end())
166 LogDebug(
"CTPPSTotemDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
180 descriptions.
add(
"ctppsTotemRawData",
desc);
~CTPPSTotemDigiToRaw() override
T getParameter(std::string const &) const
void beginStream(edm::StreamID) override
std::set< unsigned int > fedIds_
std::vector< CTPPSTotemDataFormatter::PPSStripIndex > v_iDdet2fed_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
CTPPSTotemDigiToRaw(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
unsigned long eventCounter_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > tTotemDAQMapping_
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< TotemReadoutRcd > recordWatcher_
edm::EDGetTokenT< edm::DetSetVector< TotemRPDigi > > tTotemRPDigi_
void produce(edm::Event &, const edm::EventSetup &) override