Belle II Software  release-06-02-00
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 
22 
23 namespace Belle2 {
36 
37  public:
38 
44 
47 
50  virtual void initialize() override;
51 
55  virtual void beginRun() override;
56 
62  virtual void event() override;
63 
64  std::string m_svdEventInfoName;
67  std::string m_objTrgSummaryName = "TRGSummary";
68 
69  bool m_useDB;
71  private:
75  // SVDModeByte content */
76  int m_runType;
78  int m_daqMode;
79  int m_triggerBin = -1;
80  int m_fixedTriggerBin = 999;
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.
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:95
Abstract base class for different kinds of events.