Skip to content

Commit

Permalink
Another typo in the code snippet, so it was important to be fixed bef…
Browse files Browse the repository at this point in the history
…ore sending around the document
  • Loading branch information
rafopar committed Aug 22, 2023
1 parent 3fcf241 commit 797dd8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Here is a simple snippet of the code that shows for the given recon particle how
/*
* Check for a charged track
*/
if (recp.charge != 0 && recp.pid != 0 ) {
if (charge != 0 && pid != 0 ) {
// mcind is the index of MC particle in the MC::Particle bank so you can use it to retrieve any variable from the MC::Particle bank
float px_MC_Matched = bMCPart.getFloat("px", mcind); // bMCPart is defined in the code as hipo::bank bMCPart(factory.getSchema("MC::Particle"));
...
Expand Down

0 comments on commit 797dd8e

Please sign in to comment.