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 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 29 of file MP7FileReader.cc.

References links_.

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

29  {
30  LinkMap::const_iterator it = links_.find(i);
31  if ( it == links_.end() ) {
32  edm::LogError("L1T") << "Link id " << i << " not found";
33  }
34  return it->second;
35 }
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 ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and 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().