Belle II Software development
ECLCompressBGOverlayModule.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#pragma once
10
11//Framework
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/datastore/StoreObjPtr.h>
15
16#include <ecl/digitization/ECLCompress.h>
17
18namespace Belle2 {
23 class ECLDsp;
24 class ECLTrig;
25 class ECLWaveforms;
26
32 public:
33
36
39
41 void initialize() override;
42
44 void event() override;
45
47 void terminate() override;
48
49 private:
57 unsigned int m_compAlgo;
58 unsigned int m_trgTime;
59 std::string m_eclWaveformsName;
60 };
62}//Belle2
The ECLCompressBGOverlay module compresses recorded waveforms triggered by the random trigger and to ...
StoreArray< ECLDsp > m_eclDsps
recorded waveforms
StoreObjPtr< ECLWaveforms > m_eclWaveforms
compressed waveforms
void initialize() override
Initialize variables
void event() override
Compression happens here.
StoreArray< ECLTrig > m_eclTrigs
recorded trigger time and tags
void terminate() override
Cleanup variables
unsigned int m_compAlgo
Module parameters.
unsigned int m_trgTime
store or not trigger time from each crate
ECL::ECLCompress * m_comp
pointer to a compression object which do all work
std::string m_eclWaveformsName
name of background waveforms storage
Abstract class (interface) for ECL waveform compression/decompression to/from the BitStream storage.
Definition: ECLCompress.h:39
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.