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
16
#include "
ITSMFTBase/SegmentationAlpide.h
"
17
#include "
ITSMFTReconstruction/PixelData.h
"
18
19
namespace
o2
20
{
21
namespace
itsmft
22
{
23
24
class
ITSDataSimulator
25
{
26
public
:
27
const
static
uint32_t
MaxChipID
= 24119;
28
const
static
uint32_t
MaxPixelsPerChip
=
29
SegmentationAlpide::NRows
*
SegmentationAlpide::NCols
;
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
PixelData.h
Transient data classes for single pixel and set of pixels from current chip.
SegmentationAlpide.h
Definition of the SegmentationAlpide class.
o2::itsmft::ITSDataSimulator
Definition
ITSDataSimulator.h:25
o2::itsmft::ITSDataSimulator::ITSDataSimulator
ITSDataSimulator(int32_t seed, uint32_t numberOfChips, uint32_t maxPixelsPerChip, bool doDigits, bool doErrors)
Definition
ITSDataSimulator.h:31
o2::itsmft::ITSDataSimulator::MaxPixelsPerChip
static const uint32_t MaxPixelsPerChip
Definition
ITSDataSimulator.h:28
o2::itsmft::ITSDataSimulator::MaxChipID
static const uint32_t MaxChipID
Definition
ITSDataSimulator.h:27
o2::itsmft::ITSDataSimulator::simulate
void simulate()
Definition
ITSDataSimulator.cxx:45
o2::itsmft::ITSDataSimulator::generateChipData
std::vector< PixelData > generateChipData()
Definition
ITSDataSimulator.cxx:25
o2::itsmft::ITSDataSimulator::~ITSDataSimulator
~ITSDataSimulator()=default
o2::itsmft::SegmentationAlpide::NRows
static constexpr int NRows
Definition
SegmentationAlpide.h:36
o2::itsmft::SegmentationAlpide::NCols
static constexpr int NCols
Definition
SegmentationAlpide.h:35
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
ITSMFT
ITS
simulation
include
ITSSimulation
ITSDataSimulator.h
Generated on Tue Feb 25 2025 23:16:20 for Project by
1.9.8