Go to the documentation of this file.
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);
bool check(const edm::EventSetup &iSetup)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::DetSetVector< TotemRPDigi > > tTotemRPDigi_
Log< level::Info, false > LogInfo
edm::ESWatcher< TotemReadoutRcd > recordWatcher_
void beginStream(edm::StreamID) override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned long eventCounter_
CTPPSTotemDigiToRaw(const edm::ParameterSet &)
~CTPPSTotemDigiToRaw() override
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > tTotemDAQMapping_
std::vector< CTPPSTotemDataFormatter::PPSStripIndex > v_iDdet2fed_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
std::set< unsigned int > fedIds_