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");
47 uint32_t errorThreshold = pset.
getParameter<
unsigned int>(
"ErrorThreshold");
57 rawToDigi_->legacy(legacy_unpacker);
58 rawToDigi_->quiet(quiet);
59 rawToDigi_->useDaqRegister(use_daq_register);
60 rawToDigi_->extractCm(extractCm_);
61 rawToDigi_->doFullCorruptBufferChecks(doFullCorruptBufferChecks_);
62 rawToDigi_->doAPVEmulatorCheck(doAPVEmulatorCheck_);
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;
148 LogTrace(
"SiStripRawToDigi") << ss.str();
153 std::stringstream sss;
154 sss <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]"
155 <<
" Summary of FED cabling:" << std::endl;
157 LogTrace(
"SiStripRawToDigi") << sss.str();
void triggerFed(const FEDRawDataCollection &, SiStripEventSummary &, const uint32_t &event)
trigger info
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
RawToDigiModule(const edm::ParameterSet &)
void terse(std::stringstream &) const
edm::EDGetTokenT< FEDRawDataCollection > token_
void produce(edm::Event &, const edm::EventSetup &) override
bool getData(T &iHolder) const
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
void updateCabling(const edm::EventSetup &)
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
void printWarningSummary() const
T getParameter(std::string const &) const
~RawToDigiModule() override
bool check(const edm::EventSetup &iSetup)
void summary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
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
bool doFullCorruptBufferChecks_
edm::EDCollection< DetId > DetIdCollection
RawToDigiUnpacker * rawToDigi_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void endStream() override
const SiStripFedCabling * cabling_