Belle II Software  release-08-01-10
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 
25 namespace Belle2 {
38 
39  public:
40 
46 
49 
52  virtual void initialize() override;
53 
57  virtual void beginRun() override;
58 
64  virtual void event() override;
65 
66  std::string m_svdEventInfoName;
69  std::string m_objTrgSummaryName = "TRGSummary";
70 
71  bool m_useDB;
73  private:
78  // SVDModeByte content */
79  int m_runType;
81  int m_daqMode;
82  int m_triggerBin = -1;
83  int m_fixedTriggerBin = 999;
84  uint8_t m_triggerType;
86  bool m_xTalk;
88  bool m_ModeByteMatch = true;
89  bool m_TriggerTypeMatch = true;
98  };
100 }
101 
102 #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.