22 productLabel_(pset.getParameter<edm::InputTag>(
"ProductLabel")),
26 doFullCorruptBufferChecks_(
false)
30 <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]"
31 <<
" Constructing object...";
34 int16_t appended_bytes = pset.
getParameter<
int>(
"AppendedBytes");
35 int16_t trigger_fed_id = pset.
getParameter<
int>(
"TriggerFedId");
36 bool use_daq_register = pset.
getParameter<
bool>(
"UseDaqRegister");
37 bool using_fed_key = pset.
getParameter<
bool>(
"UseFedKey");
38 bool unpack_bad_channels = pset.
getParameter<
bool>(
"UnpackBadChannels");
39 bool mark_missing_feds = pset.
getParameter<
bool>(
"MarkModulesOnMissingFeds");
46 uint32_t errorThreshold = pset.
getParameter<
unsigned int>(
"ErrorThreshold");
48 rawToDigi_ =
new sistrip::RawToDigiUnpacker( appended_bytes, fed_buffer_dump_freq, fed_event_dump_freq, trigger_fed_id, using_fed_key, unpack_bad_channels, mark_missing_feds, errorThreshold);
49 rawToDigi_->quiet(quiet);
50 rawToDigi_->useDaqRegister( use_daq_register );
51 rawToDigi_->extractCm(extractCm_);
52 rawToDigi_->doFullCorruptBufferChecks(doFullCorruptBufferChecks_);
54 produces< SiStripEventSummary >();
55 produces< edm::DetSetVector<SiStripRawDigi> >(
"ScopeMode");
56 produces< edm::DetSetVector<SiStripRawDigi> >(
"VirginRaw");
57 produces< edm::DetSetVector<SiStripRawDigi> >(
"ProcessedRaw");
58 produces< edm::DetSetVector<SiStripDigi> >(
"ZeroSuppressed");
59 produces<DetIdCollection>();
60 if ( extractCm_ ) produces< edm::DetSetVector<SiStripRawDigi> >(
"CommonMode");
69 <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]"
70 <<
" Destructing object...";
108 std::auto_ptr< edm::DetSetVector<SiStripRawDigi> > sm_dsv(sm);
109 std::auto_ptr< edm::DetSetVector<SiStripRawDigi> > vr_dsv(vr);
110 std::auto_ptr< edm::DetSetVector<SiStripRawDigi> > pr_dsv(pr);
111 std::auto_ptr< edm::DetSetVector<SiStripDigi> > zs_dsv(zs);
112 std::auto_ptr< DetIdCollection > det_ids(ids);
113 std::auto_ptr< edm::DetSetVector<SiStripRawDigi> > cm_dsv(cm);
116 event.put( summary );
117 event.put( sm_dsv,
"ScopeMode" );
118 event.put( vr_dsv,
"VirginRaw" );
119 event.put( pr_dsv,
"ProcessedRaw" );
120 event.put( zs_dsv,
"ZeroSuppressed" );
121 event.put( det_ids );
122 if (
extractCm_ )
event.put( cm_dsv,
"CommonMode" );
138 std::stringstream ss;
139 ss <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]"
140 <<
" Updating cabling for first time..." << std::endl
141 <<
" Terse print out of FED cabling:" << std::endl;
143 LogTrace(
"SiStripRawToDigi") << ss.str();
148 std::stringstream sss;
149 sss <<
"[sistrip::RawToDigiModule::" << __func__ <<
"]"
150 <<
" Summary of FED cabling:" << std::endl;
152 LogTrace(
"SiStripRawToDigi") << sss.str();
void triggerFed(const FEDRawDataCollection &, SiStripEventSummary &, const uint32_t &event)
trigger info
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
RawToDigiModule(const edm::ParameterSet &)
void terse(std::stringstream &) const
void updateCabling(const edm::EventSetup &)
void summary(std::stringstream &ss) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
virtual void beginRun(edm::Run &, const edm::EventSetup &)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag productLabel_
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_
const SiStripFedCabling * cabling_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")