106 mappingLabel_(iConfig.getParameter<
std::
string>(
"mappingLabel")),
107 eSummary_(
"CTPPSPixelDataFormatter",
"[ctppsPixelRawToDigi]",
false) {
113 produces<FEDRawDataCollection>();
139 digiCounter += (di.data).
size();
140 digis[di.id] = di.data;
146 for (
const auto&
p :
mapping->ROCMapping)
148 p.second.iD,
p.second.roc,
p.first.getROC(),
p.first.getFEDId(),
p.first.getChannelIdx()});
154 auto buffers = std::make_unique<FEDRawDataCollection>();
164 CTPPSPixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(*it);
165 if (fedbuffer != rawdata.end())
171 LogDebug(
"CTPPSPixelDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
181 desc.add<
bool>(
"isRun3",
true);
184 descriptions.
add(
"ctppsPixelRawData",
desc);
T getParameter(std::string const &) const
unsigned long eventCounter_
edm::ESWatcher< CTPPSPixelDAQMappingRcd > recordWatcher_
std::string mappingLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< CTPPSPixelDataFormatter::PPSPixelIndex > v_iDdet2fed_
CTPPSRawToDigiErrorSummary eSummary_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tCTPPSPixelDigi_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > tCTPPSPixelDAQMapping_
~CTPPSPixelDigiToRaw() override
CTPPSPixelFramePosition fPos_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
CTPPSPixelDigiToRaw(const edm::ParameterSet &)
std::set< unsigned int > fedIds_