Project
Loading...
Searching...
No Matches
ParameterElectronics.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#ifndef ALICEO2_TPC_ParameterElectronics_H_
17#define ALICEO2_TPC_ParameterElectronics_H_
18
19#include <array>
22
23namespace o2::tpc
24{
25
26enum class DigitzationMode : char {
27 FullMode = 0,
28 ZeroSuppression = 1,
31 NoSaturation = 4,
32 PropagateADC = 5,
33 Auto = 6,
34};
35
36struct ParameterElectronics : public o2::conf::ConfigurableParamHelper<ParameterElectronics> {
37 static constexpr int TIMEBININBC = 8;
38
39 int NShapedPoints = 8;
41 float PeakingTime = 160e-3f;
42 float ChipGain = 20.f;
43 float ADCdynamicRange = 2200.f;
44 float ADCsaturation = 1024.f;
45 float ZbinWidth = TIMEBININBC * o2::constants::lhc::LHCBunchSpacingNS * 1e-3;
46 float ElectronCharge = 1.602e-19f;
47 float adcToT = 1.f / 1024.f;
48 bool doIonTail = false;
49 bool doIonTailPerPad = false;
50 bool doCommonModePerPad = true;
51 bool doSaturationTail = false;
52 bool doNoiseEmptyPads = false;
53 bool applyDeadMap = true;
54 float commonModeCoupling = 0.5f;
56
62 float getAverageShapingTime() const { return PeakingTime + 35e-3f; }
63
65};
66} // namespace o2::tpc
67
68#endif // ALICEO2_TPC_ParameterElectronics_H_
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
Header to collect LHC related constants.
Global TPC definitions and constants.
@ Auto
Automatically decide based on DCS settings in CCDB.
@ ZeroSuppressionCMCorr
Apply noise, pedestal and saturation and then from that subtract the pedestal and apply zero suppress...
@ ZeroSuppression
Apply noise, pedestal, common mode and saturation and then from that subtract the pedestal and apply ...
@ PropagateADC
Just propagate the bare ADC value.
@ FullMode
Apply noise, pedestal and saturation.
@ SubtractPedestal
Apply noise, pedestal and saturation and then from that subtract the pedestal.
@ NoSaturation
Apply only noise and pedestal.
float ADCdynamicRange
Dynamic range of the ADC [mV].
float ADCsaturation
ADC saturation [ADC counts].
float commonModeCoupling
average coupling of common mode signal
float ZbinWidth
Width of a z bin [us].
float PeakingTime
Peaking time of the SAMPA [us].
bool doIonTailPerPad
add ion tail in simulation using pad-by-pad values
bool doSaturationTail
add saturation tail in simulation
bool applyDeadMap
apply dead channel map
bool doCommonModePerPad
add common mode in simulation using pad-by-pad values
DigitzationMode DigiMode
Digitization mode [full / ... ].
O2ParamDef(ParameterElectronics, "TPCEleParam")
float ElectronCharge
Electron charge [C].
bool doNoiseEmptyPads
add noise in pads without signal in simulation
float adcToT
relation between time over threshold and ADC value
bool doIonTail
add ion tail in simulation
float ChipGain
Gain of the SAMPA [mV/fC] - may be either 20 or 30.