26 eSummary_(
"CTPPSPixelDataFormatter",
"[ctppsPixelRawToDigi]",
edm::
isDebugEnabled())
32 produces<edm::DetSetVector<CTPPSPixelDigi>>();
39 produces<edm::DetSetVector<CTPPSPixelDataError>>();
44 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" CTPPSPixelRawToDigi destructor!";
49 desc.add<
bool>(
"isRun3",
true);
50 desc.add<
bool>(
"includeErrors",
true);
53 descriptions.
add(
"ctppsPixelDigis",
desc);
62 bool data_exist =
false;
65 if (tempRawData.
size() != 0) {
71 auto collection = std::make_unique<edm::DetSetVector<CTPPSPixelDigi>>();
73 auto errorcollection = std::make_unique<edm::DetSetVector<CTPPSPixelDataError>>();
83 bool errorsInEvent =
false;
98 for (
auto const& is :
errors) {
99 uint32_t errordetid = is.first;
102 nodeterrors.insert(nodeterrors.end(),
errors[errordetid].begin(),
errors[errordetid].end());
105 errorDetSet.
data.insert(errorDetSet.
data.end(), is.second.begin(), is.second.end());
115 LogDebug(
"CTPPSPixelRawToDigi") <<
"Error words were stored in this event";
T getParameter(std::string const &) const
edm::ParameterSet config_
CTPPSPixelRawToDigi(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
size_t size() const
Lenght of the data buffer in bytes.
CTPPSRawToDigiErrorSummary eSummary_
std::set< unsigned int > fedIds_
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > CTPPSPixelDAQMapping_
~CTPPSPixelRawToDigi() override
#define DEFINE_FWK_MODULE(type)
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
void printSummary() const
void endStream() override
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_