30 for (
auto it = input->begin(); it != input->end(); ++it) {
31 for (
auto& siPixelRawDataError : *it) {
32 int fed = siPixelRawDataError.getFedId();
33 int type = siPixelRawDataError.getType();
34 DetId id = it->detId();
37 const uint32_t LINK_bits = 6;
38 const uint32_t LINK_shift = 26;
39 const uint64_t LINK_mask = (1 << LINK_bits) - 1;
44 if (type == 32 || type == 33 || type == 34) {
45 errorWord = siPixelRawDataError.getWord64();
47 errorWord = siPixelRawDataError.getWord32();
50 int32_t chanNmbr = (errorWord >> LINK_shift) & LINK_mask;
52 if (type == 29) chanNmbr = -1;
54 uint32_t error_data = errorWord & 0xFF;
57 for (uint32_t
i = 0;
i < 8;
i++) {
63 uint32_t statemachine_state = errorWord >> 8 & 0xF;
64 const uint32_t tbm_types[16] = {
71 histo[
TBMTYPE].fill(tbm_types[statemachine_state],
id, &iEvent, fed, chanNmbr);
73 for (uint32_t
i = 0;
i < 8;
i++) {
edm::EDGetTokenT< DetSetVector< SiPixelRawDataError > > srcToken_
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static std::string const input
bool checktrigger(const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
void analyze(const edm::Event &, const edm::EventSetup &) override
SiPixelPhase1RawData(const edm::ParameterSet &conf)
unsigned long long uint64_t
std::vector< HistogramManager > histo