Belle II Software  release-06-01-15
ARICHDigitizerModule.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 ARICHDIGITIZERMODULE_H
10 #define ARICHDIGITIZERMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <arich/dbobjects/ARICHGeometryConfig.h>
14 #include <arich/dbobjects/ARICHSimulationPar.h>
15 #include <arich/dbobjects/ARICHModulesInfo.h>
16 #include <arich/dbobjects/ARICHChannelMask.h>
17 #include <arich/dbobjects/ARICHChannelMapping.h>
18 #include <framework/database/DBObjPtr.h>
19 
20 #include <string>
21 
22 namespace Belle2 {
33  class ARICHDigitizerModule : public Module {
34 
35  public:
36 
41 
45  virtual ~ARICHDigitizerModule();
46 
52  virtual void initialize() override;
53 
59  virtual void beginRun() override;
60 
66  virtual void event() override;
67 
73  void magFieldDistorsion(TVector2& hit, int copyno);
74 
80  virtual void endRun() override;
81 
87  virtual void terminate() override;
88 
92  void printModuleParams() const {};
93 
94  private:
95 
96  std::string m_inColName;
97  std::string m_outColName;
99  bool m_bgOverlay = false;
107  /* Other members.*/
108  double m_maxQE;
109  double m_timeWindow;
110  double m_bkgLevel;
113  };
114 
116 } // Belle2 namespace
117 
118 #endif // ARICHDIGITIZERMODULE_H
double m_maxQE
QE at 400nm (from QE curve applied in SensitveDetector)
std::string m_outColName
Output collection name: digitized photons hits.
double m_bkgLevel
Number of background hits ped hapd per readout (electronics noise)
DBObjPtr< ARICHSimulationPar > m_simPar
simulation parameters from the DB
DBObjPtr< ARICHModulesInfo > m_modInfo
information on installed modules from the DB (QEs etc.)
DBObjPtr< ARICHGeometryConfig > m_geoPar
geometry configuration parameters from the DB
bool m_bgOverlay
True if BG overlay detected.
void printModuleParams() const
Prints module parameters.
double m_timeWindow
Readout time window width.
int m_bdistort
apply distorsion due to magnetic field
std::string m_inColName
Input collection name from simulation.
DBObjPtr< ARICHChannelMapping > m_chnMap
HAPD (x,y) to asic channel mapping.
DBObjPtr< ARICHChannelMask > m_chnMask
list of dead channels from the DB
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual ~ARICHDigitizerModule()
Destructor.
virtual void beginRun() override
Called when entering a new run.
void magFieldDistorsion(TVector2 &hit, int copyno)
Apply correction to hit position due to non-perpendicular component of magnetic field.
Abstract base class for different kinds of events.