CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtPatternMap.cc
Go to the documentation of this file.
1 
16 // this class header
18 
19 #include<iostream>
20 #include<sstream>
21 
22 L1GtPatternLine& L1GtPatternMap::getLine(int eventNr, int bxNr) {
23  std::pair<int, int> key = std::make_pair(eventNr, bxNr);
24  return m_lines[key];
25 }
26 
27 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::begin() const { return m_lines.begin(); }
28 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::end() const { return m_lines.end(); }
29 
30 L1GtPatternMap::LineMap::iterator L1GtPatternMap::begin() { return m_lines.begin(); }
31 L1GtPatternMap::LineMap::iterator L1GtPatternMap::end() { return m_lines.end(); }
32 
33 void L1GtPatternMap::print(std::ostream& out) const {
34  for(LineMap::const_iterator it = m_lines.begin() ; it != m_lines.end() ; ++it) {
35  out << "Event no: " << it->first.first << std::endl
36  << "Bx no : " << it->first.second << std::endl
37  << "Patterns: " ;
38 
39  it->second.print(out);
40 
41  out << std::endl;
42  }
43 }
44 
L1GtPatternLine & getLine(int eventNr, int bxNr)
LineMap::const_iterator begin() const
LineMap::const_iterator end() const
void print(std::ostream &out) const
tuple out
Definition: dbtoconf.py:99
list key
Definition: combine.py:13