Belle II Software  release-08-01-10
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 
26 namespace Belle2 {
36  class TRGECLUnpackerModule : public Module {
37 
38  public:
39 
42 
44  virtual ~TRGECLUnpackerModule();
45 
47  void initialize() override;
48 
50  void event() override;
51 
53  void terminate() override;
54 
56  void beginRun() override;
57 
59  void endRun() override;
60 
62  std::string version() const;
63 
65  virtual void readCOPPEREvent(RawTRG*, int, int, int);
66 
68  virtual void checkBuffer(int*, int);
69 
71  virtual void checkBuffer_v136(int*, int);
72 
73  protected :
77  int etm_version = 0;
79  unsigned int nodeid = 0;
81  int nwords = 0;
83  int iFiness = 0;
85  int trgtype = 0;
86 
87  private :
96 
99 
100  };
101 
103 } // end namespace Belle2
104 
105 #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.