Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading all events in simtel file? #260

Closed
moralejo opened this issue Aug 31, 2023 · 4 comments
Closed

Reading all events in simtel file? #260

moralejo opened this issue Aug 31, 2023 · 4 comments

Comments

@moralejo
Copy link

def __iter__(self):
return self.iter_array_events()

The SimTelFile iterator seems to be reading only triggered events.
Is it possible to read also events in which none of the telescopes triggered? Some information (like the true numbers of photoelectrons on the camera) are available and are useful for some purposes.

@maxnoe
Copy link
Member

maxnoe commented Aug 31, 2023

Yes, there is iter_mc_events():

for e in f.iter_mc_events():
    ...

which should do that.

There is also this pull request here: #214

Which is open since a long time, but which we should probably finish... maybe you can try it out and give feedback, if it solves your particular issue

@maxnoe
Copy link
Member

maxnoe commented Aug 31, 2023

I just rebased the #214 branch with the current main, let's see if we can finally get this in

@maxnoe
Copy link
Member

maxnoe commented Aug 31, 2023

I am closing this as a duplicate of #213

@moralejo
Copy link
Author

Ok, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants