57 produces<SiStripEventSummary>();
68 bool fedFound =
false;
69 uint32_t fedEventNumber = 0;
70 uint32_t fedBxNumber = 0;
73 if (fedData.
size() && fedData.
data()) {
77 <<
"An exception of category 'FEDBuffer' occurred.\n" 82 fedEventNumber =
buffer.daqLvl1ID();
83 fedBxNumber =
buffer.daqBXID();
96 pSummary->triggerFed(0);
98 pSummary->event(fedEventNumber);
99 pSummary->bx(fedBxNumber);
101 const int maxTriggerFedBufferSize = 84;
102 std::vector<uint32_t> fakeTriggerFedData(maxTriggerFedBufferSize);
103 for (uint8_t
i = 0;
i < maxTriggerFedBufferSize; ++
i) {
104 fakeTriggerFedData[
i] = 0;
107 fakeTriggerFedData[15] = 1;
109 fakeTriggerFedData[0] = 0;
111 fakeTriggerFedData[20] = 1;
115 pSummary->commissioningInfo(fakeTriggerFedData.data(), fedEventNumber);
150 <<
". Parameters need to be set from real trigger FED. Parameters will be set to 0.";
static const uint16_t FED_ID_MIN
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
Constants and enumerated type for sistrip::RunType.
static const char *const messageLabel_
Log< level::Error, false > LogError
sistrip::SpyEventSummaryProducer SiStripSpyEventSummaryProducer
const edm::InputTag rawDataTag_
void produce(edm::StreamID, edm::Event &event, const edm::EventSetup &) const override
Log< level::Info, false > LogInfo
SpyEventSummaryProducer(const edm::ParameterSet &config)
void warnAboutUnsupportedRunType() const
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
FEDBufferStatusCode preconstructCheckFEDBufferBase(const FEDRawData &fedBuffer, bool checkRecognizedFormat=true)
Log< level::Warning, false > LogWarning
const sistrip::RunType runType_