Project
Loading...
Searching...
No Matches
TRDSimParams.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_CONF_DIGIPARAMS_H_
13#define O2_CONF_DIGIPARAMS_H_
14
15// Global parameters for TRD simulation / digitization
16
20
21namespace o2
22{
23namespace trd
24{
25
26// Global parameters for TRD simulation / digitization
27/*
28 See https://github.com/AliceO2Group/AliceO2/blob/dev/Common/SimConfig/doc/ConfigurableParam.md
29*/
30struct TRDSimParams : public o2::conf::ConfigurableParamHelper<TRDSimParams> {
31 // Trigger parameters
32 float readoutTimeNS = 3000;
33 float deadTimeNS = 11000;
34 float busyTimeNS() const { return readoutTimeNS + deadTimeNS; }
35 // digitization settings
36 int digithreads = 4;
37 float maxMCStepSize = 0.1;
38 bool doTR = true;
40 // TRF parameters
41 int trf = 0; // Sampled TRF function. 0: default TRF, 1: TRF described in TRF TDR, 2: No TRF, 3: Landau dist as TRF (parameters specified below)
42 float trf_landau_mu = 0.; // Mu of the Landau distribution used to describe TRF
43 float trf_landau_sigma = .03; // Sigma of the Landau distribution used to describe TRF
44 O2ParamDef(TRDSimParams, "TRDSimParams");
45};
46
47} // namespace trd
48} // namespace o2
49
50#endif
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float deadTimeNS
trigger deadtime in ns (default 11 us)
bool doTR
switch for transition radiation
float busyTimeNS() const
the time for which no new trigger can be received in nanoseconds
SimParam::GasMixture gas
the gas mixture in the TRD
int digithreads
number of digitizer threads
O2ParamDef(TRDSimParams, "TRDSimParams")
float readoutTimeNS
the time the readout takes in ns (default 30 time bins = 3 us)
float maxMCStepSize
maximum size of MC steps