Belle II Software  release-05-01-25
SVDEventInfoSetterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jarek Wiechczynski *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #ifndef SVDEventInfoSetterModule_H
13 #define SVDEventInfoSetterModule_H
14 
15 #include <framework/core/Module.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <svd/dataobjects/SVDEventInfo.h>
18 #include <svd/dataobjects/SVDModeByte.h>
19 #include <svd/dataobjects/SVDTriggerType.h>
20 
21 namespace Belle2 {
34 
35  public:
36 
42 
44  virtual ~SVDEventInfoSetterModule();
45 
48  virtual void initialize() override;
49 
55  virtual void event() override;
56 
57  std::string m_svdEventInfoName;
59  private:
62  // SVDModeByte content */
63  int m_runType;
65  int m_daqMode;
67  bool m_randomTriggerBin = true;
68  uint8_t m_triggerType;
70  bool m_xTalk;
72  bool m_ModeByteMatch = true;
73  bool m_TriggerTypeMatch = true;
79  };
81 }
82 
83 #endif
Belle2::SVDTriggerType
Class to store Trigger Type information.
Definition: SVDTriggerType.h:33
Belle2::SVDEventInfoSetterModule::m_SVDModeByte
SVDModeByte m_SVDModeByte
SVDModeByte object.
Definition: SVDEventInfoSetterModule.h:75
Belle2::SVDEventInfoSetterModule::m_eventType
int m_eventType
event type
Definition: SVDEventInfoSetterModule.h:64
Belle2::SVDEventInfoSetterModule::m_triggerType
uint8_t m_triggerType
Trigger type content to be set.
Definition: SVDEventInfoSetterModule.h:68
Belle2::SVDEventInfoSetterModule::~SVDEventInfoSetterModule
virtual ~SVDEventInfoSetterModule()
Destructor.
Belle2::SVDEventInfoSetterModule::m_TriggerTypeMatch
bool m_TriggerTypeMatch
SVDTriggerType matching flag to be set.
Definition: SVDEventInfoSetterModule.h:73
Belle2::SVDEventInfoSetterModule::m_randomTriggerBin
bool m_randomTriggerBin
if true randomize trigger bin 0/1/2/3
Definition: SVDEventInfoSetterModule.h:67
Belle2::SVDModeByte
Class to store SVD mode information.
Definition: SVDModeByte.h:79
Belle2::SVDEventInfoSetterModule::m_SVDTriggerType
SVDTriggerType m_SVDTriggerType
SVDTriggerType object.
Definition: SVDEventInfoSetterModule.h:76
Belle2::SVDEventInfoSetterModule::m_svdEventInfoName
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
Definition: SVDEventInfoSetterModule.h:57
Belle2::SVDEventInfoSetterModule::event
virtual void event() override
Stores the SVD event info into the DataStore.
Definition: SVDEventInfoSetterModule.cc:62
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::SVDEventInfoSetterModule::m_ModeByteMatch
bool m_ModeByteMatch
SVDModeByte matching flag to be set.
Definition: SVDEventInfoSetterModule.h:72
Belle2::SVDEventInfoSetterModule::initialize
virtual void initialize() override
Initializes the Module.
Definition: SVDEventInfoSetterModule.cc:54
Belle2::SVDEventInfoSetterModule::SVDEventInfoSetterModule
SVDEventInfoSetterModule()
Constructor.
Definition: SVDEventInfoSetterModule.cc:27
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::SVDEventInfoSetterModule::m_triggerBin
int m_triggerBin
trigger time
Definition: SVDEventInfoSetterModule.h:66
Belle2::SVDEventInfoSetterModule::m_runType
int m_runType
run type
Definition: SVDEventInfoSetterModule.h:63
Belle2::SVDEventInfoSetterModule::m_daqMode
int m_daqMode
DAQ mode.
Definition: SVDEventInfoSetterModule.h:65
Belle2::SVDEventInfoSetterModule::m_xTalk
bool m_xTalk
Cross-talk flag to be set.
Definition: SVDEventInfoSetterModule.h:70
Belle2::SVDEventInfoSetterModule::m_relativeShift
int m_relativeShift
latency difference between the 3- and 6-sample acquired events
Definition: SVDEventInfoSetterModule.h:78
Belle2::SVDEventInfoSetterModule::m_svdEventInfoPtr
StoreObjPtr< SVDEventInfo > m_svdEventInfoPtr
Output object.
Definition: SVDEventInfoSetterModule.h:60
Belle2::SVDEventInfoSetterModule
Module to set the SVDEventInfo in the simulation.
Definition: SVDEventInfoSetterModule.h:33