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;
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;
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";
T getParameter(std::string const &) 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
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Log< level::Info, false > LogInfo
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
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_