Belle II Software development
trgeclUnpackerModule.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#ifndef TRGECLUNPACKER_H
10#define TRGECLUNPACKER_H
11
12#include <string>
13
14#include "rawdata/dataobjects/RawTRG.h"
15#include "trg/ecl/dataobjects/TRGECLUnpackerSumStore.h"
16#include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
17#include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
18#include "trg/ecl/dataobjects/TRGECLCluster.h"
19
20#include <mdst/dataobjects/EventLevelClusteringInfo.h>
21
22#include <framework/datastore/StoreArray.h>
23#include <framework/core/Module.h>
24#include <framework/database/DBObjPtr.h>
25
26namespace Belle2 {
34
35 public:
36
39
41 virtual ~TRGECLUnpackerModule();
42
44 void initialize() override;
45
47 void event() override;
48
50 void terminate() override;
51
53 void beginRun() override;
54
56 void endRun() override;
57
59 std::string version() const;
60
62 virtual void readCOPPEREvent(RawTRG*, int, int, int);
63
65 virtual void checkBuffer(int*, int);
66
68 virtual void checkBuffer_v136(int*, int);
69
70 protected :
74 int etm_version = 0;
76 unsigned int nodeid = 0;
78 int nwords = 0;
80 int iFiness = 0;
82 int trgtype = 0;
83
84 private :
93
96
97 };
98
100} // end namespace Belle2
101
102#endif // TRGECLUnpackerModule_H
Base class for Modules.
Definition: Module.h:72
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
Definition: RawTRG.h:27
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
A module of TRG ECL Unpacker.
virtual ~TRGECLUnpackerModule()
Destructor.
void initialize() override
Initilizes TRGECLUnpackerModuel.
void event() override
Called event by event.
virtual void readCOPPEREvent(RawTRG *, int, int, int)
Read data from TRG copper.
void endRun() override
Called when run ended.
StoreArray< TRGECLUnpackerSumStore > m_TRGECLSumArray
ECL Trigger Unpacker Summary output.
void terminate() override
Called when processing ended.
StoreArray< TRGECLUnpackerStore > m_TRGECLTCArray
ECL Trigger Unpacker TC output.
void beginRun() override
Called when new run started.
StoreArray< TRGECLUnpackerEvtStore > m_TRGECLEvtArray
ECL Trigger Unpacker Event output.
std::string version() const
returns version of TRGECLUnpackerModule.
virtual void checkBuffer_v136(int *, int)
Unpacker main function for upto version 136.
StoreObjPtr< EventLevelClusteringInfo > m_eventLevelClusteringInfo
EventLevelClusteringInfo.
virtual void checkBuffer(int *, int)
Unpacker main function.
StoreArray< TRGECLCluster > m_TRGECLClusterArray
ECL Trigger Cluster output.
Abstract base class for different kinds of events.