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 std::string stepFilteringMacro = ""; // ROOT macro providing keepStep(); empty = built-in z/R cut
27 bool stepTrackRefHook = false; // if we create track references during generic stepping
28 std::string stepTrackRefHookFile = "${O2_ROOT}/share/Detectors/gconfig/StandardSteppingTrackRefHook.macro"; // the standard code holding the TrackRef callback
29
30 bool trackSeed = false; // per track seeding for track-reproducible mode
31
32 double maxRTracking = 1E20; // max R tracking cut in cm (in the VMC sense) -- applied in addition to cutting in the stepping function
33 double maxAbsZTracking = 1E20; // max |Z| tracking cut in cm (in the VMC sense) -- applied in addition to cutting in the stepping function
34 double ZmaxA = 1E20; // max Z tracking cut on A side in cm -- applied in our custom stepping function
35 double ZmaxC = 1E20; // max Z tracking cut on C side in cm -- applied in out custom stepping function
36
37 float maxRTrackingZDC = 50; // R-cut applied in the tunnel leading to ZDC when z > beampipeZ (custom stepping function)
38 float tunnelZ = 1900; // Z-value from where we apply maxRTrackingZDC (default value taken from standard "hall" dimensions)
39
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.
47 float globalDensityFactor = 1.f; // global factor that scales all material densities for systematic studies
48 // String to set densities on module or material level. Expected format:
49 // "SimMaterialParams.localDensityFactor=<mod1/matname>:<value1>,<mod2>:<value2>,..."
50 // Example: "SimMaterialParams.localDensityFactor=TPC/Air:1.2,ITS:5." will scale the density of the Air in TPC
51 // with 1.2 and to 5.0 for all materials in ITS".
52 std::string localDensityFactor;
53
54 O2ParamDef(SimMaterialParams, "SimMaterialParams");
55};
56
57} // namespace conf
58} // namespace o2
59
60#endif /* O2_SIMCONFIG_SIMCUTPARAM_H_ */
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string stepFilteringMacro
Definition SimParams.h:26
std::string stepTrackRefHookFile
Definition SimParams.h:28
O2ParamDef(SimCutParams, "SimCutParams")
std::string localDensityFactor
Definition SimParams.h:52
O2ParamDef(SimMaterialParams, "SimMaterialParams")