|
|
Go to the documentation of this file.
19 : rawToDigi_(nullptr),
22 doFullCorruptBufferChecks_(
false),
23 doAPVEmulatorCheck_(
true),
24 tTopoToken_(esConsumes()),
25 fedCablingToken_(esConsumes()) {
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<DetIdCollection>();
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<DetIdCollection> 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();
bool check(const edm::EventSetup &iSetup)
void printWarningSummary() const
~RawToDigiModule() override
RawToDigiUnpacker * rawToDigi_
edm::EDGetTokenT< FEDRawDataCollection > token_
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
void quiet(bool)
verbosity
void createDigis(const SiStripFedCabling &, const FEDRawDataCollection &, SiStripEventSummary &, RawDigis &scope_mode, RawDigis &virgin_raw, RawDigis &proc_raw, Digis &zero_suppr, DetIdCollection &, RawDigis &common_mode)
creates digis
void doFullCorruptBufferChecks(bool)
void produce(edm::Event &, const edm::EventSetup &) override
void useDaqRegister(bool)
EventSummary update request -> not yet implemented for FEDBuffer class.
void triggerFed(const FEDRawDataCollection &, SiStripEventSummary &, const uint32_t &event)
trigger info
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
RawToDigiModule(const edm::ParameterSet &)
void doAPVEmulatorCheck(bool)
const SiStripFedCabling * cabling_
void endStream() override
edm::EDCollection< DetId > DetIdCollection
bool doFullCorruptBufferChecks_
void updateCabling(const edm::EventSetup &)
void summary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
void terse(std::stringstream &) const
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_