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.

References links_.

Referenced by MP7PacketReader::load().

33 { return links_.begin(); }
LinkMap links_
Definition: MP7FileReader.h:38

◆ end()

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

Definition at line 34 of file MP7FileReader.h.

References links_.

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

34 { return links_.end(); }
LinkMap links_
Definition: MP7FileReader.h:38

◆ link()

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

Definition at line 24 of file MP7FileReader.cc.

References mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and links_.

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

24  {
25  LinkMap::const_iterator it = links_.find(i);
26  if (it == links_.end()) {
27  edm::LogError("L1T") << "Link id " << i << " not found";
28  }
29  return it->second;
30 }
LinkMap links_
Definition: MP7FileReader.h:38
Log< level::Error, false > LogError

◆ 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.

References links_.

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

31 { return links_.size(); }
LinkMap links_
Definition: MP7FileReader.h:38

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().