Go to the documentation of this file.
31 produces<edm::DetSetVector<CTPPSPixelDigi>>();
37 produces<edm::DetSetVector<CTPPSPixelDataError>>();
42 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" CTPPSPixelRawToDigi destructor!";
47 desc.add<
bool>(
"includeErrors",
true);
50 descriptions.
add(
"ctppsPixelDigis",
desc);
59 bool data_exist =
false;
62 if (tempRawData.
size() != 0) {
68 auto collection = std::make_unique<edm::DetSetVector<CTPPSPixelDigi>>();
70 auto errorcollection = std::make_unique<edm::DetSetVector<CTPPSPixelDataError>>();
80 bool errorsInEvent =
false;
95 for (
auto const& is :
errors) {
96 uint32_t errordetid = is.first;
99 nodeterrors.insert(nodeterrors.end(),
errors[errordetid].begin(),
errors[errordetid].end());
102 errorDetSet.
data.insert(errorDetSet.
data.end(), is.second.begin(), is.second.end());
112 LogDebug(
"CTPPSPixelRawToDigi") <<
"Error words were stored in this event";
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
edm::ParameterSet config_
std::string mappingLabel_
static constexpr Word32 dummyDetId
Log< level::Info, false > LogInfo
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > CTPPSPixelDAQMapping_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
CTPPSPixelRawToDigi(const edm::ParameterSet &)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::set< unsigned int > fedIds_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
size_t size() const
Lenght of the data buffer in bytes.
void produce(edm::Event &, const edm::EventSetup &) override
get data, convert to digis attach againe to Event
~CTPPSPixelRawToDigi() override
T getParameter(std::string const &) const