#include <PeriodicScaler.h>
Definition at line 63 of file PeriodicScaler.h.
◆ PeriodicScalerTake1st()
| LVL1::PeriodicScalerTake1st::PeriodicScalerTake1st |
( |
| ) |
|
Definition at line 42 of file PeriodicScaler.cxx.
42 {
44}
void reset()
Reset scaler to initial state.
◆ ~PeriodicScalerTake1st()
| virtual LVL1::PeriodicScalerTake1st::~PeriodicScalerTake1st |
( |
| ) |
|
|
inlinevirtual |
◆ decision()
| bool LVL1::PeriodicScalerTake1st::decision |
( |
float | factor | ) |
|
|
overridevirtual |
make decision based on given factor (but always take first event)
- Parameters
-
| factor | take every [factor] event |
- Returns
- true if event is taken
Reimplemented from LVL1::PeriodicScaler.
Definition at line 46 of file PeriodicScaler.cxx.
46 {
48 unsigned offset =
static_cast<unsigned>(factor)-1;
52 return true;
53 }
54 return false;
55}
unsigned int m_last
last integer
unsigned int m_counter
event counter
◆ reset()
| void LVL1::PeriodicScaler::reset |
( |
| ) |
|
|
inherited |
◆ m_counter
| unsigned int LVL1::PeriodicScaler::m_counter |
|
protectedinherited |
◆ m_last
| unsigned int LVL1::PeriodicScaler::m_last |
|
protectedinherited |
The documentation for this class was generated from the following files: