empty_events.fcl
Go to the documentation of this file.
1 #
2 # File: empty_events.fcl
3 # Purpose: Generates empty events with a timestamp.
4 # Date: March 15, 2017
5 # Author: Gianluca Petrillo (petrillo@fnal.gov)
6 # Description:
7 #
8 # An empty event with a timestamp is a container whose purpose is to "fix" the
9 # random numbers generated for this event. This is achieved on jobs which use
10 # the "perEvent" policy of NuRandomService, which bases its random seeds on
11 # event timestamp.
12 #
13 # Note that if the timestamp plugin takes the timestamp from the system clock,
14 # that clock must have a very good resolution, since art will take little time
15 # from an event to the next, and their tiem stamps must be different.
16 # This should not be a problem with `GeneratedEventTimestamp` plugin, whose
17 # clock resolution is supposed to be at the nanosecond level.
18 # Also note that if files are produced in different jobs, there is a faint
19 # chance that two empty events have the same time stamp. If the events have
20 # same time stamp *and* event ID, they'll get the same random seed and will be
21 # duplicate of each other.
22 #
23 # Dependencies: none
24 #
25 # Example:
26 # The command:
27 #
28 # lar -c empty_events.fcl -n 100 -o 'emptyevents-%tc.root'
29 #
30 # will create 100 empty events in a file named 'emptyevents-%tc.root', where %tc
31 # is replaced by `RootOutput` module with the usual creation time of the file.
32 # Note that the creation time is in seconds, so for batch jobs you have to make
33 # sure the output file names are actually different.
34 #
35 
36 source: {
37  module_type: EmptyEvent
38  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
39 }