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>();
74 bool fedFound =
false;
75 uint32_t fedEventNumber = 0;
76 uint32_t fedBxNumber = 0;
79 if (fedData.
size() && fedData.
data()) {
80 std::auto_ptr<sistrip::FEDBufferBase> pBuffer;
87 fedEventNumber = pBuffer->daqLvl1ID();
88 fedBxNumber = pBuffer->daqBXID();
101 pSummary->triggerFed(0);
103 pSummary->event(fedEventNumber);
104 pSummary->bx(fedBxNumber);
106 const int maxTriggerFedBufferSize = 84;
107 boost::scoped_array<uint32_t> fakeTriggerFedData(
new uint32_t[maxTriggerFedBufferSize]);
108 for (uint8_t
i=0;
i<maxTriggerFedBufferSize; ++
i) {
109 fakeTriggerFedData[
i] = 0;
112 fakeTriggerFedData[15] = 1;
114 fakeTriggerFedData[0] = 0;
116 fakeTriggerFedData[20] = 1;
120 pSummary->commissioningInfo(fakeTriggerFedData.get(),fedEventNumber);
155 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_