Belle II Software  release-06-00-14
trgtopUnpackerModule.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 #ifndef TRGTOPUNPACKER_H
9 #define TRGTOPUNPACKER_H
10 
11 #include <string>
12 
13 #include "rawdata/dataobjects/RawTRG.h"
14 #include "trg/top/dataobjects/TRGTOPUnpackerStore.h"
15 
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/core/Module.h>
18 
19 #define NUMBER_OF_SLOTS 16
20 
21 namespace Belle2 {
37  class TRGTOPUnpackerModule : public Module {
38 
39  public:
40 
41  static constexpr double clkTo1ns = 0.5 / 0.508877;
42 
47 
49  virtual ~TRGTOPUnpackerModule() override;
50 
52  virtual void initialize() override;
53 
55  virtual void beginRun() override;
56 
58  virtual void event() override;
59 
61  virtual void endRun() override;
62 
64  virtual void terminate() override;
65 
67  std::string version() const;
68 
70  virtual void readCOPPEREvent(RawTRG*, int);
71 
73  virtual void fillTreeTRGTOP(int*);
74 
75  protected:
76 
77  int m_eventNumber;
78  int m_trigType;
79  int m_nodeId;
80  int m_nWords;
82  private:
83 
85 
86  };
88 }
89 
90 #endif
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
virtual void initialize() override
Initialize the Module.
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void fillTreeTRGTOP(int *)
Unpacker main function.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void beginRun() override
Called when entering a new run.
StoreArray< TRGTOPUnpackerStore > m_TRGTOPCombinedTimingArray
N words in raw data.
TRGTOPUnpackerModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_trigType
Event number (according to L1/global)
std::string version() const
returns version of TRGGDLUnpackerModule.
virtual void readCOPPEREvent(RawTRG *, int)
Read data from TRG copper.
Abstract base class for different kinds of events.