R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::testing::Neuland::GMockChannel Struct Reference

#include <MockModels.h>

Public Member Functions

 GMockChannel (Side side)
 
void add_signal (Signal hit) override
 
 MOCK_METHOD ((void), construct_hits,(Hits &),(override))
 
void DelegateToFake ()
 
void extra_reset () override
 
- Public Member Functions inherited from R3B::Digitizing::AbstractChannel
 AbstractChannel (R3B::Side side, bool has_cal_output=false)
 
virtual ~AbstractChannel ()=default
 
 AbstractChannel (const AbstractChannel &other)=delete
 
auto operator= (const AbstractChannel &other) -> AbstractChannel &=delete
 
 AbstractChannel (AbstractChannel &&other)=default
 
auto operator= (AbstractChannel &&other) -> AbstractChannel &=delete
 
void Construct ()
 
void Reset ()
 Reset the data in the Channel for the new event.
 
void AddSignal (const Signal &signal)
 
virtual auto HasFired () -> bool
 
void EnableCal (bool is_enabled=true)
 
auto GetSide () const -> R3B::Side
 
auto GetPaddle () const -> AbstractPaddle *
 
auto GetSignalSize () const -> int
 
auto GetCalSignals () const -> const CalSignals &
 
auto GetHits () const -> const Hits &
 
auto GetTrigTime () const -> double
 
void SetPaddle (AbstractPaddle *v_paddle)
 
void AttachToPaddle (AbstractPaddle *paddle)
 

Public Attributes

std::vector< Signalhits_
 

Private Member Functions

auto convert_hit_to_signal (const Signal &hit) -> Hit
 

Additional Inherited Members

- Public Types inherited from R3B::Digitizing::AbstractChannel
using Hit = ChannelHit
 
using CalSignal = ChannelCalSignal
 
using Signal = ChannelSignal
 
using Hits = std::vector<Hit>
 
using CalSignals = std::vector<CalSignal>
 
- Static Public Member Functions inherited from R3B::Digitizing::AbstractChannel
static auto GetDefaultRandomGen () -> TRandom3 &
 

Detailed Description

Definition at line 58 of file MockModels.h.

Constructor & Destructor Documentation

◆ GMockChannel()

R3B::testing::Neuland::GMockChannel::GMockChannel ( Side side)
inlineexplicit

Definition at line 60 of file MockModels.h.

Member Function Documentation

◆ add_signal()

void R3B::testing::Neuland::GMockChannel::add_signal ( Signal hit)
inlineoverridevirtual

Implements R3B::Digitizing::AbstractChannel.

Definition at line 62 of file MockModels.h.

◆ convert_hit_to_signal()

auto R3B::testing::Neuland::GMockChannel::convert_hit_to_signal ( const Signal & hit) -> Hit
inlineprivate

Definition at line 82 of file MockModels.h.

◆ DelegateToFake()

void R3B::testing::Neuland::GMockChannel::DelegateToFake ( )
inline

Definition at line 67 of file MockModels.h.

◆ extra_reset()

void R3B::testing::Neuland::GMockChannel::extra_reset ( )
inlineoverridevirtual

Reimplemented from R3B::Digitizing::AbstractChannel.

Definition at line 79 of file MockModels.h.

◆ MOCK_METHOD()

R3B::testing::Neuland::GMockChannel::MOCK_METHOD ( (void) ,
construct_hits ,
(Hits &) ,
(override)  )

Member Data Documentation

◆ hits_

std::vector<Signal> R3B::testing::Neuland::GMockChannel::hits_

Definition at line 65 of file MockModels.h.


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