19 : rawToDigi_(nullptr),
22 doFullCorruptBufferChecks_(
false),
23 doAPVEmulatorCheck_(
true),
27 LogTrace(
"SiStripRawToDigi") <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]" 28 <<
" Constructing object...";
32 int16_t appended_bytes =
pset.getParameter<
int>(
"AppendedBytes");
33 int16_t trigger_fed_id =
pset.getParameter<
int>(
"TriggerFedId");
34 bool legacy_unpacker =
pset.getParameter<
bool>(
"LegacyUnpacker");
35 bool use_daq_register =
pset.getParameter<
bool>(
"UseDaqRegister");
36 bool using_fed_key =
pset.getParameter<
bool>(
"UseFedKey");
37 bool unpack_bad_channels =
pset.getParameter<
bool>(
"UnpackBadChannels");
38 bool mark_missing_feds =
pset.getParameter<
bool>(
"MarkModulesOnMissingFeds");
40 int16_t fed_buffer_dump_freq =
pset.getUntrackedParameter<
int>(
"FedBufferDumpFreq", 0);
41 int16_t fed_event_dump_freq =
pset.getUntrackedParameter<
int>(
"FedEventDumpFreq", 0);
42 bool quiet =
pset.getUntrackedParameter<
bool>(
"Quiet",
true);
47 uint32_t errorThreshold =
pset.getParameter<
unsigned int>(
"ErrorThreshold");
64 produces<SiStripEventSummary>();
65 produces<edm::DetSetVector<SiStripRawDigi> >(
"ScopeMode");
66 produces<edm::DetSetVector<SiStripRawDigi> >(
"VirginRaw");
67 produces<edm::DetSetVector<SiStripRawDigi> >(
"ProcessedRaw");
68 produces<edm::DetSetVector<SiStripDigi> >(
"ZeroSuppressed");
69 produces<DetIdVector>();
71 produces<edm::DetSetVector<SiStripRawDigi> >(
"CommonMode");
82 LogTrace(
"SiStripRawToDigi") <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]" 83 <<
" Destructing object...";
98 event.getByToken(
token_, buffers);
101 auto summary = std::make_unique<SiStripEventSummary>();
118 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > sm_dsv(sm);
119 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > vr_dsv(vr);
120 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > pr_dsv(
pr);
121 std::unique_ptr<edm::DetSetVector<SiStripDigi> > zs_dsv(zs);
122 std::unique_ptr<DetIdVector> det_ids(ids);
123 std::unique_ptr<edm::DetSetVector<SiStripRawDigi> > cm_dsv(cm);
127 event.put(
std::move(sm_dsv),
"ScopeMode");
128 event.put(
std::move(vr_dsv),
"VirginRaw");
129 event.put(
std::move(pr_dsv),
"ProcessedRaw");
130 event.put(
std::move(zs_dsv),
"ZeroSuppressed");
133 event.put(
std::move(cm_dsv),
"CommonMode");
143 std::stringstream
ss;
144 ss <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]" 145 <<
" Updating cabling for first time..." << std::endl
146 <<
" Terse print out of FED cabling:" << std::endl;
153 std::stringstream sss;
154 sss <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]" 155 <<
" Summary of FED cabling:" << std::endl;
157 LogTrace(
"SiStripRawToDigi") << sss.str();
void summary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
void triggerFed(const FEDRawDataCollection &, SiStripEventSummary &, const uint32_t &event)
trigger info
void useDaqRegister(bool)
EventSummary update request -> not yet implemented for FEDBuffer class.
void doAPVEmulatorCheck(bool)
RawToDigiModule(const edm::ParameterSet &)
edm::EDGetTokenT< FEDRawDataCollection > token_
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
void updateCabling(const edm::EventSetup &)
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
void printWarningSummary() const
std::vector< DetId > DetIdVector
~RawToDigiModule() override
void terse(std::stringstream &) const
bool check(const edm::EventSetup &iSetup)
void quiet(bool)
verbosity
bool doFullCorruptBufferChecks_
RawToDigiUnpacker * rawToDigi_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void endStream() override
const SiStripFedCabling * cabling_
void doFullCorruptBufferChecks(bool)
void createDigis(const SiStripFedCabling &, const FEDRawDataCollection &, SiStripEventSummary &, RawDigis &scope_mode, RawDigis &virgin_raw, RawDigis &proc_raw, Digis &zero_suppr, DetIdVector &, RawDigis &common_mode)
creates digis