Skip to content

Bhadron and Bhadron daughter #41

@davidwalter2

Description

@davidwalter2

I had a crash when running the deepNtuplizer and found some part in the code which either I did not understand at all or may be problematic.
The part I am talking about is in DeepNTuples/DeepNtuplizer/src/ntuple_JetInfo.cc
from line 168 to 211. There is a case that the Bhadron_daughter_ vector gets no push_back, but the Bhadron_ gets one. This happens when the most inner if conditional statement gets a false.

From this it follows that we have more objects in the std::vector Bhadron_ then in Bhadron_daughter_.
This is problematic for example in line 393 to 410 where every B hadron should have a daughter (or should be mapped to itself) and they should be filled in the same order. It can come to a crash if the iterIndex is bigger then the length of the Bhadron_daughter vector.

Best regards,
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions