CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes | Friends
FileData Class Reference

#include <MP7FileReader.h>

Public Types

typedef LinkMap::const_iterator const_iterator
 
typedef std::map< uint32_t, std::vector< uint64_t > > LinkMap
 
typedef LinkMap::value_type value_type
 

Public Member Functions

LinkMap::const_iterator begin () const
 
LinkMap::const_iterator end () const
 
const std::vector< uint64_t > & link (uint32_t i) const
 
const std::string & name () const
 
size_t size () const
 

Private Attributes

LinkMap links_
 
std::string name_
 

Friends

class MP7FileReader
 

Detailed Description

Definition at line 21 of file MP7FileReader.h.

Member Typedef Documentation

◆ const_iterator

typedef LinkMap::const_iterator FileData::const_iterator

Definition at line 25 of file MP7FileReader.h.

◆ LinkMap

typedef std::map<uint32_t, std::vector<uint64_t> > FileData::LinkMap

Definition at line 23 of file MP7FileReader.h.

◆ value_type

typedef LinkMap::value_type FileData::value_type

Definition at line 24 of file MP7FileReader.h.

Member Function Documentation

◆ begin()

LinkMap::const_iterator FileData::begin ( void  ) const
inline

Definition at line 33 of file MP7FileReader.h.

33 { return links_.begin(); }

References links_.

Referenced by MP7PacketReader::load().

◆ end()

LinkMap::const_iterator FileData::end ( void  ) const
inline

Definition at line 34 of file MP7FileReader.h.

34 { return links_.end(); }

References links_.

Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and MP7PacketReader::load().

◆ link()

const std::vector< uint64_t > & FileData::link ( uint32_t  i) const

Definition at line 25 of file MP7FileReader.cc.

25  {
26  LinkMap::const_iterator it = links_.find(i);
27  if (it == links_.end()) {
28  edm::LogError("L1T") << "Link id " << i << " not found";
29  }
30  return it->second;
31 }

References mps_fire::i, and links_.

Referenced by l1t::MP7BufferDumpToRaw::getBlocks(), and MP7PacketReader::load().

◆ name()

const std::string& FileData::name ( void  ) const
inline

◆ size()

size_t FileData::size ( void  ) const
inline

Definition at line 31 of file MP7FileReader.h.

31 { return links_.size(); }

References links_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and MP7PacketReader::load().

Friends And Related Function Documentation

◆ MP7FileReader

friend class MP7FileReader
friend

Definition at line 40 of file MP7FileReader.h.

Member Data Documentation

◆ links_

LinkMap FileData::links_
private

Definition at line 38 of file MP7FileReader.h.

Referenced by begin(), end(), link(), and size().

◆ name_

std::string FileData::name_
private

Definition at line 37 of file MP7FileReader.h.

Referenced by name().

mps_fire.i
i
Definition: mps_fire.py:428
FileData::links_
LinkMap links_
Definition: MP7FileReader.h:38
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
FileData::name_
std::string name_
Definition: MP7FileReader.h:37