Inconsistent "Register" APIs and semantics in FairRootManager
#1569
Labels
Refactor
Code needs to be reworked
FairRootManager
#1569
There is another issue about branch IO of FairRootManger:
There are two different, independent branch registries:
fAnyBranchMap
andfMap
. These are used by different APIs of FairRootManager:fAnyBranchMap
is used byRegisterAny
andInitObjectAs
.fMap
is used byRegister
andGetObject
.Any branch registered in one way cannot be read by another way.
What's even more "interesting" is that the event header (online run) is always registered in
fMap
but not infAnyBranchMap
. So you may find that you can get a valid event header fromGetObject
but mysteriously nullptr fromInitObjectAs
.Originally posted by @YanzhaoW in #1557 (comment)
The text was updated successfully, but these errors were encountered: