104 mappingLabel_(iConfig.getParameter<
std::
string>(
"mappingLabel")) {
110 produces<FEDRawDataCollection>();
136 digiCounter += (di.data).
size();
137 digis[di.id] = di.data;
143 for (
const auto&
p :
mapping->ROCMapping)
145 p.second.iD,
p.second.roc,
p.first.getROC(),
p.first.getFEDId(),
p.first.getChannelIdx()});
151 auto buffers = std::make_unique<FEDRawDataCollection>();
161 CTPPSPixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(*it);
162 if (fedbuffer != rawdata.end())
168 LogDebug(
"CTPPSPixelDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" <<
formatter.nDigis()
178 desc.add<
bool>(
"isRun3",
true);
181 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_
#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_