Skip to content

Commit

Permalink
CreateExample: add writing SimTrackerHit
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored and vvolkl committed Jul 2, 2020
1 parent 35f4862 commit cab1ae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TestFWCore/src/components/CreateExampleEventData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ StatusCode CreateExampleEventData::execute() {
p4.z = m_magicNumberOffset + 7;
particle.setMass(m_magicNumberOffset + 8);

auto* hits = m_simTrackerHitHandle.createAndPut();
auto hit = hits->create();
hit.setPosition({3, 4, 5});


return StatusCode::SUCCESS;
Expand Down

0 comments on commit cab1ae9

Please sign in to comment.