105 produces<FEDRawDataCollection>();
128 for (
auto const& di : *digiCollection) {
129 digiCounter += (di.data).
size();
130 digis[di.id] = di.data;
138 p.second.iD,
p.second.roc,
p.first.getROC(),
p.first.getFEDId(),
p.first.getChannelIdx()});
144 auto buffers = std::make_unique<FEDRawDataCollection>();
154 CTPPSPixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(*it);
155 if (fedbuffer != rawdata.end())
156 fedRawData = fedbuffer->second;
161 LogDebug(
"CTPPSPixelDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
173 descriptions.
add(
"ctppsPixelRawData", desc);
T getParameter(std::string const &) const
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::set< unsigned int > fedIds() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
unsigned long eventCounter_
edm::ESWatcher< CTPPSPixelDAQMappingRcd > recordWatcher_
std::string mappingLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
std::vector< CTPPSPixelDataFormatter::PPSPixelIndex > v_iDdet2fed_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tCTPPSPixelDigi_
void produce(edm::Event &, const edm::EventSetup &) override
std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > ROCMapping
~CTPPSPixelDigiToRaw() override
CTPPSPixelFramePosition fPos_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
CTPPSPixelDigiToRaw(const edm::ParameterSet &)
std::set< unsigned int > fedIds_