3 # Purpose: Prints the total protons on target from a given input set.
5 # Author: Gianluca Petrillo (petrillo@slac.stanford.edu)
12 # This job runs an analyzer across all the input files, and it prints in
13 # `POTsummary.txt` the total number of protons on target from the `generator`
14 # data products and the summary run by run.
20 # lar -c POTsummary.fcl -S datafiles.list
22 # will produce a `POTsummary.txt` file with all information from the art/ROOT
23 # files in the `datafiles.list` file list.
29 # * message facility service
35 # Input files are required to have a `sumdata::POTSummary` data product with
36 # label `generator` (which is a de facto standard for LArSoft neutrino
43 # * `POTsummary.txt`: text file with the summary of POT from the input dataset.
49 # 20200429 (petrillo@slac.stanford.edu) [v1.0]
54 process_name: POTsummary
63 # grab all the "POTsummary" messages and put them in POTsummary.txt
66 POTsummary: { limit: -1 }
71 filename: "POTsummary.txt"
75 # standard output console also includes the summary.
93 module_type: POTaccumulator
95 # tag for data product with POT summary information (default: "generator")
96 SummaryTag: "generator"
98 # the same stream is used for both run-level and global summary
99 # (thus, the former is also enabled)
100 SummaryCategory: "POTsummary"
101 RunSummaryCategory: "POTsummary"
106 summaries: [ potsummary ]