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")),
43 inputDigiTag_(pset.getParameter<edm::
InputTag>(
"InputDigis")),
44 rawDataTag_(pset.getParameter<edm::
InputTag>(
"RawDataTag")),
47 LogDebug(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]"
48 <<
" Constructing object...";
97 <<
"[sistrip::DigiToRawModule::DigiToRawModule]"
103 edm::LogWarning(
"DigiToRawModule") <<
"[sistrip::DigiToRawModule::DigiToRawModule]"
104 <<
" Digi to raw is not supported for spy channel data";
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]"
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< FEDRawDataCollection > tokenRawBuffer
void endStream() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
uint8_t packetCodeFromString(const std::string &packetCodeString, FEDReadoutMode mode)
void printWarningSummary() const
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
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void createFedBuffers(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers)
T getParameter(std::string const &) 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)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Warning, false > LogWarning
void produce(edm::Event &, const edm::EventSetup &) override
~DigiToRawModule() override