Skip to content

weights missing from ROOT tree generated by gen_amp_V2 #424

Closed

Description

@mashephe

static_cast< DataWriter* >( new ROOTDataWriter( outName ) ) );

Ilia reported that weights are not written to the ROOT treen generated by gen_amp_V2 unless the fsroot tree format is used. The reason for this appears to be in the different implementations of the data writers. The FSROOTDataWriter writes the weights by default. The ROOTDataWriter needs to have an optional argument set to "true" in order to write the weight. This line in gen_amp_V2 does not set that line.

Activity

  1. iljatt commented on Nov 6, 2026

    @iljatt
    Contributor

    Hello, Matt,

    I found that the default ROOTDataWriter doesn't write a weight branch, as seen from line 24

    Should then there be a reason to skip writing the branch weight in ROOTDataWriter ?
    Will it be enough just to add missing arguments in gen_amp_V2, where it calls the data writer line 372 ?

  2. mashephe commented on Nov 8, 2026

    @mashephe
    ContributorAuthor

    Yes, check ROOTDataWriter.h -- I think you just need to add two extra arguments: "true" , "true" The second argument is the change from default behavior and is the one that will write the weight.

  3. mashephe commented on Nov 9, 2026

    @mashephe
    ContributorAuthor

    Fixed with #425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions