Go to the documentation of this file.
102 mappingLabel_(iConfig.getParameter<
std::
string>(
"mappingLabel")) {
108 produces<FEDRawDataCollection>();
132 digiCounter += (di.data).
size();
133 digis[di.id] = di.data;
139 for (
const auto&
p :
mapping->ROCMapping)
141 p.second.iD,
p.second.roc,
p.first.getROC(),
p.first.getFEDId(),
p.first.getChannelIdx()});
147 auto buffers = std::make_unique<FEDRawDataCollection>();
157 CTPPSPixelDataFormatter::RawData::iterator fedbuffer = rawdata.find(*it);
158 if (fedbuffer != rawdata.end())
164 LogDebug(
"CTPPSPixelDigiToRaw") <<
"Words/Digis this iEvent: " << digiCounter <<
"(fm:" <<
formatter.nDigis()
176 descriptions.
add(
"ctppsPixelRawData",
desc);
bool check(const edm::EventSetup &iSetup)
unsigned long eventCounter_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< CTPPSPixelDataFormatter::PPSPixelIndex > v_iDdet2fed_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &, const edm::EventSetup &) override
std::set< unsigned int > fedIds_
std::string mappingLabel_
CTPPSPixelDigiToRaw(const edm::ParameterSet &)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > tCTPPSPixelDigi_
edm::ESWatcher< CTPPSPixelDAQMappingRcd > recordWatcher_
CTPPSPixelFramePosition fPos_
~CTPPSPixelDigiToRaw() override
T getParameter(std::string const &) const
edm::ESGetToken< CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd > tCTPPSPixelDAQMapping_