POTsummary.fcl
Go to the documentation of this file.
1 #
2 # File: POTsummary.fcl
3 # Purpose: Prints the total protons on target from a given input set.
4 # Date: April 29, 2020
5 # Author: Gianluca Petrillo (petrillo@slac.stanford.edu)
6 # Version: 1.0
7 #
8 #
9 # Description
10 # ============
11 #
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.
15 #
16 # Example
17 # --------
18 #
19 #
20 # lar -c POTsummary.fcl -S datafiles.list
21 #
22 # will produce a `POTsummary.txt` file with all information from the art/ROOT
23 # files in the `datafiles.list` file list.
24 #
25 #
26 # Dependencies
27 # =============
28 #
29 # * message facility service
30 #
31 #
32 # Input
33 # ======
34 #
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
37 # generators).
38 #
39 #
40 # Output
41 # =======
42 #
43 # * `POTsummary.txt`: text file with the summary of POT from the input dataset.
44 #
45 #
46 # Changes
47 # ========
48 #
49 # 20200429 (petrillo@slac.stanford.edu) [v1.0]
50 # : original version
51 #
52 #
53 
54 process_name: POTsummary
55 
56 
57 services: {
58 
59  message: {
60 
61  destinations: {
62 
63  # grab all the "POTsummary" messages and put them in POTsummary.txt
64  POTsummary: {
65  categories: {
66  POTsummary: { limit: -1 }
67  default: { limit: 0 }
68  }
69  threshold: "INFO"
70  type: "file"
71  filename: "POTsummary.txt"
72  append: false
73  } # POTsummary
74 
75  # standard output console also includes the summary.
76  LogStandardOut: {
77  categories: {
78  default: {}
79  }
80  threshold: "INFO"
81  type: "cout"
82  } # LogStandardOut
83 
84  } # destinations
85  } # message
86 } # services
87 
88 
89 physics: {
90  analyzers: {
91  potsummary: {
92 
93  module_type: POTaccumulator
94 
95  # tag for data product with POT summary information (default: "generator")
96  SummaryTag: "generator"
97 
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"
102 
103  } # potsummary
104  } # analyzers
105 
106  summaries: [ potsummary ]
107 
108 } # physics