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 41 of file CTPPSPixelDAQMapping.h.

Member Function Documentation

◆ fedIds()

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

Definition at line 17 of file CTPPSPixelDAQMapping.cc.

References AlCaHLTBitMon_ParallelJobs::p.

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

◆ insert()

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

Definition at line 33 of file CTPPSPixelDAQMapping.cc.

References personalPlayback::fp, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().

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;
43 }
Log< level::Error, false > LogError
std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > ROCMapping

◆ 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 49 of file CTPPSPixelDAQMapping.h.

◆ cond::serialization::access

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

Definition at line 49 of file CTPPSPixelDAQMapping.h.

Member Data Documentation

◆ ROCMapping

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

Definition at line 43 of file CTPPSPixelDAQMapping.h.