Belle II Software development
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#include <Math/Vector3D.h>
18
19
20#include <framework/core/Module.h>
21
22namespace Belle2 {
31 class ARICHFillHitsModule : public Module {
32
33 public:
34
39
43 virtual ~ARICHFillHitsModule();
44
49 virtual void initialize() override;
50
54 virtual void event() override;
55
59 void magFieldCorrection(ROOT::Math::XYZVector& hitpos);
60
61 private:
62
66 uint8_t m_bitMask;
67 uint8_t m_maxApdHits;
68 uint8_t m_maxHapdHits;
69 int m_bcorrect = 0;
70 int m_fillall = 0;
71 };
72
74} // 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
void magFieldCorrection(ROOT::Math::XYZVector &hitpos)
Corrects hit position for distorsion due to non-perpendicular magnetic field component.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual ~ARICHFillHitsModule()
Destructor.
Abstract base class for different kinds of events.