Project
Loading...
Searching...
No Matches
DigitizerParam.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 O2_MCH_SIMULATION_DIGITIZER_PARAM_H_
13#define O2_MCH_SIMULATION_DIGITIZER_PARAM_H_
14
17
18namespace o2::mch
19{
20
21struct DigitizerParam : public o2::conf::ConfigurableParamHelper<DigitizerParam> {
22
23 bool continuous = true;
24
25 int seed = 0;
26
27 float timeSigma = 2.f;
28
29 float noiseSigma = 0.5f;
30
31 float noiseOnlyProba = 1.e-7f;
32 float noiseOnlyMean = 23.f;
33 float noiseOnlySigma = 3.f;
34
35 bool onlyNoise = false;
36
37 float minChargeMean = 22.2f;
38 float minChargeSigma = 2.8f;
39
40 bool handlePileup = true;
41
42 O2ParamDef(DigitizerParam, "MCHDigitizer")
43};
44
45} // namespace o2::mch
46
47#endif
#define O2ParamDef(classname, key)
float noiseOnlySigma
dispersion of noise-only signal (in ADC counts)
float timeSigma
time dispersion added to digit times (in bc unit)
bool continuous
whether we assume continuous mode or not
float minChargeSigma
dispersion of lower charge threshold for a signal to be digitized (in ADC counts)
float noiseSigma
dispersion of noise added to physical signal per ADC sample (in ADC counts)
float noiseOnlyProba
probability of noise-only signal (per pad per ROF=4BC)
bool handlePileup
merge digits in overlapping readout windows (defined by the number of samples + 2)
int seed
seed for random number generators used for time, noise and threshold (0 means no seed given)
bool onlyNoise
for debug only: disable treatment of physical signals (i.e. keep only noise)
float noiseOnlyMean
mean value of noise-only signal (in ADC counts)
float minChargeMean
mean value of lower charge threshold for a signal to be digitized (in ADC counts)