CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

L1GtPatternMap Class Reference

#include <L1GtPatternMap.h>

List of all members.

Public Types

typedef std::map< std::pair
< int, int >, L1GtPatternLine
LineMap

Public Member Functions

LineMap::const_iterator begin () const
LineMap::iterator begin ()
LineMap::iterator end ()
LineMap::const_iterator end () const
L1GtPatternLinegetLine (int eventNr, int bxNr)
void print (std::ostream &out) const

Private Attributes

LineMap m_lines

Detailed Description

The purpose of the L1GtPatternMap is to split input into pattern file lines identified by event/bunch crossing number.

Description: A class to map events to their proper pattern file lines

Implementation: <TODO: enter implementation details>

Author:
: Thomas Themel - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author:
: Thomas Themel - HEPHY Vienna

$Date$ $Revision$

Definition at line 24 of file L1GtPatternMap.h.


Member Typedef Documentation

typedef std::map<std::pair<int, int>, L1GtPatternLine> L1GtPatternMap::LineMap

Definition at line 31 of file L1GtPatternMap.h.


Member Function Documentation

L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::begin ( void  ) const

Export iteration support.

Definition at line 27 of file L1GtPatternMap.cc.

References m_lines.

Referenced by L1GtPatternGenerator::packHfRecords(), and L1GtPatternWriter::writePatterns().

{ return m_lines.begin(); }
L1GtPatternMap::LineMap::iterator L1GtPatternMap::begin ( void  )

Export iteration support.

Definition at line 30 of file L1GtPatternMap.cc.

References m_lines.

{ return m_lines.begin(); }
L1GtPatternMap::LineMap::iterator L1GtPatternMap::end ( void  )

Definition at line 31 of file L1GtPatternMap.cc.

References m_lines.

{ return m_lines.end(); }
L1GtPatternMap::LineMap::const_iterator L1GtPatternMap::end ( void  ) const

Definition at line 28 of file L1GtPatternMap.cc.

References m_lines.

Referenced by L1GtPatternGenerator::packHfRecords(), and L1GtPatternWriter::writePatterns().

{ return m_lines.end(); }
L1GtPatternLine & L1GtPatternMap::getLine ( int  eventNr,
int  bxNr 
)

Returns the pattern line for a certain event/bx combination, creating it if neccessary.

Definition at line 22 of file L1GtPatternMap.cc.

References combine::key, and m_lines.

Referenced by L1GtPatternGenerator::extractGlobalTriggerData(), and extractRecordData().

                                                              { 
    std::pair<int, int> key = std::make_pair(eventNr, bxNr);
    return m_lines[key];
}
void L1GtPatternMap::print ( std::ostream &  out) const

Debug dump.

Definition at line 33 of file L1GtPatternMap.cc.

References m_lines.

Referenced by L1GtPatternWriter::writePatterns().

                                                { 
    for(LineMap::const_iterator it = m_lines.begin() ; it != m_lines.end() ; ++it) {
      out << "Event no: " << it->first.first << std::endl 
          << "Bx no   : " << it->first.second << std::endl
          << "Patterns: " ;

      it->second.print(out);
      
      out << std::endl;
    }
}

Member Data Documentation

Definition at line 45 of file L1GtPatternMap.h.

Referenced by begin(), end(), getLine(), and print().