Fixed an issue in which the csv logger using MC truth information TruthInteraction.truth_primary_counts rather than TruthInteraction.primary_counts for counting TruthInteraction primary particles.
In particular, when using analysis.producers.scripts to log information to csvs, using the old behavior will have the following effect:
When using the adjust_interaction_topology post-processor to apply cuts and modify the TruthInteraction visible topology, the changes will not be applied to truth_primary_counts. This means the adjustment to TruthInteraction visible topology from the adjust_interaction_topology post-processor will not be saved to the output csvs.
The fix will separate truth_primary_counts from primary_counts as the following:
Here, any changes to the visible topology from applying cuts (adjust_interaction_topology) will be applied to count_primary_particles, whereas count_truth_primary_particles will always log MC truth information.
Fixed an issue in which the csv logger using MC truth information
TruthInteraction.truth_primary_counts
rather thanTruthInteraction.primary_counts
for countingTruthInteraction
primary particles.In particular, when using
analysis.producers.scripts
to log information to csvs, using the old behavior will have the following effect:adjust_interaction_topology
post-processor to apply cuts and modify theTruthInteraction
visible topology, the changes will not be applied totruth_primary_counts
. This means the adjustment toTruthInteraction
visible topology from theadjust_interaction_topology
post-processor will not be saved to the output csvs.The fix will separate
truth_primary_counts
fromprimary_counts
as the following:Here, any changes to the visible topology from applying cuts (
adjust_interaction_topology
) will be applied tocount_primary_particles
, whereascount_truth_primary_particles
will always log MC truth information.