25 #include "boost/scoped_array.hpp" 26 #include "boost/cstdint.hpp" 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::unique_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.";
void warnAboutUnsupportedRunType()
~SpyEventSummaryProducer() override
static const char * messageLabel_
static const uint16_t FED_ID_MIN
void produce(edm::Event &event, const edm::EventSetup &) override
char const * what() const override
Constants and enumerated type for sistrip::RunType.
size_t size() const
Lenght of the data buffer in bytes.
sistrip::SpyEventSummaryProducer SiStripSpyEventSummaryProducer
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
const edm::InputTag rawDataTag_
SpyEventSummaryProducer(const edm::ParameterSet &config)
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_