X-Ray test: Number of triggers is saved to the ROOT file

this should enable calculating hitrates offline