Belle II Software  release-05-02-19
TestChunkData.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <TRandom.h>
13 #include <TObject.h>
14 
15 namespace Belle2 {
24  class TestChunkData : public TObject {
25  public:
27  TestChunkData(unsigned int size = 0)
28  {
29  m_chunkData.reserve(size);
30  for (unsigned int i = 0; i < size; i++) {
31  m_chunkData.push_back(gRandom->Rndm());
32  }
33  }
34 
35  private:
37  std::vector<double> m_chunkData;
38 
41  };
43 }
Belle2::TestChunkData
Storable object which can be filled with random chunk data of a certain size.
Definition: TestChunkData.h:32
Belle2::TestChunkData::TestChunkData
TestChunkData(unsigned int size=0)
Generate chunk data with (size // 8) bytes.
Definition: TestChunkData.h:35
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TestChunkData::ClassDef
ClassDef(TestChunkData, 1)
Making this class a ROOT class.
Belle2::TestChunkData::m_chunkData
std::vector< double > m_chunkData
Storage for the chunk data.
Definition: TestChunkData.h:45