Belle II Software  release-08-01-10
PrescaleModule.h
1 #pragma once
2 /**************************************************************************
3  * basf2 (Belle II Analysis Software Framework) *
4  * Author: The Belle II Collaboration *
5  * *
6  * See git log for contributors and copyright holders. *
7  * This file is licensed under LGPL-3.0, see LICENSE.md. *
8  **************************************************************************/
9 
10 #include <framework/core/Module.h>
11 
12 namespace Belle2 {
26  class PrescaleModule : public Module {
27  public:
30 
32  virtual ~PrescaleModule() {};
33 
35  virtual void initialize() override {};
36 
38  virtual void event() override;
39 
40  private:
42  double m_prescale;
43  };
45 }
Base class for Modules.
Definition: Module.h:72
The Prescale module.
virtual void event() override
Sets the return value by running a RNG vs.
virtual void initialize() override
No Initialization necessary.
double m_prescale
Prescale module parameter, this fraction of events will return True.
PrescaleModule()
Constructor of the module.
virtual ~PrescaleModule()
Destructor of the module.
Abstract base class for different kinds of events.