Belle II Software  release-08-01-10
PrintDataTemplate.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 PRINTDATATEMPLATE_H
10 #define PRINTDATATEMPLATE_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/pcore/EvtMessage.h>
14 
15 #include <framework/datastore/DataStore.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/dataobjects/EventMetaData.h>
19 
20 
21 
22 
23 #include <rawdata/dataobjects/RawDataBlock.h>
24 #include <rawdata/dataobjects/RawFTSW.h>
25 #include <rawdata/dataobjects/RawTLU.h>
26 #include <rawdata/dataobjects/RawCOPPER.h>
27 #include <rawdata/dataobjects/RawSVD.h>
28 #include <rawdata/dataobjects/RawCDC.h>
29 #include <rawdata/dataobjects/RawTOP.h>
30 #include <rawdata/dataobjects/RawARICH.h>
31 #include <rawdata/dataobjects/RawECL.h>
32 #include <rawdata/dataobjects/RawKLM.h>
33 #include <rawdata/dataobjects/RawPXD.h>
34 #include <rawdata/dataobjects/RawTRG.h>
35 
36 
37 namespace Belle2 {
46 
47  // Public functions
48  public:
49 
52  virtual ~PrintDataTemplateModule();
53 
55  virtual void initialize() override;
56 
58  virtual void event() override;
59 
61  virtual void printCOPPEREvent(RawCOPPER* raw_array, int i);
62 
64  virtual void printFTSWEvent(RawDataBlock* raw_array, int i);
65 
67  virtual void checkFTSWver2(RawFTSW* raw_array, int i);
68 
70  virtual void printBuffer(int* buf, int nwords);
71 
73  virtual void printPXDEvent(RawPXD* raw_pxd);
74 
75 
76  protected :
79 
82 
84  int m_nftsw;
85 
87  int m_ncpr;
88 
91 
94 
95  };
96 
98 } // end namespace Belle2
99 
100 #endif // MODULEHELLO_H
Base class for Modules.
Definition: Module.h:72
Module to get data from DataStore and send it to another network node.
virtual void checkFTSWver2(RawFTSW *raw_array, int i)
check the contents of a RawFTSW event ver.2
virtual void initialize() override
Module functions to be called from main process.
virtual void printFTSWEvent(RawDataBlock *raw_array, int i)
print the contents of a RawFTSW event
virtual void printBuffer(int *buf, int nwords)
print a buffer
virtual void event() override
Module functions to be called from event process.
int n_basf2evt
No. of sent events.
PrintDataTemplateModule()
Constructor / Destructor.
int m_compressionLevel
Compression parameter.
virtual void printCOPPEREvent(RawCOPPER *raw_array, int i)
print the contents of a RawCOPPER event
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Event Meta Data.
virtual void printPXDEvent(RawPXD *raw_pxd)
print a PXD event
The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detector...
Definition: RawCOPPER.h:52
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27
The Raw FTSW class.
Definition: RawFTSW.h:30
The Raw PXD class.
Definition: RawPXD.h:27
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.