Skip to content

Commit 2ab538b

Browse files
benedikt-voelkelnoferini
authored andcommitted
First orbit should be unsigned int (#12565)
* First orbit should be unsigned int
1 parent 2422d11 commit 2ab538b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Steer/src/CollisionContextTool.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct Options {
4545
bool printContext = false;
4646
std::string bcpatternfile;
4747
int tfid = 0; // tfid -> used to calculate start orbit for collisions
48-
int firstOrbit = 0; // first orbit in run (orbit offset)
48+
uint32_t firstOrbit = 0; // first orbit in run (orbit offset)
4949
int orbitsPerTF = 256; // number of orbits per timeframe --> used to calculate start orbit for collisions
5050
bool useexistingkinematics = false;
5151
bool noEmptyTF = false; // prevent empty timeframes; the first interaction will be shifted backwards to fall within the range given by Options.orbits
@@ -196,7 +196,7 @@ bool parseOptions(int argc, char* argv[], Options& optvalues)
196196
"orbitsPerTF", bpo::value<int>(&optvalues.orbitsPerTF)->default_value(256), "Orbits per timeframes")(
197197
"use-existing-kine", "Read existing kinematics to adjust event counts")(
198198
"timeframeID", bpo::value<int>(&optvalues.tfid)->default_value(0), "Timeframe id of the first timeframe int this context. Allows to generate contexts for different start orbits")(
199-
"first-orbit", bpo::value<int>(&optvalues.firstOrbit)->default_value(0), "First orbit in the run (HBFUtils.firstOrbit)")(
199+
"first-orbit", bpo::value<uint32_t>(&optvalues.firstOrbit)->default_value(0), "First orbit in the run (HBFUtils.firstOrbit)")(
200200
"maxCollsPerTF", bpo::value<int>(&optvalues.maxCollsPerTF)->default_value(-1), "Maximal number of MC collisions to put into one timeframe. By default no constraint.")(
201201
"noEmptyTF", bpo::bool_switch(&optvalues.noEmptyTF), "Enforce to have at least one collision")("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");
202202

0 commit comments

Comments
 (0)