List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
sdet::Trigger::PositiveStepCounter Class Reference

#include <StationTriggerAlgorithm.h>

Public Member Functions

bool operator() (const int v)
 
 PositiveStepCounter (const int occupancy, const unsigned int window, const int minUp, const int maxUp, const int vetoOffset)
 

Private Member Functions

bool Update (const int v, const bool isStep)
 

Static Private Member Functions

static int IntLog2 (unsigned int x)
 

Private Attributes

int fCounts = 0
 
const int fMaxUp
 
const int fMinUp
 
const int fOccupancy
 
int fPrevious = 0
 
int fStart = 0
 
int fVeto = 1
 
const int fVetoOffset
 
Fifo< bool > fWindow
 

Detailed Description

Definition at line 342 of file StationTriggerAlgorithm.h.

Constructor & Destructor Documentation

sdet::Trigger::PositiveStepCounter::PositiveStepCounter ( const int  occupancy,
const unsigned int  window,
const int  minUp,
const int  maxUp,
const int  vetoOffset 
)
inline

Definition at line 345 of file StationTriggerAlgorithm.h.

Member Function Documentation

static int sdet::Trigger::PositiveStepCounter::IntLog2 ( unsigned int  x)
inlinestaticprivate

Definition at line 387 of file StationTriggerAlgorithm.h.

References nl.

Referenced by operator()().

bool sdet::Trigger::PositiveStepCounter::operator() ( const int  v)
inline

Definition at line 356 of file StationTriggerAlgorithm.h.

References fMaxUp, fMinUp, fPrevious, fStart, fVeto, fVetoOffset, IntLog2(), max, and Update().

bool sdet::Trigger::PositiveStepCounter::Update ( const int  v,
const bool  isStep 
)
inlineprivate

Definition at line 377 of file StationTriggerAlgorithm.h.

References fCounts, fOccupancy, fPrevious, fWindow, and sdet::Trigger::Fifo< T >::PushPop().

Referenced by operator()().

Member Data Documentation

int sdet::Trigger::PositiveStepCounter::fCounts = 0
private

Definition at line 410 of file StationTriggerAlgorithm.h.

Referenced by Update().

const int sdet::Trigger::PositiveStepCounter::fMaxUp
private

Definition at line 405 of file StationTriggerAlgorithm.h.

Referenced by operator()().

const int sdet::Trigger::PositiveStepCounter::fMinUp
private

Definition at line 404 of file StationTriggerAlgorithm.h.

Referenced by operator()().

const int sdet::Trigger::PositiveStepCounter::fOccupancy
private

Definition at line 402 of file StationTriggerAlgorithm.h.

Referenced by Update().

int sdet::Trigger::PositiveStepCounter::fPrevious = 0
private

Definition at line 407 of file StationTriggerAlgorithm.h.

Referenced by operator()(), and Update().

int sdet::Trigger::PositiveStepCounter::fStart = 0
private

Definition at line 408 of file StationTriggerAlgorithm.h.

Referenced by operator()().

int sdet::Trigger::PositiveStepCounter::fVeto = 1
private

Definition at line 409 of file StationTriggerAlgorithm.h.

Referenced by operator()().

const int sdet::Trigger::PositiveStepCounter::fVetoOffset
private

Definition at line 406 of file StationTriggerAlgorithm.h.

Referenced by operator()().

Fifo<bool> sdet::Trigger::PositiveStepCounter::fWindow
private

Definition at line 403 of file StationTriggerAlgorithm.h.

Referenced by Update().


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

, generated on Tue Sep 26 2023.