-
Notifications
You must be signed in to change notification settings - Fork 54
Description
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