9#include <rawdata/modules/DummyDataPacker.h>
36 B2INFO(
"DummyDataPacker: Constructor done.");
46DummyDataPackerModule::~DummyDataPackerModule()
54 B2INFO(
"DummyDataPacker: initialize() started.");
69 B2INFO(
"DummyDataPacker: initialize() done.");
97 for (
int i = 0 ; i < num_coppers; i++) {
106 rawcprpacker_info.
node_id = SVD_ID + 1000 + (i + 1);
107 rawcprpacker_info.
tt_ctime = 0x7123456;
108 rawcprpacker_info.
tt_utime = 0xF1234567;
124 int* buf_pcie40[MAX_PCIE40_CH];
125 int nwords_ch[MAX_PCIE40_CH];
127 for (
int j = 0; j < MAX_PCIE40_CH; j++) {
129 buf_pcie40[j] =
new int[ nwords_ch[j]];
130 for (
int k = 0; k < nwords_ch[j]; k++) {
131 buf_pcie40[j][k] = i + j + k;
136 for (
int j = 0; j < MAX_PCIE40_CH; j++) {
137 delete [] buf_pcie40[j];
140 int* buf_hslb1, *buf_hslb2, *buf_hslb3, *buf_hslb4;
141 int nwords_1st_hslb = 0, nwords_2nd_hslb = 0, nwords_3rd_hslb = 0, nwords_4th_hslb = 0;
144 buf_hslb1 =
new int[ nwords_1st_hslb];
145 for (
int j = 0; j < nwords_1st_hslb; j++) {
146 buf_hslb1[ j ] = i + j;
150 buf_hslb2 =
new int[ nwords_2nd_hslb];
151 for (
int j = 0; j < nwords_2nd_hslb; j++) {
152 buf_hslb2[ j ] = i + j + 1;
155 nwords_3rd_hslb = 3 * (
n_basf2evt + 2) % 10 + 1;
156 buf_hslb3 =
new int[ nwords_3rd_hslb];
157 for (
int j = 0; j < nwords_3rd_hslb; j++) {
158 buf_hslb3[ j ] = i + j + 2;
161 nwords_4th_hslb = 4 * (
n_basf2evt + 3) % 10 + 1;
162 buf_hslb4 =
new int[ nwords_4th_hslb];
163 for (
int j = 0; j < nwords_4th_hslb; j++) {
164 buf_hslb4[ j ] = i + j + 3;
168 buf_hslb2, nwords_2nd_hslb,
169 buf_hslb3, nwords_3rd_hslb,
170 buf_hslb4, nwords_4th_hslb,
199 B2DEBUG(0,
"[DEBUG] RunStop was detected. ( Setting: Max event #" <<
max_nevt <<
") Processed Event" <<
n_basf2evt << endl);
StoreArray< RawKLM > raw_klmarray
RawKLM array.
virtual void initialize() override
initialization
virtual void event() override
event module
StoreArray< RawARICH > raw_epidarray
RawARICH array.
StoreArray< RawSVD > raw_svdarray
RawSVD array.
StoreArray< RawTOP > raw_bpidarray
RawTOP array.
StoreArray< RawCOPPER > raw_cprarray
RawCOPPER array.
DummyDataPackerModule()
Constructor / Destructor.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Messaage handler.
StoreArray< RawCDC > raw_cdcarray
RawCDC array.
int max_nevt
check data contents
StoreArray< RawECL > raw_eclarray
RawECL array.
void setDescription(const std::string &description)
Sets the description of the module.
struct to contain header information used by RawCOPPERFormat::Packer()
unsigned int b2l_ctime
32bit unitx time at trigger timing distributed by FTSW. For details, see Nakao-san's belle2link user ...
unsigned int eve_num
Run # and subrun # ( 22bit )
unsigned int tt_ctime
Node ID (32bit)
unsigned int tt_utime
27bit clock ticks at trigger timing distributed by FTSW. For details, see Nakao-san's belle2link user...
unsigned int node_id
Event Number (32bit)
unsigned int run_subrun_num
Experiment number (10bit)
unsigned int exp_num
Experiment number (10bit)
void PackDetectorBuf(int *detector_buf_1st, int nwords_1st, int *detector_buf_2nd, int nwords_2nd, int *detector_buf_3rd, int nwords_3rd, int *detector_buf_4th, int nwords_4th, RawCOPPERPackerInfo rawcprpacker_info)
Packer for RawCOPPER class Pack data (format ver.
The Raw SVD class Class for RawCOPPER class data taken by SVD Currently, this class is almost same as...
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.