37 #include "boost/cstdint.hpp"
39 namespace sistrip {
class SpyUnpacker;
class SpyUtilities; }
90 fed_ids_( pset.getParameter< std::vector<uint32_t> >(
"FEDIDs")),
91 productLabel_(pset.getParameter<edm::InputTag>(
"InputProductLabel")),
92 allowIncompleteEvents_(pset.getParameter<bool>(
"AllowIncompleteEvents")),
93 storeCounters_(pset.getParameter<bool>(
"StoreCounters")),
94 storeScopeRawDigis_(pset.getParameter<bool>(
"StoreScopeRawDigis")),
99 LogInfo(
msgLb_) <<
"No FED IDs specified, so will try to unpack all FEDs with data" << std::endl;
113 produces< std::vector<uint32_t> >(
"L1ACount");
114 produces< std::vector<uint32_t> >(
"TotalEventCount");
117 produces<uint32_t>(
"GlobalRunNumber");
125 <<
"[sistrip::SpyUnpackerModule::" << __func__ <<
"]"
126 <<
" Destructing object...";
154 std::auto_ptr< std::vector<uint32_t> > pTotalCounts(
new std::vector<uint32_t>);
155 std::auto_ptr< std::vector<uint32_t> > pL1ACounts(
new std::vector<uint32_t>);
157 std::auto_ptr<uint32_t> pGlobalRun(
new uint32_t);
174 event.put(pTotalCounts,
"TotalEventCount");
175 event.put(pL1ACounts,
"L1ACount");
179 event.put(pGlobalRun,
"GlobalRunNumber");
std::vector< uint32_t > fed_ids_
Vector of FED IDs to examine (FEDs).
SpyUnpackerModule(const edm::ParameterSet &)
void createDigis(const SiStripFedCabling &, const FEDRawDataCollection &, RawDigis *pDigis, const std::vector< uint32_t > &ids, Counters *pTotalEventCounts, Counters *pL1ACounts, uint32_t *aRunRef)
Creates the scope mode digis for the supplied FED IDs or detIds and stores event counters.
const bool storeScopeRawDigis_
True = store the scope mode raw digis.
Unpacks spy channel data into scope mode-like digis.
#define DEFINE_FWK_MODULE(type)
A plug-in module that takes a FEDRawDataCollection as input from the Event and creates EDProducts con...
const bool allowIncompleteEvents_
Allow inconsistent (by event count, APV address) event storage.
const bool storeCounters_
True = store L1ID and TotalEventCount by FED key.
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
virtual void produce(edm::Event &, const edm::EventSetup &)
Scope mode digis and event counter producer. Retrieves cabling map from EventSetup and FEDRawDataColl...
const edm::InputTag productLabel_
The product label of the FEDRawDataCollection input.
static const char * msgLb_
const SiStripFedCabling * getCabling(const edm::EventSetup &)
Updates the cabling object from the DB.
virtual ~SpyUnpackerModule()
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
virtual void beginRun(edm::Run &, const edm::EventSetup &)
sistrip::SpyUnpackerModule SiStripSpyUnpackerModule
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")