Skip to content

Commit 2f2282b

Browse files
Add new leaves for trkmcsci branch. Even though this is a deprecated branch, I'm adding this for completeness
1 parent 87ed2cf commit 2f2282b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/InfoMCStructHelper.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@ namespace mu2e {
409409
mcsi.dp = mcstep.postMomentum().mag()- mcstep.momentum().mag();
410410
mcsi.mom = mcstep.momentum();
411411
mcsi.pos = spos;
412+
mcsi.pdg = mcstep.simParticle()->pdgId();
413+
mcsi.startCode = mcstep.simParticle()->creationCode();
414+
mcsi.stopCode = mcstep.simParticle()->stoppingCode();
412415
}
413416
}
414417
}
@@ -438,7 +441,6 @@ namespace mu2e {
438441
GeomHandle<DetectorSystem> det;
439442
MCStepInfo mcstepinfo;
440443
for(auto const& mcstep : mcsteps) {
441-
std::cout << mcstep << std::endl;
442444
mcstepinfo.reset();
443445
mcstepinfo.vid = mcstep.volumeId();
444446
mcstepinfo.time = mcstep.time();

0 commit comments

Comments
 (0)