~sbinet/go-hep

Re: gohep

Sebastien Binet <binet@cern.ch>
Details
Message ID
<CN2YUJFIUBI2.1OGCMVGY1MB0L@clrinfopc42>
DKIM signature
missing
Download raw message
On Thu Sep 22, 2022 at 13:26 CET, Asier Pereiro Castro wrote:
> Hi,
>
> ok sure, that worked. I just wasn't understanding how append works,
> because I saw in the debugger the memory locations initialised but none
> of the events were being saved into the event vector. Then for a set of
> events passing the selection I saw that were appended at the end of the
> slice, and I was expecting a behaviour like std::vector's push_back

yeah,

 slice = append(slice, value)

can be a bit confusing at first (and the wrong 'append(slice, x)' even
more) but, in effect, it's what std::vector<T> does, behind the scene.

don't hesitate to ask if you hit any road block (glad to help!)

and if you end up writing an analysis that uses Go-HEP, you know how to
cite it:

- https://zenodo.org/record/7086470 (DOI: 10.5281/zenodo.7086470)
- https://arxiv.org/pdf/1808.06529.pdf
- https://joss.theoj.org/papers/10.21105/joss.00372

and if you have code that uses Go-HEP (even private code), you just need
to ask and I'll put it in the hall of fame:
- https://go-hep.org/users/#code

cheers,
-s
Reply to thread Export thread (mbox)