Belle II Software development
ARICHPackerModule.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// mappers
11#include <arich/dbobjects/ARICHMergerMapping.h>
12#include <arich/dbobjects/ARICHCopperMapping.h>
13
14#include <framework/database/DBObjPtr.h>
15
16#include <framework/core/Module.h>
17#include <string>
18#include <arich/modules/arichUnpacker/ARICHRawDataHeader.h>
19
20namespace Belle2 {
29 class ARICHPackerModule : public Module {
30
31 public:
32
37
41 virtual ~ARICHPackerModule();
42
47 virtual void initialize() override;
48
52 virtual void event() override;
53
57 void writeHeader(int* buffer, unsigned& ibyte, const ARICHRawHeader& head);
58
59 private:
60
61 unsigned m_nonSuppressed;
62 unsigned m_version;
63 unsigned m_bitMask;
64 int m_debug;
65 std::string m_inputDigitsName;
66 std::string m_outputRawDataName;
71 };
72
74} // Belle2 namespace
Raw data packer for ARICH.
DBObjPtr< ARICHMergerMapping > m_mergerMap
mapping of modules to mergers
unsigned m_nonSuppressed
type of data (1 nonsuppressed, 0 suppressed)
unsigned m_version
dataformat version
std::string m_inputDigitsName
name of ARICHDigit store array
unsigned m_bitMask
bitmask for hit detection (4bit/hit)
std::string m_outputRawDataName
name of RawARICH store array
DBObjPtr< ARICHCopperMapping > m_copperMap
mapping of mergers to coppers
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 ~ARICHPackerModule()
Destructor.
void writeHeader(int *buffer, unsigned &ibyte, const ARICHRawHeader &head)
TODO!
Abstract base class for different kinds of events.
ARICH raw-data header.