Belle II Software  release-06-02-00
ARICHFillHitsModule.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 ARICHFILLHITSMODULE_H
10 #define ARICHFILLHITSMODULE_H
11 
12 #include <arich/dbobjects/ARICHGeometryConfig.h>
13 #include <arich/dbobjects/ARICHChannelMapping.h>
14 #include <arich/dbobjects/ARICHChannelMask.h>
15 
16 
17 #include <framework/database/DBObjPtr.h>
18 
19 
20 #include <framework/core/Module.h>
21 
22 namespace Belle2 {
34  class ARICHFillHitsModule : public Module {
35 
36  public:
37 
42 
46  virtual ~ARICHFillHitsModule();
47 
52  virtual void initialize() override;
53 
58  virtual void beginRun() override;
59 
63  virtual void event() override;
64 
68  void magFieldCorrection(TVector3& hitpos);
69 
74  virtual void endRun() override;
75 
80  virtual void terminate() override;
81 
82  private:
83 
87  uint8_t m_bitMask;
88  uint8_t m_maxApdHits;
89  uint8_t m_maxHapdHits;
90  int m_bcorrect = 0;
91  int m_fillall = 0;
92  };
93 
95 } // Belle2 namespace
96 
97 #endif
Fill ARICHHit collection from ARICHDigits.
int m_fillall
make hit for all active channels (usefull for likelihood PDF studies)
uint8_t m_maxApdHits
reject hits with more than number of hits in Apd
uint8_t m_bitMask
hit bit mask (only convert digits with hit in bitmask bits)
DBObjPtr< ARICHGeometryConfig > m_geoPar
geometry configuration parameters from the DB
int m_bcorrect
apply hit position correction for the non-perp.
DBObjPtr< ARICHChannelMapping > m_chnMap
(x,y) to asic channel mapping
uint8_t m_maxHapdHits
reject hits with more than number of hits in Hapd
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.
void magFieldCorrection(TVector3 &hitpos)
Corrects hit position for distorsion due to non-perpendicular magnetic field component.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual ~ARICHFillHitsModule()
Destructor.
virtual void beginRun() override
Called when entering a new run.
Abstract base class for different kinds of events.