Belle II Software development
Convert2RawDet.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 CONVERT2RAWDET_H
10#define CONVERT2RAWDET_H
11
12#include <framework/core/Module.h>
13
14#include <framework/datastore/StoreArray.h>
15
16#include <rawdata/dataobjects/RawFTSW.h>
17#include <rawdata/dataobjects/RawCDC.h>
18#include <rawdata/dataobjects/RawSVD.h>
19#include <rawdata/dataobjects/RawECL.h>
20#include <rawdata/dataobjects/RawARICH.h>
21#include <rawdata/dataobjects/RawTOP.h>
22#include <rawdata/dataobjects/RawKLM.h>
23#include <rawdata/dataobjects/RawTRG.h>
24#include <rawdata/dataobjects/RawCOPPER.h>
25
26
27namespace Belle2 {
36
37 // Public functions
38 public:
39
43 virtual ~Convert2RawDetModule();
45 virtual void initialize() override;
47 virtual void beginRun() override;
49 virtual void event() override;
51 virtual void endRun() override;
53 virtual void terminate() override;
54
55 protected:
57 virtual void convertDataObject(RawDataBlock* raw_dblk, std::vector<unsigned int>& cpr_id);
58
60 int m_nevt;
61
63 private:
75 };
76
78} // end namespace Belle2
79
80#endif // MODULEHELLO_H
A class definition of a module to convert from RawCOPPER or RawDataBlock to RawDetector objects.
int m_nevt
No. of sent events.
StoreArray< RawSVD > m_rawSVD
Array for RawCOPPER
virtual void initialize() override
Called at the beginning of data processing.
virtual void event() override
Called for each event.
virtual void endRun() override
Called if the current run ends.
StoreArray< RawFTSW > m_rawFTSW
Array for RawTRG
virtual void terminate() override
Called at the end of data processing.
virtual void convertDataObject(RawDataBlock *raw_dblk, std::vector< unsigned int > &cpr_id)
function to register data buffer in DataStore as RawDetector
StoreArray< RawCOPPER > m_rawCOPPER
Array for RawDataBlock.
StoreArray< RawARICH > m_rawARICH
Array for RawTOP
virtual ~Convert2RawDetModule()
Destructor.
StoreArray< RawTRG > m_rawTRG
Array for RawKLM
virtual void beginRun() override
Called when entering a new run.
StoreArray< RawKLM > m_rawKLM
Array for RawECL
StoreArray< RawTOP > m_rawTOP
Array for RawCDC
StoreArray< RawDataBlock > m_rawDataBlock
Data members.
StoreArray< RawECL > m_rawECL
Array for RawARICH
StoreArray< RawCDC > m_rawCDC
Array for RawSVD
Base class for Modules.
Definition: Module.h:72
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.