Skip to content

Commit

Permalink
more SimVertexBarcode
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 12, 2024
1 parent 08e6558 commit 3271411
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ Pythia8Generator::operator()(RandomEngine& rng) {
}

// create the primary vertex
vertices.emplace_back(0, SimVertex::Vector4(0., 0., 0., 0.));
vertices.emplace_back(SimVertexBarcode{0},
SimVertex::Vector4(0., 0., 0., 0.));

// convert generated final state particles into internal format
for (int ip = 0; ip < m_pythia8->event.size(); ++ip) {
Expand Down Expand Up @@ -166,7 +167,8 @@ Pythia8Generator::operator()(RandomEngine& rng) {
} else {
// no matching secondary vertex exists -> create new one
particleId.setVertexSecondary(vertices.size());
auto& vertex = vertices.emplace_back(particleId.vertexId(), pos4);
auto& vertex = vertices.emplace_back(
static_cast<SimVertexBarcode>(particleId.vertexId()), pos4);
vertex.outgoing.insert(particleId);
ACTS_VERBOSE("created new secondary vertex " << pos4.transpose());
}
Expand Down

0 comments on commit 3271411

Please sign in to comment.