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>();
160 FEDRawData& fedRawData = buffers->FEDData(*it);
161 CTPPSPixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(*it);
162 if (fedbuffer != rawdata.end())
163 fedRawData = fedbuffer->second;
168 LogDebug(
"CTPPSPixelDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" << formatter.
nDigis()
178 desc.
add<
bool>(
"isRun3",
true);
181 descriptions.
add(
"ctppsPixelRawData", desc);
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
unsigned long eventCounter_
edm::ESWatcher< CTPPSPixelDAQMappingRcd > recordWatcher_
std::string mappingLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > tCTPPSPixelDAQMapping_
~CTPPSPixelDigiToRaw() override
CTPPSPixelFramePosition fPos_
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
CTPPSPixelDigiToRaw(const edm::ParameterSet &)
std::set< unsigned int > fedIds_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
tuple size
Write out results.