Belle II Software development
TRGOpticalLink Class Reference

A class to represent a serial link between trigger modules. More...

#include <OpticalLink.h>

Inheritance diagram for TRGOpticalLink:
TRGOpticalLinkFrontEnd

Public Member Functions

 TRGOpticalLink (const std::string &name, const TRGClock &)
 Constructor.
 
virtual ~TRGOpticalLink ()
 Destructor.
 
const std::string & name (void) const
 returns name.
 
const TRGClockclock (void) const
 returns clock.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents.
 
void appendHeader (const TRGSignal *)
 appends a signal to header data.
 
void appendTrailer (const TRGSignal *)
 appends a signal to trailer data.
 
void append (const TRGSignal *)
 appends a signal to data.
 

Private Attributes

const std::string _name
 Name of a link.
 
const TRGClock_clock
 Used clock.
 
std::vector< const TRGSignal * > _head
 Signal header.
 
std::vector< const TRGSignal * > _trail
 Signal trailer.
 
std::vector< const TRGSignal * > _data
 Signal storage.
 

Detailed Description

A class to represent a serial link between trigger modules.

Definition at line 25 of file OpticalLink.h.

Member Function Documentation

◆ dump()

void dump ( const std::string &  message = "",
const std::string &  pre = "" 
) const

dumps contents.

"message" is to select information to dump. "pre" will be printed in head of each line.

Member Data Documentation

◆ _clock

const TRGClock* _clock
private

Used clock.

Definition at line 64 of file OpticalLink.h.

◆ _data

std::vector<const TRGSignal*> _data
private

Signal storage.

Definition at line 73 of file OpticalLink.h.

◆ _head

std::vector<const TRGSignal*> _head
private

Signal header.

Definition at line 67 of file OpticalLink.h.

◆ _name

const std::string _name
private

Name of a link.

Definition at line 61 of file OpticalLink.h.

◆ _trail

std::vector<const TRGSignal*> _trail
private

Signal trailer.

Definition at line 70 of file OpticalLink.h.


The documentation for this class was generated from the following files: