Project
Loading...
Searching...
No Matches
o2::tpc::SyncPatternMonitor Class Reference

Class to monitor the data stream and detect synchronization patterns. More...

#include <SyncPatternMonitor.h>

Public Member Functions

 SyncPatternMonitor ()
 Default Constructor.
 
 SyncPatternMonitor (int sampa, int lowHigh)
 Constructor.
 
 SyncPatternMonitor (const SyncPatternMonitor &other)
 Copy Constructor.
 
 ~SyncPatternMonitor ()=default
 Destructor.
 
void reset ()
 Reset function to clear history.
 
short addSequence (const short hw0, const short hw1, const short hw2, const short hw3)
 
short getPosition ()
 
short getPatternA () const
 
short getPatternB () const
 
short getSyncStart () const
 

Detailed Description

Class to monitor the data stream and detect synchronization patterns.

Definition at line 31 of file SyncPatternMonitor.h.

Constructor & Destructor Documentation

◆ SyncPatternMonitor() [1/3]

SyncPatternMonitor::SyncPatternMonitor ( )

Default Constructor.

Definition at line 21 of file SyncPatternMonitor.cxx.

◆ SyncPatternMonitor() [2/3]

SyncPatternMonitor::SyncPatternMonitor ( int  sampa,
int  lowHigh 
)

Constructor.

Definition at line 26 of file SyncPatternMonitor.cxx.

◆ SyncPatternMonitor() [3/3]

SyncPatternMonitor::SyncPatternMonitor ( const SyncPatternMonitor other)
default

Copy Constructor.

◆ ~SyncPatternMonitor()

o2::tpc::SyncPatternMonitor::~SyncPatternMonitor ( )
default

Destructor.

Member Function Documentation

◆ addSequence()

short o2::tpc::SyncPatternMonitor::addSequence ( const short  hw0,
const short  hw1,
const short  hw2,
const short  hw3 
)
inline

Adds a sequence of 4 new half-words and looks for sync pattern

Parameters
hw01st (timewise) half word
hw12nd (timewise) half word
hw23th (timewise) half word
hw34th (timewise) half word
Returns
Position of first part of the synchronization pattern, -1 if no pattern was found

Definition at line 94 of file SyncPatternMonitor.h.

◆ getPatternA()

short o2::tpc::SyncPatternMonitor::getPatternA ( ) const
inline

Return a Pattern sync pattern

Returns
Pattern A

Definition at line 63 of file SyncPatternMonitor.h.

◆ getPatternB()

short o2::tpc::SyncPatternMonitor::getPatternB ( ) const
inline

Return a Pattern sync pattern

Returns
Pattern B

Definition at line 67 of file SyncPatternMonitor.h.

◆ getPosition()

short o2::tpc::SyncPatternMonitor::getPosition ( )
inline

Get position

Returns
Position of first part of the synchronization pattern, -1 if no patter was found

Definition at line 59 of file SyncPatternMonitor.h.

◆ getSyncStart()

short o2::tpc::SyncPatternMonitor::getSyncStart ( ) const
inline
Returns
start

Definition at line 71 of file SyncPatternMonitor.h.

◆ reset()

void SyncPatternMonitor::reset ( )

Reset function to clear history.

Definition at line 33 of file SyncPatternMonitor.cxx.


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