Belle II Software  release-08-01-10
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 #pragma once
9 
10 #include <arich/dbobjects/ARICHGeometryConfig.h>
11 #include <arich/dbobjects/ARICHChannelMapping.h>
12 #include <arich/dbobjects/ARICHChannelMask.h>
13 
14 
15 #include <framework/database/DBObjPtr.h>
16 
17 
18 #include <framework/core/Module.h>
19 
20 namespace Belle2 {
32  class ARICHFillHitsModule : public Module {
33 
34  public:
35 
40 
44  virtual ~ARICHFillHitsModule();
45 
50  virtual void initialize() override;
51 
55  virtual void event() override;
56 
60  void magFieldCorrection(TVector3& hitpos);
61 
62  private:
63 
67  uint8_t m_bitMask;
68  uint8_t m_maxApdHits;
69  uint8_t m_maxHapdHits;
70  int m_bcorrect = 0;
71  int m_fillall = 0;
72  };
73 
75 } // Belle2 namespace
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 ~ARICHFillHitsModule()
Destructor.
Abstract base class for different kinds of events.