Belle II Software  release-05-02-19
BeamDigitizerModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef BEAMDIGITIZERMODULE_H
12 #define BEAMDIGITIZERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/beamabort/dataobjects/BeamabortHit.h>
17 
19 const Int_t MAXSIZE = 10000;
21 const Int_t MAXtSIZE = 1000;
22 
23 namespace Belle2 {
28  namespace beamabort {
38  class BeamDigitizerModule : public Module {
39 
40  public:
41 
46 
48  virtual ~BeamDigitizerModule();
49 
51  virtual void initialize() override;
52 
54  virtual void beginRun() override;
55 
57  virtual void event() override;
58 
60  virtual void endRun() override;
62  virtual void terminate() override;
63 
64 
65  private:
66 
67  StoreArray<BeamabortHit> m_beamabortHit;
72  double m_FanoFactor;
73  };
74 
75  }
77 }
78 
79 #endif /* BEAMDIGITIZERMODULE_H */
Belle2::beamabort::BeamDigitizerModule::m_WorkFunction
double m_WorkFunction
Array for BemaabortHit.
Definition: BeamDigitizerModule.h:70
Belle2::beamabort::BeamDigitizerModule::m_FanoFactor
double m_FanoFactor
Fano Factor.
Definition: BeamDigitizerModule.h:72
Belle2::beamabort::BeamDigitizerModule::BeamDigitizerModule
BeamDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: BeamDigitizerModule.cc:36
Belle2::beamabort::BeamDigitizerModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: BeamDigitizerModule.cc:94
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::beamabort::BeamDigitizerModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: BeamDigitizerModule.cc:90
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::beamabort::BeamDigitizerModule::event
virtual void event() override
This method is the core of the module.
Definition: BeamDigitizerModule.cc:62
Belle2::beamabort::BeamDigitizerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: BeamDigitizerModule.cc:58
Belle2::beamabort::BeamDigitizerModule
Beam tube digitizer.
Definition: BeamDigitizerModule.h:38
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::beamabort::BeamDigitizerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: BeamDigitizerModule.cc:51