31 produces<edm::DetSetVector<CTPPSPixelDigi>>();
38 produces<edm::DetSetVector<CTPPSPixelDataError>>();
43 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" CTPPSPixelRawToDigi destructor!";
48 desc.
add<
bool>(
"isRun3",
true);
49 desc.
add<
bool>(
"includeErrors",
true);
52 descriptions.
add(
"ctppsPixelDigis", desc);
61 bool data_exist =
false;
63 const FEDRawData& tempRawData = buffers->FEDData(fed);
64 if (tempRawData.
size() != 0) {
70 auto collection = std::make_unique<edm::DetSetVector<CTPPSPixelDigi>>();
72 auto errorcollection = std::make_unique<edm::DetSetVector<CTPPSPixelDataError>>();
82 bool errorsInEvent =
false;
88 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" PRODUCE DIGI FOR FED: " <<
dec << fedId << endl;
92 const FEDRawData& fedRawData = buffers->FEDData(fedId);
97 for (
auto const& is : errors) {
98 uint32_t errordetid = is.first;
101 nodeterrors.insert(nodeterrors.end(), errors[errordetid].begin(), errors[errordetid].end());
104 errorDetSet.
data.insert(errorDetSet.
data.end(), is.second.begin(), is.second.end());
114 LogDebug(
"CTPPSPixelRawToDigi") <<
"Error words were stored in this event";
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ParameterSet config_
CTPPSPixelRawToDigi(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
size_t size() const
Lenght of the data buffer in bytes.
std::set< unsigned int > fedIds_
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > CTPPSPixelDAQMapping_
~CTPPSPixelRawToDigi() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static constexpr Word32 dummyDetId
std::string mappingLabel_
void produce(edm::Event &, const edm::EventSetup &) override
get data, convert to digis attach againe to Event
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_