Belle II Software development
TestChunkData.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#pragma once
9
10#include <TRandom.h>
11#include <TObject.h>
12
13namespace Belle2 {
22 class TestChunkData : public TObject {
23 public:
25 TestChunkData(unsigned int size = 0)
26 {
27 m_chunkData.reserve(size);
28 for (unsigned int i = 0; i < size; i++) {
29 m_chunkData.push_back(gRandom->Rndm());
30 }
31 }
32
33 private:
35 std::vector<double> m_chunkData;
36
39 };
41}
Storable object which can be filled with random chunk data of a certain size.
Definition: TestChunkData.h:22
TestChunkData(unsigned int size=0)
Generate chunk data with (size // 8) bytes.
Definition: TestChunkData.h:25
ClassDef(TestChunkData, 1)
Making this class a ROOT class.
std::vector< double > m_chunkData
Storage for the chunk data.
Definition: TestChunkData.h:35
Abstract base class for different kinds of events.