1 #ifndef CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h 2 #define CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h 125 template <
class TKey,
class TVal>
128 typename std::map<TKey, TVal>::const_iterator itr = m.begin();
129 while (itr != m.end()) {
146 template <
class TKey,
class TVal>
149 typename std::map<TKey, TVal>::const_iterator itr;
150 for (itr = m.begin(); itr != m.end(); ++itr) {
151 keys.insert(itr->first);
186 return ((
CSCIdType(crateId & 0xFF) << 4) | (dmbId & 0xF));
191 fDDU_SUMMARY_ERRORS = 0;
196 mCSC_PAYLOADS.clear();
215 const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
216 const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
217 const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
218 const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_)
222 fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
234 const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
235 const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
236 const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
237 const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_);
248 std::map<DDUIdType, ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
249 if (item != mDDU_ERRORS.end())
250 mDDU_ERRORS[DDUId] = status;
252 mDDU_ERRORS.insert(std::make_pair(DDUId, status));
255 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
256 if (item != mCSC_ERRORS.end())
257 mCSC_ERRORS[CSCId] = status;
259 mCSC_ERRORS.insert(std::make_pair(CSCId, status));
262 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
263 if (item != mCSC_PAYLOADS.end())
264 mCSC_PAYLOADS[CSCId] = status;
266 mCSC_PAYLOADS.insert(std::make_pair(CSCId, status));
269 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
270 if (item != mCSC_STATUS.end())
271 mCSC_STATUS[CSCId] = status;
273 mCSC_STATUS.insert(std::make_pair(CSCId, status));
321 return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
336 std::map<DDUIdType, ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
337 if (item != mDDU_ERRORS.end())
344 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
345 if (item != mCSC_ERRORS.end())
356 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
357 if (item != mCSC_PAYLOADS.end())
368 std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
369 if (item != mCSC_STATUS.end())