Project
Loading...
Searching...
No Matches
GeneratorFromO2KineParam.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
13
14#ifndef ALICEO2_EVENTGEN_GENERATORFROMO2KINEPARAM_H_
15#define ALICEO2_EVENTGEN_GENERATORFROMO2KINEPARAM_H_
16
19
20namespace o2
21{
22namespace eventgen
23{
24
31struct GeneratorFromO2KineParam : public o2::conf::ConfigurableParamHelper<GeneratorFromO2KineParam> {
32 bool skipNonTrackable = true;
33 bool continueMode = false;
34 bool roundRobin = false; // read events with period boundary conditions
35 bool randomize = false; // randomize the order of events
36 unsigned int rngseed = 0; // randomizer seed, 0 for random value
37 bool randomphi = false; // randomize phi angle
38 std::string fileName = ""; // filename to read from - takes precedence over SimConfig if given
39 O2ParamDef(GeneratorFromO2KineParam, "GeneratorFromO2Kine");
40};
41
43 bool skipNonTrackable = true;
44 bool continueMode = false;
45 bool roundRobin = false; // read events with period boundary conditions
46 bool randomize = false; // randomize the order of events
47 unsigned int rngseed = 0; // randomizer seed, 0 for random value
48 bool randomphi = false; // randomize phi angle
49 std::string fileName = ""; // filename to read from - takes precedence over SimConfig if given
50};
51
53 std::string eventPoolPath = ""; // In that order: The path where an event pool can be found ;
54 // or .. a local file containing a list of files to use
55 // or .. a concrete file path to a kinematics file
56 bool skipNonTrackable = true; // <--- do we need this?
57 bool roundRobin = false; // read events with period boundary conditions
58 bool randomize = true; // randomize the order of events
59 unsigned int rngseed = 0; // randomizer seed, 0 for random value
60 bool randomphi = false; // randomize phi angle; rotates tracks in events by some phi-angle
61};
62
63// construct a configurable param singleton out of the
64struct GeneratorEventPoolParam : public o2::conf::ConfigurableParamPromoter<GeneratorEventPoolParam, EventPoolGenConfig> {
65 O2ParamDef(GeneratorEventPoolParam, "GeneratorEventPool");
66};
67
68} // end namespace eventgen
69} // end namespace o2
70
71#endif // ALICEO2_EVENTGEN_GENERATORFROMO2KINEPARAM_H_
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
O2ParamDef(GeneratorEventPoolParam, "GeneratorEventPool")
O2ParamDef(GeneratorFromO2KineParam, "GeneratorFromO2Kine")