Belle II Software  release-08-01-10
SVD3SamplesEmulatorModule.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 #ifndef SVD3SAMPLESEMULATORMODULE_H
10 #define SVD3SAMPLESEMULATORMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <svd/dataobjects/SVDShaperDigit.h>
16 #include <svd/dataobjects/SVDEventInfo.h>
17 
18 #include <string>
19 #include <cmath>
20 
21 namespace Belle2 {
32 
33  public:
34 
39 
42 
44  virtual void beginRun() override;
45 
47  virtual void event() override;
48 
50  virtual void endRun() override;
51 
53  virtual void terminate() override;
54 
56  virtual void initialize() override;
57 
58  private:
60  std::string m_shaperDigitInputName;
63  Int_t m_startingSample = 0;
64  std::string m_outputArrayName;
65  std::string m_svdEventInfoName;
66  std::string m_svdEventInfoOutName;
71  int getFirstSample(const SVDModeByte
72  modeByte);
73  };
75 }
76 
77 #endif /* SVD3SAMPLESEMULATORMODULE_H */
Base class for Modules.
Definition: Module.h:72
This module takes the SVDShaperDigit as input and select three consecutive samples starting from the ...
std::string m_shaperDigitInputName
name of the input ShaperDigits StoreArray
virtual void initialize() override
init the module
virtual void event() override
processes the event
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo3samples
storage for SVDEventInfo object produced for 3 samples
virtual void endRun() override
end the run
virtual void terminate() override
terminates the module
bool m_chooseRelativeShift
Set it True if you want to choose the relative shift manually.
virtual void beginRun() override
initializes the module
std::string m_svdEventInfoName
Name of the input SVDEventInfo object.
std::string m_svdEventInfoOutName
Name of the output SVDEventInfo object.
int getFirstSample(const SVDModeByte modeByte)
return the starting sample
bool m_chooseStartingSample
Set it True if you want to choose the starting sample manually.
StoreArray< SVDShaperDigit > m_ShaperDigit
StoreArray with the 6-samples input shaperdigits with DAQMode = 2.
Int_t m_startingSample
Starting sample from which select the three samples of the initial six.
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo
storage for SVDEventInfo object required for the module
SVD3SamplesEmulatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_outputArrayName
StoreArray with the 3-samples output shaperdigits, with DAQMode = 1.
Class to store SVD mode information.
Definition: SVDModeByte.h:69
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.