CMS 3D CMS Logo

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

The mapping between FramePosition and ROCInfo. More...

#include <CTPPSPixelDAQMapping.h>

Public Member Functions

std::set< unsigned int > fedIds () const
 
void insert (const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi)
 

Public Attributes

std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfoROCMapping
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

The mapping between FramePosition and ROCInfo.

Definition at line 40 of file CTPPSPixelDAQMapping.h.

Member Function Documentation

◆ fedIds()

std::set< unsigned int > CTPPSPixelDAQMapping::fedIds ( ) const

Definition at line 16 of file CTPPSPixelDAQMapping.cc.

17  {
18  std::set<unsigned int> fedSet;
19  for (const auto &p : ROCMapping) {
20  fedSet.insert(p.first.getFEDId());
21  }
22  return fedSet;

References AlCaHLTBitMon_ParallelJobs::p.

◆ insert()

void CTPPSPixelDAQMapping::insert ( const CTPPSPixelFramePosition fp,
const CTPPSPixelROCInfo vi 
)

Definition at line 32 of file CTPPSPixelDAQMapping.cc.

33  {
34  auto it = ROCMapping.find(fp);
35  if (it != ROCMapping.end()) {
36  edm::LogError("RPix") << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: "
37  << " " << ROCMapping[fp] << ","
38  << " new: "
39  << " " << vi << ". ";
40  }
41 
42  ROCMapping[fp] = vi;

References personalPlayback::fp.

Referenced by BeautifulSoup.PageElement::append().

◆ serialize()

template<class Archive >
void CTPPSPixelDAQMapping::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 48 of file CTPPSPixelDAQMapping.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 48 of file CTPPSPixelDAQMapping.h.

Member Data Documentation

◆ ROCMapping

std::map<CTPPSPixelFramePosition, CTPPSPixelROCInfo> CTPPSPixelDAQMapping::ROCMapping

Definition at line 42 of file CTPPSPixelDAQMapping.h.

AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CTPPSPixelDAQMapping::ROCMapping
std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > ROCMapping
Definition: CTPPSPixelDAQMapping.h:42
personalPlayback.fp
fp
Definition: personalPlayback.py:523
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123