CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 22 of file MP7FileReader.h.

Member Typedef Documentation

typedef LinkMap::const_iterator FileData::const_iterator

Definition at line 26 of file MP7FileReader.h.

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

Definition at line 24 of file MP7FileReader.h.

typedef LinkMap::value_type FileData::value_type

Definition at line 25 of file MP7FileReader.h.

Member Function Documentation

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

Definition at line 34 of file MP7FileReader.h.

References links_.

Referenced by MP7PacketReader::load().

34 { return links_.begin(); }
LinkMap links_
Definition: MP7FileReader.h:40
LinkMap::const_iterator FileData::end ( void  ) const
inline

Definition at line 35 of file MP7FileReader.h.

References links_.

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

35 { return links_.end(); }
LinkMap links_
Definition: MP7FileReader.h:40
const std::vector< uint64_t > & FileData::link ( uint32_t  i) const

Definition at line 26 of file MP7FileReader.cc.

References links_.

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

26  {
27  LinkMap::const_iterator it = links_.find(i);
28  if ( it == links_.end() )
29  throw std::runtime_error("Link id not found");
30 
31  return it->second;
32 }
int i
Definition: DBlmapReader.cc:9
LinkMap links_
Definition: MP7FileReader.h:40
const std::string& FileData::name ( void  ) const
inline
size_t FileData::size ( void  ) const
inline

Definition at line 32 of file MP7FileReader.h.

References links_.

Referenced by MP7PacketReader::load().

32 {return links_.size(); }
LinkMap links_
Definition: MP7FileReader.h:40

Friends And Related Function Documentation

friend class MP7FileReader
friend

Definition at line 42 of file MP7FileReader.h.

Member Data Documentation

LinkMap FileData::links_
private

Definition at line 40 of file MP7FileReader.h.

Referenced by begin(), end(), link(), MP7FileReader::load(), and size().

std::string FileData::name_
private

Definition at line 39 of file MP7FileReader.h.

Referenced by MP7FileReader::load(), and name().