You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work needed for restructuring O2DPG MC workflows towards
the use of a globally pre-generated collision context.
* fixes for picking up vertices from collision contexts
* possibility to generate vertices in CollContextTool from CCDB entry
* smaller cleanup
relates to https://its.cern.ch/jira/browse/O2-3622
"noGeant", bpo::bool_switch(), "prohibits any Geant transport/physics (by using tight cuts)")(
77
77
"forwardKine", bpo::bool_switch(), "forward kinematics on a FairMQ channel")(
78
78
"noDiscOutput", bpo::bool_switch(), "switch off writing sim results to disc (useful in combination with forwardKine)");
79
-
options.add_options()("fromCollContext", bpo::value<std::string>()->default_value(""), "Use a pregenerated collision context to infer number of events to simulate, how to embedd them, the vertex position etc. Takes precedence of other options such as \"--nEvents\".");
79
+
options.add_options()("fromCollContext", bpo::value<std::string>()->default_value(""), "Use a pregenerated collision context to infer number of events to simulate, how to embedd them, the vertex position etc. Takes precedence of other options such as \"--nEvents\". The format is COLLISIONCONTEXTFILE.root[:SIGNALNAME] where SIGNALNAME is the event part in the context which is relevant.");
Copy file name to clipboardexpand all lines: Steer/src/CollisionContextTool.cxx
+34-14
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
#include"CommonUtils/ConfigurableParam.h"
28
28
#include<CCDB/BasicCCDBManager.h>
29
29
#include"DataFormatsParameters/GRPLHCIFData.h"
30
+
#include"SimConfig/SimConfig.h"
30
31
31
32
//
32
33
// Created by Sandro Wenzel on 13.07.21.
@@ -52,11 +53,12 @@ struct Options {
52
53
bool useexistingkinematics = false;
53
54
bool noEmptyTF = false; // prevent empty timeframes; the first interaction will be shifted backwards to fall within the range given by Options.orbits
54
55
int maxCollsPerTF = -1; // the maximal number of hadronic collisions per TF (can be used to constrain number of collisions per timeframe to some maximal value)
55
-
bool genVertices = false; // whether to assign vertices to collisions
"first-orbit", bpo::value<double>(&optvalues.firstFractionalOrbit)->default_value(0), "First (fractional) orbit in the run (HBFUtils.firstOrbit + BC from decimal)")(
204
206
"maxCollsPerTF", bpo::value<int>(&optvalues.maxCollsPerTF)->default_value(-1), "Maximal number of MC collisions to put into one timeframe. By default no constraint.")(
205
207
"noEmptyTF", bpo::bool_switch(&optvalues.noEmptyTF), "Enforce to have at least one collision")(
206
-
"configKeyValues", bpo::value<std::string>(&optvalues.configKeyValues)->default_value(""), "Semicolon separated key=value strings (e.g.: 'TPC.gasDensity=1;...')")("with-vertices", "Assign vertices to collisions.")("timestamp", bpo::value<long>(&optvalues.timestamp)->default_value(-1L), "Timestamp for CCDB queries / anchoring")(
"with-vertices", bpo::value<std::string>(&optvalues.vertexModeString)->default_value("kNoVertex"), "Assign vertices to collisions. Argument is the vertex mode. Defaults to no vertexing applied")(
210
+
"timestamp", bpo::value<long>(&optvalues.timestamp)->default_value(-1L), "Timestamp for CCDB queries / anchoring")(
0 commit comments