Belle II Software release-09-00-00
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 {
32 class ARICHPackerModule : public Module {
33
34 public:
35
40
44 virtual ~ARICHPackerModule();
45
50 virtual void initialize() override;
51
55 virtual void event() override;
56
60 void writeHeader(int* buffer, unsigned& ibyte, const ARICHRawHeader& head);
61
62 private:
63
64 unsigned m_nonSuppressed;
65 unsigned m_version;
66 unsigned m_bitMask;
67 int m_debug;
68 std::string m_inputDigitsName;
69 std::string m_outputRawDataName;
74 };
75
77} // 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.