34 produces< edm::DetSetVector<CTPPSPixelDigi> >();
40 produces< edm::DetSetVector<CTPPSPixelDataError> >();
46 edm::LogInfo(
"CTPPSPixelRawToDigi") <<
" CTPPSPixelRawToDigi destructor!";
52 desc.
add<
bool>(
"includeErrors",
true);
55 descriptions.
add(
"ctppsPixelDigis", desc);
68 bool data_exist=
false;
71 if(tempRawData.
size()!=0){
77 auto collection = std::make_unique<edm::DetSetVector<CTPPSPixelDigi>>();
79 auto errorcollection = std::make_unique<edm::DetSetVector<CTPPSPixelDataError>>();
89 bool errorsInEvent =
false;
96 edm::LogInfo(
"CTPPSPixelRawToDigi")<<
" PRODUCE DIGI FOR FED: " <<
dec <<fedId << endl;
105 for(
auto const &is : errors){
106 uint32_t errordetid = is.first;
109 nodeterrors.insert( nodeterrors.end(), errors[errordetid].begin(), errors[errordetid].end() );
112 errorDetSet.
data.insert(errorDetSet.
data.end(), is.second.begin(), is.second.end());
121 if (errorsInEvent)
LogDebug(
"CTPPSPixelRawToDigi") <<
"Error words were stored in this event";
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::set< unsigned int > fedIds() const
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.
static constexpr Word32 dummyDetId
std::set< unsigned int > fedIds_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
~CTPPSPixelRawToDigi() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > ROCMapping
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string mappingLabel_
void produce(edm::Event &, const edm::EventSetup &) override
get data, convert to digis attach againe to Event
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_