|
|
Go to the documentation of this file.
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]"
void createFedBuffers(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers)
uint8_t packetCodeFromString(const std::string &packetCodeString, FEDReadoutMode mode)
FEDReadoutMode fedReadoutModeFromString(const std::string &readoutModeString)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
Log< level::Warning, false > LogWarning
edm::InputTag inputDigiTag_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > tokenCabling
DigiToRawModule(const edm::ParameterSet &)
edm::InputTag rawDataTag_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > tokenDigi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > tokenRawDigi
void printWarningSummary() const
~DigiToRawModule() override
void endStream() override
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< FEDRawDataCollection > tokenRawBuffer