Project
Loading...
Searching...
No Matches
ITSDataSimulator.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
18
19namespace o2
20{
21namespace itsmft
22{
23
25{
26 public:
27 const static uint32_t MaxChipID = 24119;
28 const static uint32_t MaxPixelsPerChip =
30
31 ITSDataSimulator(int32_t seed, uint32_t numberOfChips,
32 uint32_t maxPixelsPerChip, bool doDigits, bool doErrors)
33 : mSeed(seed), mNumberOfChips(numberOfChips), mMaxPixelsPerChip(maxPixelsPerChip), mDoDigits(doDigits), mDoErrors(doErrors)
34 {
35 srand(mSeed);
36 }
37
38 ~ITSDataSimulator() = default;
39
40 // Simulate fired pixels for a chip
41 std::vector<PixelData> generateChipData();
42
43 void simulate();
44
45 private:
46 int32_t mSeed;
47 uint32_t mMaxPixelsPerChip;
48 uint32_t mNumberOfChips;
49 bool mDoDigits;
50 bool mDoErrors;
51};
52
53} // namespace itsmft
54} // namespace o2
Transient data classes for single pixel and set of pixels from current chip.
Definition of the SegmentationAlpide class.
ITSDataSimulator(int32_t seed, uint32_t numberOfChips, uint32_t maxPixelsPerChip, bool doDigits, bool doErrors)
static const uint32_t MaxPixelsPerChip
static const uint32_t MaxChipID
std::vector< PixelData > generateChipData()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...