Belle II Software  release-05-02-19
SVD3SamplesEmulatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Giulia Casarosa & Luigi Corona *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef SVD3SAMPLESEMULATORMODULE_H
12 #define SVD3SAMPLESEMULATORMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <svd/dataobjects/SVDShaperDigit.h>
18 #include <svd/dataobjects/SVDEventInfo.h>
19 
20 #include <string>
21 
22 namespace Belle2 {
32  class SVD3SamplesEmulatorModule : public Module {
33 
34  public:
35 
40 
43 
45  virtual void beginRun() override;
46 
48  virtual void event() override;
49 
51  virtual void endRun() override;
52 
54  virtual void terminate() override;
55 
57  virtual void initialize() override;
58 
59  private:
61  std::string m_shaperDigitInputName;
64  Int_t m_startingSample = 0;
65  std::string m_outputArrayName;
66  std::string m_svdEventInfoName;
67  };
69 }
70 
71 #endif /* SVD3SAMPLESEMULATORMODULE_H */
Belle2::SVD3SamplesEmulatorModule::m_storeSVDEvtInfo
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo
storage for SVDEventInfo object required for the module
Definition: SVD3SamplesEmulatorModule.h:70
Belle2::SVD3SamplesEmulatorModule::m_storeSVDEvtInfo3samples
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo3samples
storage for SVDEventInfo object produced for 3 samples
Definition: SVD3SamplesEmulatorModule.h:71
Belle2::SVD3SamplesEmulatorModule::beginRun
virtual void beginRun() override
initializes the module
Definition: SVD3SamplesEmulatorModule.cc:70
Belle2::SVD3SamplesEmulatorModule::m_outputArrayName
std::string m_outputArrayName
StoreArray with the 3-samples output shaperdigits, with DAQMode = 1.
Definition: SVD3SamplesEmulatorModule.h:73
Belle2::SVD3SamplesEmulatorModule::m_svdEventInfoName
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
Definition: SVD3SamplesEmulatorModule.h:74
Belle2::SVD3SamplesEmulatorModule::event
virtual void event() override
processes the event
Definition: SVD3SamplesEmulatorModule.cc:75
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::SVD3SamplesEmulatorModule::terminate
virtual void terminate() override
terminates the module
Definition: SVD3SamplesEmulatorModule.cc:129
Belle2::SVD3SamplesEmulatorModule::m_shaperDigitInputName
std::string m_shaperDigitInputName
name of the input ShaperDigits StoreArray
Definition: SVD3SamplesEmulatorModule.h:69
Belle2::SVD3SamplesEmulatorModule::initialize
virtual void initialize() override
init the module
Definition: SVD3SamplesEmulatorModule.cc:44
Belle2::SVD3SamplesEmulatorModule::SVD3SamplesEmulatorModule
SVD3SamplesEmulatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: SVD3SamplesEmulatorModule.cc:24
Belle2::SVD3SamplesEmulatorModule::~SVD3SamplesEmulatorModule
virtual ~SVD3SamplesEmulatorModule()
if required
Definition: SVD3SamplesEmulatorModule.cc:38
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::SVD3SamplesEmulatorModule::m_startingSample
Int_t m_startingSample
Starting sample from which select the three samples of the initial six.
Definition: SVD3SamplesEmulatorModule.h:72
Belle2::SVD3SamplesEmulatorModule::endRun
virtual void endRun() override
end the run
Definition: SVD3SamplesEmulatorModule.cc:125
Belle2::SVD3SamplesEmulatorModule::m_ShaperDigit
StoreArray< SVDShaperDigit > m_ShaperDigit
StoreArray with the 6-samples input shaperdigits with DAQMode = 2.
Definition: SVD3SamplesEmulatorModule.h:68