HOWTO merge events from different sources

From GlueXWiki
Revision as of 15:51, 14 July 2017 by Jonesrt (Talk | contribs) (Created page with " In [HOWTO_If all you want to do is to merge hits from multiple events into a single stream, I provided a null event generator called nullgen that you can use to inject empty...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In [HOWTO_If all you want to do is to merge hits from multiple events into a single stream, I provided a null event generator called nullgen that you can use to inject empty events in the place of simfile.hddm, as in the next example below.

$ nullgen -r 30592 -n 1000 -o null1000.hddm $ mcsmear null1000.hddm bgfile1.hddm:1 bgfile2.hddm:1

This command produces a file null1000_smeared.hddm which contains the first 1000 events from bgfile1.hddm merged 1-to-1 with the first 1000 events from bgfile2.hddm. In conjunction with the new evio-hddm converter you wrote, it is now possible to generate arbitrary merges of different types of events.