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>();
158 FEDRawData& fedRawData = buffers->FEDData(it);
159 CTPPSTotemDataFormatter::RawData::iterator fedbuffer = rawdata.find(it);
160 if (fedbuffer != rawdata.end())
161 fedRawData = fedbuffer->second;
166 LogDebug(
"CTPPSTotemDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
180 descriptions.
add(
"ctppsTotemRawData", desc);
EventNumber_t event() const
~CTPPSTotemDigiToRaw() override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void beginStream(edm::StreamID) override
#define DEFINE_FWK_MODULE(type)
std::set< unsigned int > fedIds_
std::vector< CTPPSTotemDataFormatter::PPSStripIndex > v_iDdet2fed_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
CTPPSTotemDigiToRaw(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
unsigned long eventCounter_
T getParameter(std::string const &) const
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_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
tuple size
Write out results.
void produce(edm::Event &, const edm::EventSetup &) override