00001 00016 // this class header 00017 #include "L1Trigger/GlobalTriggerAnalyzer/interface/L1GtPatternMap.h" 00018 00019 #include<iostream> 00020 #include<sstream> 00021 00022 L1GtPatternLine& L1GtPatternMap::getLine(int eventNr, int bxNr) { 00023 std::pair<int, int> key = std::make_pair(eventNr, bxNr); 00024 return m_lines[key]; 00025 } 00026 00027 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::begin() const { return m_lines.begin(); } 00028 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::end() const { return m_lines.end(); } 00029 00030 L1GtPatternMap::LineMap::iterator L1GtPatternMap::begin() { return m_lines.begin(); } 00031 L1GtPatternMap::LineMap::iterator L1GtPatternMap::end() { return m_lines.end(); } 00032 00033 void L1GtPatternMap::print(std::ostream& out) const { 00034 for(LineMap::const_iterator it = m_lines.begin() ; it != m_lines.end() ; ++it) { 00035 out << "Event no: " << it->first.first << std::endl 00036 << "Bx no : " << it->first.second << std::endl 00037 << "Patterns: " ; 00038 00039 it->second.print(out); 00040 00041 out << std::endl; 00042 } 00043 } 00044