1 #ifndef CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h 2 #define CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h 128 template <
class TKey,
class TVal>
131 typename std::map<TKey, TVal>::const_iterator itr = m.begin();
132 while (itr != m.end()) {
149 template <
class TKey,
class TVal>
153 typename std::map<TKey, TVal>::const_iterator itr;
154 for (itr = m.begin(); itr != m.end(); ++itr) {
155 keys.insert(itr->first);
194 {
return ( (
CSCIdType(crateId&0xFF)<<4) | (dmbId&0xF) ); }
198 fDDU_SUMMARY_ERRORS = 0;
203 mCSC_PAYLOADS.clear();
223 const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
224 const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
225 const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
226 const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_): DCCId(DCCId_)
229 setDCCExaminerInfo(fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
244 const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
245 const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
246 const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
247 const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_);
258 std::map<DDUIdType,ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
259 if( item != mDDU_ERRORS.end() ) mDDU_ERRORS[DDUId] = status;
else mDDU_ERRORS.insert(std::make_pair(DDUId, status));
262 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
263 if( item != mCSC_ERRORS.end() ) mCSC_ERRORS[CSCId] = status;
else mCSC_ERRORS.insert(std::make_pair(CSCId, status));
266 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
267 if( item != mCSC_PAYLOADS.end() ) mCSC_PAYLOADS[CSCId] = status;
else mCSC_PAYLOADS.insert(std::make_pair(CSCId, status));
270 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
271 if( item != mCSC_STATUS.end() ) mCSC_STATUS[CSCId] = status;
else mCSC_STATUS.insert(std::make_pair(CSCId, status));
307 return nextInMap(iterator, CSCId, mCSC_ERRORS);
318 return nextInMap(iterator, CSCId, mCSC_STATUS);
329 return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
345 std::map<DDUIdType,ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
346 if( item != mDDU_ERRORS.end() )
return item->second;
else return 0;
351 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
352 if( item != mCSC_ERRORS.end() )
return item->second;
else return 0;
360 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
361 if( item != mCSC_PAYLOADS.end() )
return item->second;
else return 0;
369 std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
370 if( item != mCSC_STATUS.end() )
return item->second;
else return 0;