Belle II Software development
SVDEventInfoSetterModule.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#pragma once
10#ifndef SVDEventInfoSetterModule_H
11#define SVDEventInfoSetterModule_H
12
13#include <framework/core/Module.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <svd/dataobjects/SVDEventInfo.h>
16#include <svd/dataobjects/SVDModeByte.h>
17#include <svd/dataobjects/SVDTriggerType.h>
18#include <simulation/dataobjects/SimClockState.h>
19#include <svd/dbobjects/SVDGlobalConfigParameters.h>
20#include <mdst/dataobjects/TRGSummary.h>
21#include <framework/database/DBObjPtr.h>
22#include <framework/dbobjects/HardwareClockSettings.h>
23
24
25namespace Belle2 {
35
36 public:
37
43
46
49 virtual void initialize() override;
50
54 virtual void beginRun() override;
55
61 virtual void event() override;
62
63 std::string m_svdEventInfoName;
66 std::string m_objTrgSummaryName = "TRGSummary";
67
68 bool m_useDB;
70 private:
75 // SVDModeByte content */
79 int m_triggerBin = -1;
81 uint8_t m_triggerType;
83 bool m_xTalk;
85 bool m_ModeByteMatch = true;
86 bool m_TriggerTypeMatch = true;
95 };
97}
98
99#endif
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
Module to set the SVDEventInfo in the simulation.
bool m_xTalk
Cross-talk flag to be set.
StoreObjPtr< SVDEventInfo > m_svdEventInfoPtr
Output object.
virtual void initialize() override
Initializes the Module.
virtual void event() override
Stores the SVD event info into the DataStore.
uint8_t m_triggerType
Trigger type content to be set.
virtual void beginRun() override
Reads Detector Configuration from DB daqMode and relativeShift.
bool m_ModeByteMatch
SVDModeByte matching flag to be set.
DBObjPtr< HardwareClockSettings > m_hwClock
systems clock
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
DBObjPtr< SVDGlobalConfigParameters > m_svdGlobalConfig
SVD Global Configuration payload.
int m_relativeShift
latency difference between the 3- and 6-sample acquired events
SVDTriggerType m_SVDTriggerType
SVDTriggerType object.
SVDModeByte m_SVDModeByte
SVDModeByte object.
bool m_TriggerTypeMatch
SVDTriggerType matching flag to be set.
virtual ~SVDEventInfoSetterModule()
Destructor.
std::string m_objTrgSummaryName
Name of the StoreObjectPrt TRGSummary.
bool m_useDB
if true reads the configuration from SVDGlobalConfigParameters payload
StoreObjPtr< SimClockState > m_simClockState
generated hardware clock state
Class to store SVD mode information.
Definition: SVDModeByte.h:69
Class to store Trigger Type information.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.