Belle II Software  release-05-02-19
PrescaleModule.h
1 #pragma once
2 /**************************************************************************
3  * BASF2 (Belle Analysis Framework 2) *
4  * Copyright(C) 2010 - Belle II Collaboration *
5  * *
6  * Author: The Belle II Collaboration *
7  * Contributors: David Dossett *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #include <framework/core/Module.h>
13 
14 namespace Belle2 {
28  class PrescaleModule : public Module {
29  public:
32 
34  virtual ~PrescaleModule() {};
35 
37  virtual void initialize() override {};
38 
40  virtual void event() override;
41 
42  private:
44  double m_prescale;
45  };
47 }
Belle2::PrescaleModule::PrescaleModule
PrescaleModule()
Constructor of the module.
Definition: PrescaleModule.cc:25
Belle2::PrescaleModule::~PrescaleModule
virtual ~PrescaleModule()
Destructor of the module.
Definition: PrescaleModule.h:42
Belle2::PrescaleModule::event
virtual void event() override
Sets the return value by running a RNG vs.
Definition: PrescaleModule.cc:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PrescaleModule::m_prescale
double m_prescale
Prescale module parameter, this fraction of events will return True.
Definition: PrescaleModule.h:52
Belle2::PrescaleModule::initialize
virtual void initialize() override
No Initialization necessary.
Definition: PrescaleModule.h:45