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) ); }
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);
262 std::map<CSCIdType,ExaminerStatusType>::const_iterator item =
mCSC_ERRORS.find(CSCId);
266 std::map<CSCIdType,ExaminerStatusType>::const_iterator item =
mCSC_PAYLOADS.find(CSCId);
270 std::map<CSCIdType,ExaminerStatusType>::const_iterator item =
mCSC_STATUS.find(CSCId);
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;
std::ostream & operator<<(std::ostream &out, const ALILine &li)