arbitrary counters #28
Replies: 1 comment
-
Chanser writes events for every combitorial of every event that passes cuts. So you need to decide it this is when you want to increment your counters. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I want to include some arbitrary counters to have some general stats on my code (eg. how many events have photons detected somewhere other than the FD or FT?; how many dubious photons hit the ECAL while depositing no energy in the PCAL?).
What is the best way to do this in chanser? Specifically, where would you initialise a counter with zero such that it's not reset every event?
It would likely be sufficient to simply print these to screen, but out of interest is it possible to add them to the FINALOUTTREE for future reference?
Beta Was this translation helpful? Give feedback.
All reactions