CMS 3D CMS Logo

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

Map of capture block emulator truth information within a S-link payload. More...

#include <HGCalRawDataEmulatorInfo.h>

Public Member Functions

void addCaptureBlockEmulatedInfo (unsigned int, const HGCalCaptureBlockEmulatorInfo &)
 
HGCalCaptureBlockEmulatorInfocaptureBlockEmulatedInfo (unsigned int)
 
void clear ()
 
 HGCalSlinkEmulatorInfo ()=default
 

Private Attributes

std::unordered_map< unsigned int, HGCalCaptureBlockEmulatorInfocb_info_
 

Detailed Description

Map of capture block emulator truth information within a S-link payload.

Definition at line 60 of file HGCalRawDataEmulatorInfo.h.

Constructor & Destructor Documentation

◆ HGCalSlinkEmulatorInfo()

HGCalSlinkEmulatorInfo::HGCalSlinkEmulatorInfo ( )
default

Member Function Documentation

◆ addCaptureBlockEmulatedInfo()

void HGCalSlinkEmulatorInfo::addCaptureBlockEmulatedInfo ( unsigned int  cb_id,
const HGCalCaptureBlockEmulatorInfo cb_info 
)

Definition at line 67 of file HGCalRawDataEmulatorInfo.cc.

References cb_info_.

68  {
69  cb_info_[cb_id] = cb_info;
70 }
std::unordered_map< unsigned int, HGCalCaptureBlockEmulatorInfo > cb_info_

◆ captureBlockEmulatedInfo()

HGCalCaptureBlockEmulatorInfo & HGCalSlinkEmulatorInfo::captureBlockEmulatedInfo ( unsigned int  cb_id)

Definition at line 72 of file HGCalRawDataEmulatorInfo.cc.

References cb_info_.

Referenced by hgcal::HGCalFrameGenerator::produceECONEvent().

72  {
73  return cb_info_[cb_id];
74 }
std::unordered_map< unsigned int, HGCalCaptureBlockEmulatorInfo > cb_info_

◆ clear()

void HGCalSlinkEmulatorInfo::clear ( void  )
inline

Definition at line 64 of file HGCalRawDataEmulatorInfo.h.

References cb_info_.

Referenced by hgcal::HGCalFrameGenerator::produceSlinkEvent().

64 { cb_info_.clear(); }
std::unordered_map< unsigned int, HGCalCaptureBlockEmulatorInfo > cb_info_

Member Data Documentation

◆ cb_info_

std::unordered_map<unsigned int, HGCalCaptureBlockEmulatorInfo> HGCalSlinkEmulatorInfo::cb_info_
private