Pottu
Public Member Functions | List of all members
pottu::StageDetectorEventToDetectorEvent Class Referenceabstract

Abstract baseclass for all stages which transforms detector events to detector events. More...

#include <StageDetectorEventToDetectorEvent.hpp>

Inheritance diagram for pottu::StageDetectorEventToDetectorEvent:
Inheritance graph
[legend]
Collaboration diagram for pottu::StageDetectorEventToDetectorEvent:
Collaboration graph
[legend]

Public Member Functions

virtual ~StageDetectorEventToDetectorEvent ()
 Virtual destructor.
 
virtual void process (std::vector< DetectorEvent > &input, std::vector< DetectorEvent > &output)=0
 Consumes detector events and returns different detector events. More...
 

Detailed Description

Abstract baseclass for all stages which transforms detector events to detector events.

The process() method of the derived class typically has internal buffer and the detector events from output are not the same events as those given as input.

Member Function Documentation

◆ process()

virtual void pottu::StageDetectorEventToDetectorEvent::process ( std::vector< DetectorEvent > &  input,
std::vector< DetectorEvent > &  output 
)
pure virtual

Consumes detector events and returns different detector events.

Parameters
inputDetector events to consume. Do not use the events in input after this call.
outputDetector events (usually different than input) returned.

Stage using this kind of process pattern typically holds a buffer of detector events.

Implemented in pottu::TimeAdjuster.


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