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

Member Function Documentation

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

Definition at line 17 of file CTPPSPixelDAQMapping.cc.

References AlCaHLTBitMon_ParallelJobs::p.

Referenced by CTPPSPixelRawToDigi::produce().

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
void CTPPSPixelDAQMapping::insert ( const CTPPSPixelFramePosition fp,
const CTPPSPixelROCInfo vi 
)

Definition at line 34 of file CTPPSPixelDAQMapping.cc.

Referenced by BeautifulSoup.PageElement::append().

35 {
36  auto it = ROCMapping.find(fp);
37  if (it != ROCMapping.end())
38  {
39  edm::LogError("RPix") << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: "
40  << " " << ROCMapping[fp] << "," << " new: " << " " << vi << ". ";
41  }
42 
43  ROCMapping[fp] = vi;
44 }
std::map< CTPPSPixelFramePosition, CTPPSPixelROCInfo > ROCMapping
template<class Archive >
void CTPPSPixelDAQMapping::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 51 of file CTPPSPixelDAQMapping.h.

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

Definition at line 51 of file CTPPSPixelDAQMapping.h.

Member Data Documentation

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

Definition at line 45 of file CTPPSPixelDAQMapping.h.

Referenced by CTPPSPixelRawToDigi::produce().