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 
14 // this class header
16 
17 #include<iostream>
18 #include<sstream>
19 
20 L1GtPatternLine& L1GtPatternMap::getLine(int eventNr, int bxNr) {
21  std::pair<int, int> key = std::make_pair(eventNr, bxNr);
22  return m_lines[key];
23 }
24 
25 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::begin() const { return m_lines.begin(); }
26 L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::end() const { return m_lines.end(); }
27 
28 L1GtPatternMap::LineMap::iterator L1GtPatternMap::begin() { return m_lines.begin(); }
29 L1GtPatternMap::LineMap::iterator L1GtPatternMap::end() { return m_lines.end(); }
30 
31 void L1GtPatternMap::print(std::ostream& out) const {
32  for(LineMap::const_iterator it = m_lines.begin() ; it != m_lines.end() ; ++it) {
33  out << "Event no: " << it->first.first << std::endl
34  << "Bx no : " << it->first.second << std::endl
35  << "Patterns: " ;
36 
37  it->second.print(out);
38 
39  out << std::endl;
40  }
41 }
42 
L1GtPatternLine & getLine(int eventNr, int bxNr)
LineMap::const_iterator begin() const
LineMap::const_iterator end() const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
void print(std::ostream &out) const
tuple out
Definition: dbtoconf.py:99