Belle II Software development
EvReduction.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 EVREDUCTION_H
10#define EVREDUCTION_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/RawCOPPER.h>
24
25#define RBUFSIZE 100000000
26#define MAXEVTSIZE 10000000
27
28/*
29#define DETECTOR_MASK 0xFFFFFFFF // tentative
30#define SVD_ID 0x00000001 // tentative
31#define CDC_ID 0x00000002 // tentative
32#define TOP_ID 0x00000003 // tentative
33#define ARICH_ID 0x00000004 // tentative
34#define ECL_ID 0x00000005 // tentative
35#define KLM_ID 0x00000006 // tentative
36*/
37
38namespace Belle2 {
46 class EvReductionModule : public Module {
47
48 // Public functions
49 public:
50
53 virtual ~EvReductionModule();
54
56 void initialize() override;
57
59 void beginRun() override;
60 void event() override;
61 void endRun() override;
62 void terminate() override;
63
64 private:
65
66 // Data members
67 private:
69 int m_nevt;
70
71 int m_red_factor;
72
82#ifdef DESY
83 StoreArray<RawTLU> m_rawTLU;
84#endif
85 };
86
88} // end namespace Belle2
89
90#endif // MODULEHELLO_H
A class definition of an input module for Sequential ROOT I/O.
Definition: EvReduction.h:46
int m_nevt
No. of sent events.
Definition: EvReduction.h:69
EvReductionModule()
Constructor / Destructor.
Definition: EvReduction.cc:29
StoreArray< RawSVD > m_rawSVD
RawSVD.
Definition: EvReduction.h:76
void initialize() override
Module functions to be called from main process.
Definition: EvReduction.cc:49
void event() override
This method is the core of the module.
Definition: EvReduction.cc:79
void endRun() override
This method is called if the current run ends.
Definition: EvReduction.cc:112
StoreArray< RawFTSW > m_rawFTSW
RawFTSW.
Definition: EvReduction.h:81
void terminate() override
This method is called at the end of the event processing.
Definition: EvReduction.cc:120
StoreArray< RawCOPPER > m_rawCOPPER
RawCOPPER.
Definition: EvReduction.h:74
StoreArray< RawARICH > m_rawARICH
RawARICH.
Definition: EvReduction.h:79
void beginRun() override
Module functions to be called from event process.
Definition: EvReduction.cc:73
StoreArray< RawKLM > m_rawKLM
RawKLM.
Definition: EvReduction.h:80
StoreArray< RawTOP > m_rawTOP
RawTOP.
Definition: EvReduction.h:77
StoreArray< RawDataBlock > m_rawDataBlock
RawDataBlock.
Definition: EvReduction.h:73
StoreArray< RawECL > m_rawECL
RawECL.
Definition: EvReduction.h:78
StoreArray< RawCDC > m_rawCDC
RawCDC.
Definition: EvReduction.h:75
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.