Project
Loading...
Searching...
No Matches
DPLDigitizerParam.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_TF3DPLDIGITIZERPARAM_H_
13#define ALICEO2_TF3DPLDIGITIZERPARAM_H_
14
18#include <string_view>
19
20namespace o2
21{
22namespace iotof
23{
24struct DPLDigitizerParam : public o2::conf::ConfigurableParamHelper<DPLDigitizerParam> {
25
26 bool continuous = true;
27 float noisePerPixel = DEFNoisePerPixel();
28
29 double timeOffset = 0.;
30 float timeResolution = 0.020f;
31 float tdcBin = 0.010f;
32 float efficiency = 0.98f;
33
34 // Optional map paths. Prefix with "ccdb://" to fetch from CCDB, otherwise the path is opened with TFile::Open
35 // (local file, alien://, root://, ...). An empty path disables the map.
36 std::string efficiencyMapPath{};
39 std::string resolutionMapPath{};
41 std::string timeOfArrivalMapPath{};
42
43 int chargeThreshold = 100;
45 int nSimSteps = 10;
46 float energyToNElectrons = 1. / 3.6e-9; // conversion of eloss to Nelectrons
48
49 int nColsPerGroup = 4;
50 double tdcBusyTime = 3000.;
51
52 std::string noiseFilePath{};
53
54 // boilerplate stuff + make principal key
55 O2ParamDef(DPLDigitizerParam, "TF3DigitizerParam");
56
57 private:
58 static constexpr float DEFNoisePerPixel()
59 {
60 return 1e-8; // ITS/MFT values here!!
61 }
62};
63
64} // namespace iotof
65} // namespace o2
66
67#endif
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float timeResolution
time resolution sigma in ns (20 ps default)
std::string noiseFilePath
optional noise masks file path. FIXME to be removed once switch to CCDBFetcher
float noisePerPixel
ALPIDE Noise per channel.
float tdcBin
TDC time bin (10 ps default)
float efficiency
detection efficiency
int nSimSteps
number of steps in response simulation
std::string timeOfArrivalMapPath
optional time of arrival map path.
bool continuous
flag for continuous simulation
int minChargeToAccount
minimum charge contribution to account
int nColsPerGroup
number of pixel columns grouped into a readout column
int responseMatrixSize
size of the response matrix (odd number)
double tdcBusyTime
tdc pair bsuy time (default 3 us)
int chargeThreshold
charge threshold in Nelectrons
double timeOffset
time offset (in seconds!) to calculate ROFrame from hit time
O2ParamDef(DPLDigitizerParam, "TF3DigitizerParam")