24 #include "boost/scoped_array.hpp"
25 #include "boost/cstdint.hpp"
53 : rawDataTag_(config.getParameter<edm::InputTag>(
"RawDataTag")),
54 runType_(sistrip::
RunType(config.getParameter<uint32_t>(
"RunType")))
56 produces<SiStripEventSummary>();
70 bool fedFound =
false;
71 uint32_t fedEventNumber = 0;
72 uint32_t fedBxNumber = 0;
75 if (fedData.
size() && fedData.
data()) {
76 std::auto_ptr<sistrip::FEDBufferBase> pBuffer;
83 fedEventNumber = pBuffer->daqLvl1ID();
84 fedBxNumber = pBuffer->daqBXID();
97 pSummary->triggerFed(0);
99 pSummary->event(fedEventNumber);
100 pSummary->bx(fedBxNumber);
102 const int maxTriggerFedBufferSize = 84;
103 boost::scoped_array<uint32_t> fakeTriggerFedData(
new uint32_t[maxTriggerFedBufferSize]);
104 for (uint8_t
i=0;
i<maxTriggerFedBufferSize; ++
i) {
105 fakeTriggerFedData[
i] = 0;
108 fakeTriggerFedData[15] = 1;
110 fakeTriggerFedData[0] = 0;
112 fakeTriggerFedData[20] = 1;
116 pSummary->commissioningInfo(fakeTriggerFedData.get(),fedEventNumber);
151 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()
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_