24 desc.add<
bool>(
"UseFedKey",
false);
25 desc.add<
bool>(
"UseWrongDigiType",
false);
26 desc.add<
bool>(
"CopyBufferHeader",
false);
29 descriptions.
add(
"SiStripDigiToRawModule",
desc);
37 : copyBufferHeader_(
pset.getParameter<
bool>(
"CopyBufferHeader")),
47 LogDebug(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 48 <<
" Constructing object...";
97 <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 98 <<
" UNKNOWN readout mode: " <<
pset.getParameter<
std::string>(
"FedReadoutMode");
103 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 104 <<
" Digi to raw is not supported for spy channel data";
108 if (
pset.getParameter<
bool>(
"UseWrongDigiType")) {
111 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 112 <<
" You are using the wrong type of digis!";
127 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 128 <<
"Copying buffer header from collection " <<
rawDataTag_;
133 produces<FEDRawDataCollection>();
140 LogDebug(
"DigiToRaw") <<
"[sistrip::DigiToRawModule::~DigiToRawModule]" 141 <<
" Destructing object...";
157 auto buffers = std::make_unique<FEDRawDataCollection>();
165 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]" 166 <<
"Getting raw buffer: ";
172 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]"
edm::EDGetTokenT< FEDRawDataCollection > tokenRawBuffer
void endStream() override
uint8_t packetCodeFromString(const std::string &packetCodeString, FEDReadoutMode mode)
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > tokenCabling
FEDReadoutMode fedReadoutModeFromString(const std::string &readoutModeString)
edm::InputTag inputDigiTag_
DigiToRawModule(const edm::ParameterSet &)
edm::InputTag rawDataTag_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > tokenRawDigi
void createFedBuffers(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void printWarningSummary() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > tokenDigi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Log< level::Warning, false > LogWarning
void produce(edm::Event &, const edm::EventSetup &) override
~DigiToRawModule() override