Project
Loading...
Searching...
No Matches
SimParams.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_SIMCONFIG_SIMPARAM_H_
13#define O2_SIMCONFIG_SIMPARAM_H_
14
17
18namespace o2
19{
20namespace conf
21{
22// parameters to influence/set the tracking cuts in simulation
23// (mostly used in O2MCApplication stepping)
24struct SimCutParams : public o2::conf::ConfigurableParamHelper<SimCutParams> {
25 bool stepFiltering = true; // if we activate the step filtering in O2BaseMCApplication
26 bool stepTrackRefHook = false; // if we create track references during generic stepping
27 std::string stepTrackRefHookFile = "${O2_ROOT}/share/Detectors/gconfig/StandardSteppingTrackRefHook.macro"; // the standard code holding the TrackRef callback
28
29 bool trackSeed = false; // per track seeding for track-reproducible mode
30
31 double maxRTracking = 1E20; // max R tracking cut in cm (in the VMC sense) -- applied in addition to cutting in the stepping function
32 double maxAbsZTracking = 1E20; // max |Z| tracking cut in cm (in the VMC sense) -- applied in addition to cutting in the stepping function
33 double ZmaxA = 1E20; // max Z tracking cut on A side in cm -- applied in our custom stepping function
34 double ZmaxC = 1E20; // max Z tracking cut on C side in cm -- applied in out custom stepping function
35
36 float maxRTrackingZDC = 50; // R-cut applied in the tunnel leading to ZDC when z > beampipeZ (custom stepping function)
37 float tunnelZ = 1900; // Z-value from where we apply maxRTrackingZDC (default value taken from standard "hall" dimensions)
38
39 float globalDensityFactor = 1.f; // global factor that scales all material densities for systematic studies
40 bool lowneut = false;
41 O2ParamDef(SimCutParams, "SimCutParams");
42};
43
44// parameter influencing material manager
45struct SimMaterialParams : public o2::conf::ConfigurableParamHelper<SimMaterialParams> {
46 // Local density value takes precedence over global density value, i.e. local values overwrite the global value.
48 std::string localDensityFactor; // Expected format: "SimMaterialParams.localDensityFactor=<mod1>:<value1>,<mod2>:<value2>,..."
49
50 O2ParamDef(SimMaterialParams, "SimMaterialParams");
51};
52
53} // namespace conf
54} // namespace o2
55
56#endif /* O2_SIMCONFIG_SIMCUTPARAM_H_ */
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string stepTrackRefHookFile
Definition SimParams.h:27
O2ParamDef(SimCutParams, "SimCutParams")
std::string localDensityFactor
Definition SimParams.h:48
O2ParamDef(SimMaterialParams, "SimMaterialParams")