Skip to content
  • Enric Tejedor Saavedra's avatar
    [Exp PyROOT] Use addressof to retrieve the address of fields · 286cac29
    Enric Tejedor Saavedra authored
    In new PyROOT, when the address of a field of a struct is to
    be retrieved, like in this tutorial, addressof should be
    used. Its result can be passed to the Branch pythonization.
    AddressOf in new PyROOT can't be used for that purpose.
    
    In old PyROOT, AddressOf could be used for that purpose, but
    its behaviour was inconsistent. AddressOf(o) returned a buffer
    whose first position contained the address of object o, but
    Address(o, 'field') returned a buffer whose address was the
    address of the field, instead of such address being contained
    in the first position of the buffer.
    286cac29
Loading