25 #include "boost/scoped_array.hpp"
26 #include "boost/cstdint.hpp"
55 : rawDataTag_(config.getParameter<edm::
InputTag>(
"RawDataTag")),
56 runType_(sistrip::
RunType(config.getParameter<uint32_t>(
"RunType")))
59 produces<SiStripEventSummary>();
73 bool fedFound =
false;
74 uint32_t fedEventNumber = 0;
75 uint32_t fedBxNumber = 0;
78 if (fedData.
size() && fedData.
data()) {
79 std::auto_ptr<sistrip::FEDBufferBase> pBuffer;
86 fedEventNumber = pBuffer->daqLvl1ID();
87 fedBxNumber = pBuffer->daqBXID();
100 pSummary->triggerFed(0);
102 pSummary->event(fedEventNumber);
103 pSummary->bx(fedBxNumber);
105 const int maxTriggerFedBufferSize = 84;
106 boost::scoped_array<uint32_t> fakeTriggerFedData(
new uint32_t[maxTriggerFedBufferSize]);
107 for (uint8_t
i=0;
i<maxTriggerFedBufferSize; ++
i) {
108 fakeTriggerFedData[
i] = 0;
111 fakeTriggerFedData[15] = 1;
113 fakeTriggerFedData[0] = 0;
115 fakeTriggerFedData[20] = 1;
119 pSummary->commissioningInfo(fakeTriggerFedData.get(),fedEventNumber);
154 LogWarning(
messageLabel_) <<
"Unsupported run type: " <<
runType_ <<
". Parameters need to be set from real trigger FED. Parameters will be set to 0.";
virtual char const * what() const
void warnAboutUnsupportedRunType()
static const char * messageLabel_
static const uint16_t FED_ID_MIN
virtual void produce(edm::Event &event, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Constants and enumerated type for sistrip::RunType.
size_t size() const
Lenght of the data buffer in bytes.
sistrip::SpyEventSummaryProducer SiStripSpyEventSummaryProducer
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
const edm::InputTag rawDataTag_
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
SpyEventSummaryProducer(const edm::ParameterSet &config)
virtual ~SpyEventSummaryProducer()
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
static const uint16_t FED_ID_MAX
const sistrip::RunType runType_