List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
mdet::FrontEnd::Sampler Class Reference

Encapsulates the sampling logic. More...

#include <FrontEnd.h>

Public Member Functions

bool operator() (double v)
 Digitally sample the voltage. More...
 

Private Member Functions

 Sampler (const FrontEnd &fe)
 Construct with the associated FrontEnd. More...
 

Private Attributes

const FrontEndfFrontEnd
 
bool fLastSample
 By now the criteria is to depend only in the last sample. More...
 

Friends

class FrontEnd
 Allow construction. More...
 

Detailed Description

Encapsulates the sampling logic.

This auxiliary object encapsulates the logic neccesary to simulate the sampling proccess of the FPGA.

See Also
MakeSampler

Definition at line 51 of file FrontEnd.h.

Constructor & Destructor Documentation

mdet::FrontEnd::Sampler::Sampler ( const FrontEnd fe)
private

Construct with the associated FrontEnd.

Definition at line 144 of file FrontEnd.cc.

Member Function Documentation

bool mdet::FrontEnd::Sampler::operator() ( double  v)

Digitally sample the voltage.

Note that this method isn't const due to that we take into account the (possible) effects of the sampling proccess on itself.

Definition at line 151 of file FrontEnd.cc.

Friends And Related Function Documentation

friend class FrontEnd
friend

Allow construction.

Definition at line 63 of file FrontEnd.h.

Member Data Documentation

const FrontEnd& mdet::FrontEnd::Sampler::fFrontEnd
private

Definition at line 68 of file FrontEnd.h.

bool mdet::FrontEnd::Sampler::fLastSample
private

By now the criteria is to depend only in the last sample.

Definition at line 67 of file FrontEnd.h.


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

, generated on Tue Sep 26 2023.