Belle II Software development
SVDTriggerQualityGeneratorModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef SVDTRIGGERQUALITYGENERATORMODULE_H
10#define SVDTRIGGERQUALITYGENERATORMODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <mdst/dataobjects/TRGSummary.h>
16
17#include <string>
18#include <cmath>
19#include <cstdlib>
20
21namespace Belle2 {
29
30 public:
35
38
40 virtual void beginRun() override;
41
43 virtual void event() override;
44
46 virtual void endRun() override;
47
49 virtual void terminate() override;
50
52 virtual void initialize() override;
53
54 private:
55 std::string m_trgQRGName = "TRGSummary";
57 };
59}
60
61#endif /* SVDTRIGGERQUALITYGENERATORMODULE_H */
Base class for Modules.
Definition: Module.h:72
This module generates a StoreObjPtr that contains random trigger quality chosen between FINE and CORS...
virtual void initialize() override
init the module
virtual void event() override
processes the event
virtual void terminate() override
terminates the module
std::string m_trgQRGName
name of the output TRGQualityRG StoreObjPtr
StoreObjPtr< TRGSummary > m_triggerQRG
storage for TRGQualityRG object required for the module
virtual void beginRun() override
initializes the module
SVDTriggerQualityGeneratorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.