Commit 404fae08 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Resolve "Fill association simID with `part.id()` instead of `part.getObjectID().index`"

parent 1723867b
......@@ -119,7 +119,7 @@ public:
// rec_part.covMatrix() // @TODO: covariance matrix on 4-momentum
// Also write MC <--> truth particle association
auto rec_assoc = assoc.create();
rec_assoc.setSimID(best_match);
rec_assoc.setSimID(mc[best_match].id());
rec_assoc.setWeight(1);
rec_assoc.setRec(rec_part);
......
......@@ -202,7 +202,7 @@ private:
rec_part.setGoodnessOfPID(1.);
rec_part.setPDG(part.getPDG());
Assoc assoc;
assoc.setSimID(part.getObjectID().index);
assoc.setSimID(part.id());
assoc.setWeight(1.);
assoc.setRec(rec_part);
......@@ -377,7 +377,7 @@ private:
rec_part.setGoodnessOfPID(1); // perfect PID
rec_part.setPDG(part.getPDG());
Assoc assoc;
assoc.setSimID(part.getObjectID().index);
assoc.setSimID(part.id());
assoc.setWeight(1.);
assoc.setRec(rec_part);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment