Go to the documentation of this file.
30 produces<edm::DetSetVector<CTPPSPixelDigi>>();
36 produces<edm::DetSetVector<CTPPSPixelDataError>>();
41 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" CTPPSPixelRawToDigi destructor!";
46 desc.
add<
bool>(
"includeErrors",
true);
49 descriptions.
add(
"ctppsPixelDigis", desc);
58 bool data_exist =
false;
61 if (tempRawData.
size() != 0) {
67 auto collection = std::make_unique<edm::DetSetVector<CTPPSPixelDigi>>();
69 auto errorcollection = std::make_unique<edm::DetSetVector<CTPPSPixelDataError>>();
79 bool errorsInEvent =
false;
94 for (
auto const& is :
errors) {
95 uint32_t errordetid = is.first;
98 nodeterrors.insert(nodeterrors.end(),
errors[errordetid].begin(),
errors[errordetid].end());
101 errorDetSet.
data.insert(errorDetSet.
data.end(), is.second.begin(), is.second.end());
111 LogDebug(
"CTPPSPixelRawToDigi") <<
"Error words were stored in this event";
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
edm::ParameterSet config_
std::string mappingLabel_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static constexpr Word32 dummyDetId
#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_
size_t size() const
Lenght of the data buffer in bytes.
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
get data, convert to digis attach againe to Event
~CTPPSPixelRawToDigi() override