Belle II Software  release-05-02-19
trgeclUnpackerModule.h
1 //---------------------------------------------------------------
2 // $Id$
3 //---------------------------------------------------------------
4 // Filename : trgeclUnpackerModule.h
5 // Section : TRG ECL
6 // Owner : SungHyun Kim
7 // Email : sungnhyun.kim@belle2.org
8 //---------------------------------------------------------------
9 // Description : TRG ECL Unpacker Module
10 //---------------------------------------------------------------
11 // 1.00 : 2017/05/06 : First version
12 // 1.01 : 2017/07/17 : Add FTSW clock from FAM, fine timing
13 // 2.00 : 2018/02/17 : 8 window data (ETM Ver. 100)
14 // 3.00 : 2018/07/31 : ETM version dependence included
15 //---------------------------------------------------------------
16 
17 #ifndef TRGECLUNPACKER_H
18 #define TRGECLUNPACKER_H
19 
20 #include <string>
21 
22 #include "rawdata/dataobjects/RawTRG.h"
23 #include "trg/ecl/dataobjects/TRGECLUnpackerSumStore.h"
24 #include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
25 #include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
26 #include "trg/ecl/dataobjects/TRGECLCluster.h"
27 
28 #include <framework/datastore/StoreArray.h>
29 #include <framework/core/Module.h>
30 
31 namespace Belle2 {
41  class TRGECLUnpackerModule : public Module {
42 
43  public:
44 
47 
49  virtual ~TRGECLUnpackerModule();
50 
52  virtual void initialize();
53 
55  virtual void event();
56 
58  virtual void terminate();
59 
61  virtual void beginRun();
62 
64  virtual void endRun();
65 
67  std::string version() const;
68 
70  virtual void readCOPPEREvent(RawTRG*, int, int);
71 
73  virtual void checkBuffer(int*, int);
74 
76  virtual void checkBuffer_v136(int*, int);
77 
78  protected :
82  int etm_version = 0;
84  unsigned int nodeid = 0;
86  int nwords = 0;
88  int iFiness = 0;
90  int trgtype = 0;
91 
92  private :
101  };
102 
104 } // end namespace Belle2
105 
106 #endif // TRGECLUnpackerModule_H
Belle2::TRGECLUnpackerModule::initialize
virtual void initialize()
Initilizes TRGECLUnpackerModuel.
Definition: trgeclUnpackerModule.cc:57
Belle2::TRGECLUnpackerModule::endRun
virtual void endRun()
Called when run ended.
Definition: trgeclUnpackerModule.cc:66
Belle2::RawTRG
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
Definition: RawTRG.h:27
Belle2::TRGECLUnpackerModule::nwords
int nwords
N Word.
Definition: trgeclUnpackerModule.h:86
Belle2::TRGECLUnpackerModule::m_TRGECLTCArray
StoreArray< TRGECLUnpackerStore > m_TRGECLTCArray
ECL Trigger Unpacker TC output.
Definition: trgeclUnpackerModule.h:94
Belle2::TRGECLUnpackerModule::trgtype
int trgtype
Trigger Type.
Definition: trgeclUnpackerModule.h:90
Belle2::TRGECLUnpackerModule::m_TRGECLEvtArray
StoreArray< TRGECLUnpackerEvtStore > m_TRGECLEvtArray
ECL Trigger Unpacker Event output.
Definition: trgeclUnpackerModule.h:98
Belle2::TRGECLUnpackerModule
A module of TRG ECL Unpacker.
Definition: trgeclUnpackerModule.h:41
Belle2::TRGECLUnpackerModule::m_TRGECLClusterArray
StoreArray< TRGECLCluster > m_TRGECLClusterArray
ECL Trigger Cluster output.
Definition: trgeclUnpackerModule.h:100
Belle2::TRGECLUnpackerModule::TRGECLUnpackerModule
TRGECLUnpackerModule()
Constructor.
Definition: trgeclUnpackerModule.cc:40
Belle2::TRGECLUnpackerModule::~TRGECLUnpackerModule
virtual ~TRGECLUnpackerModule()
Destructor.
Definition: trgeclUnpackerModule.cc:51
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::TRGECLUnpackerModule::readCOPPEREvent
virtual void readCOPPEREvent(RawTRG *, int, int)
Read data from TRG copper.
Definition: trgeclUnpackerModule.cc:92
Belle2::TRGECLUnpackerModule::checkBuffer
virtual void checkBuffer(int *, int)
Unpacker main function.
Definition: trgeclUnpackerModule.cc:107
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLUnpackerModule::terminate
virtual void terminate()
Called when processing ended.
Definition: trgeclUnpackerModule.cc:53
Belle2::TRGECLUnpackerModule::event
virtual void event()
Called event by event.
Definition: trgeclUnpackerModule.cc:67
Belle2::TRGECLUnpackerModule::checkBuffer_v136
virtual void checkBuffer_v136(int *, int)
Unpacker main function for upto version 136.
Definition: trgeclUnpackerModule.cc:849
Belle2::TRGECLUnpackerModule::beginRun
virtual void beginRun()
Called when new run started.
Definition: trgeclUnpackerModule.cc:65
Belle2::TRGECLUnpackerModule::nodeid
unsigned int nodeid
Node Id.
Definition: trgeclUnpackerModule.h:84
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TRGECLUnpackerModule::n_basf2evt
int n_basf2evt
Event number.
Definition: trgeclUnpackerModule.h:80
Belle2::TRGECLUnpackerModule::version
std::string version() const
returns version of TRGECLUnpackerModule.
Definition: trgeclUnpackerModule.cc:35
Belle2::TRGECLUnpackerModule::m_TRGECLSumArray
StoreArray< TRGECLUnpackerSumStore > m_TRGECLSumArray
ECL Trigger Unpacker Summary output.
Definition: trgeclUnpackerModule.h:96
Belle2::TRGECLUnpackerModule::iFiness
int iFiness
Finess.
Definition: trgeclUnpackerModule.h:88
Belle2::TRGECLUnpackerModule::etm_version
int etm_version
ETM Version.
Definition: trgeclUnpackerModule.h:82