Go to the documentation of this file.
58 produces<SiStripEventSummary>();
71 bool fedFound =
false;
72 uint32_t fedEventNumber = 0;
73 uint32_t fedBxNumber = 0;
76 if (fedData.
size() && fedData.
data()) {
80 <<
"An exception of category 'FEDBuffer' occurred.\n"
85 fedEventNumber =
buffer.daqLvl1ID();
86 fedBxNumber =
buffer.daqBXID();
99 pSummary->triggerFed(0);
101 pSummary->event(fedEventNumber);
102 pSummary->bx(fedBxNumber);
104 const int maxTriggerFedBufferSize = 84;
105 std::vector<uint32_t> fakeTriggerFedData(maxTriggerFedBufferSize);
106 for (uint8_t
i = 0;
i < maxTriggerFedBufferSize; ++
i) {
107 fakeTriggerFedData[
i] = 0;
110 fakeTriggerFedData[15] = 1;
112 fakeTriggerFedData[0] = 0;
114 fakeTriggerFedData[20] = 1;
118 pSummary->commissioningInfo(fakeTriggerFedData.data(), fedEventNumber);
153 <<
". Parameters need to be set from real trigger FED. Parameters will be set to 0.";
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
static const uint16_t FED_ID_MIN
Log< level::Info, false > LogInfo
void warnAboutUnsupportedRunType()
Log< level::Warning, false > LogWarning
SpyEventSummaryProducer(const edm::ParameterSet &config)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &event, const edm::EventSetup &) override
const sistrip::RunType runType_
sistrip::SpyEventSummaryProducer SiStripSpyEventSummaryProducer
Log< level::Error, false > LogError
size_t size() const
Lenght of the data buffer in bytes.
static const uint16_t FED_ID_MAX
FEDBufferStatusCode preconstructCheckFEDBufferBase(const FEDRawData &fedBuffer, bool checkRecognizedFormat=true)
Constants and enumerated type for sistrip::RunType.
const edm::InputTag rawDataTag_
static const char * messageLabel_
~SpyEventSummaryProducer() override