Project
Loading...
Searching...
No Matches
ChipDigitsContainer.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
12#ifndef ALICEO2_ITS3_CHIPDIGITSCONTAINER_
13#define ALICEO2_ITS3_CHIPDIGITSCONTAINER_
14
15#include "ITSMFTBase/SegmentationAlpide.h" // Base class in o2::itsmft namespace
16#include "ITSMFTSimulation/ChipDigitsContainer.h" // Base class in o2::itsmft namespace
17#include "ITS3Base/SegmentationMosaix.h" // OB segmentation implementation
18#include "ITS3Base/SpecsV2.h" // Provides SpecsV2::isDetITS3() interface
19#include "ITS3Simulation/DigiParams.h" // ITS3-specific DigiParams interface
20#include <TRandom.h>
21
22namespace o2::its3
23{
24
26{
27 private:
28 bool innerBarrel;
29 int maxRows;
30 int maxCols;
31
32 public:
33 explicit ChipDigitsContainer(UShort_t idx = 0);
34
37
39 void setChipIndex(UShort_t idx)
40 {
43 maxRows = innerBarrel ? SegmentationIB::NRows : SegmentationOB::NRows;
44 maxCols = innerBarrel ? SegmentationIB::NCols : SegmentationOB::NCols;
45 }
46
47 int getMaxRows() const { return maxRows; }
48 int getMaxCols() const { return maxCols; }
49 bool isIB() const;
51 void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::itsmft::DigiParams* params, int maxRows = o2::itsmft::SegmentationAlpide::NRows, int maxCols = o2::itsmft::SegmentationAlpide::NCols) = delete;
52 void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::its3::DigiParams* params);
53
55};
56
57} // namespace o2::its3
58
59#endif // ALICEO2_ITS3_CHIPDIGITSCONTAINER_
transient container for single chip digits accumulation
Definition of the SegmentationAlpide class.
Definition of the SegmentationMosaix class.
void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::itsmft::DigiParams *params, int maxRows=o2::itsmft::SegmentationAlpide::NRows, int maxCols=o2::itsmft::SegmentationAlpide::NCols)=delete
Adds noise digits, deleted the one using the itsmft::DigiParams interface.
void setChipIndex(UShort_t idx)
Returns whether the chip is in the inner barrel (IB)
ClassDefNV(ChipDigitsContainer, 1)
Segmentation and response for pixels in ITS3 upgrade.
Container for similated points connected to a given chip.
GLenum const GLfloat * params
Definition glcorearb.h:272
bool isDetITS3(T detID)
Definition SpecsV2.h:210