You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* patch admonish syntax
* first few sections of usage guide with python rename
* notes on design
* point out flexibility in how parameters can be set
* start rewriting sim area
* updates as i'm rereading the sim section
* make sure standalone works
Copy file name to clipboardExpand all lines: src/using/config/intro.md
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ There are two processing modes that `fire` can run in which are defined by the p
33
33
If there are no input data files, then `fire` is in _Production Mode_ while if there are input data files, then
34
34
`fire` is in _Reconstruction Mode_. The names of these two modes originate from how `fire` is used in LDMX research.
35
35
36
-
[^1]: In this context, an "input data file" is a data file previously produced by `fire`. There can be other types of data that are "input" into `fire` but unless `fire` is actually treating those input files as a reference, `fire` is considered to be in "Production Mode". See the `inputFiles` configuration parameter below.
36
+
[^1]: In this context, an "input data file" is a data file previously produced by `fire`. There can be other types of data that are "input" into `fire` but unless `fire` is actually treating those input files as a reference, `fire` is considered to be in "Production Mode". See the `input_files` configuration parameter below.
37
37
38
38
## The Process Object
39
39
@@ -44,31 +44,44 @@ As an example, the pass name is `practice`, so the line which constructs the Pro
44
44
p = ldmxcfg.Process("practice")
45
45
```
46
46
47
+
~~~admonish warning title="Parameter Renames"
48
+
As part of our drive to have better organized Python configuratin modules, we applied common
49
+
Python linting and formatting rules to ldmx-sw. This led to many parameters being changed
50
+
from `camelCase` to `snake_case` marked by the release of v4.6.0 of ldmx-sw.
51
+
52
+
If you are using a version of ldmx-sw prior to v4.6.0, then you will likely need to change
53
+
any `snake_case` parameter name in this example to `camelCase` although that is not true
54
+
in all cases.
55
+
56
+
The documentation written here does not necessarily fix this rename in all places.
57
+
Please contribute if you find a place that needs to be updated!
58
+
~~~
59
+
47
60
Here is a list of some of the most important process options and what they control.
48
61
It is encouraged to browse the python modules themselves for all the details,
49
62
but you can also call `help(ldmxcfg.Process)` in `python` to see the documentation.
50
63
51
-
-`passName` (string)
64
+
-`pass_name` (string)
52
65
-**required** Given in the constructor, tag for the process as a whole.
53
66
- For example: `"10MeVSignal"` for a simulation of a 10MeV A'
54
67
-`run` (integer)
55
68
- Unique number identifying the run
56
69
- For example: `9001`
57
70
- Default is `0`
58
-
-`maxEvents` (integer)
71
+
-`max_events` (integer)
59
72
- Maximum number of events to run for
60
73
- Required for Production Mode (no input files)
61
74
- In Reconstruction Mode, the number of events that are run is the number of events in the input files unless this parameter is positive and less than the input number.
62
75
- For example: `9000`
63
-
-`outputFiles` (list of strings)
76
+
-`output_files` (list of strings)
64
77
- List of files to output events to
65
78
- Required to be exactly one for Production Mode, and either exactly one or exactly the number of input files in Reconstruction Mode.
66
79
- For example: `[ "output.root" ]`
67
-
-`inputFiles` (list of strings)
80
+
-`input_files` (list of strings)
68
81
- List of files to read events in from
69
82
- Required if no output files are given
70
83
- For example: `[ "input.root" ]`
71
-
-`histogramFile` (string)
84
+
-`histogram_file` (string)
72
85
- Name of file to put histograms and ntuples in
73
86
- For example: `"myHistograms.root"`
74
87
-`sequence` (list of event processors)
@@ -79,19 +92,22 @@ but you can also call `help(ldmxcfg.Process)` in `python` to see the documentati
79
92
- List of drop/keep rules to help ldmx-sw know which collections to put into output file(s)
80
93
- Slightly complicated, see the [documentation of EventFile](https://ldmx-software.github.io/ldmx-sw/classframework_1_1EventFile.html)
81
94
- For example: `[ "drop .*SimHits.*" , "keep Ecal.*" ]`
82
-
-`skimDefaultIsKeep` (bool)
95
+
-`skim_default_is_keep` (bool)
83
96
- Should the process keep events unless told to drop by a processor?
84
97
- Default is `True`: events will be kept unless processors use `setStorageHint`.
85
-
- Use `skimDefaultIsDrop()` or `skimDefaultIsSave()` to modify
86
-
-`skimRules` (list of strings)
98
+
- Use `skim_default_is_drop()` or `skim_default_is_save()` to modify
99
+
-`skim_rules` (list of strings)
87
100
- List of processors to use to decide whether an event should be stored in the output file (along with the default given above).
88
-
- Has a very specific format, use `skimConsider( processorName )` to modify
89
-
-`processorName` is the _instance name_ and not the class name
101
+
- Has a very specific format, use `skim_consider( processorName )` to modify
102
+
-`processor_name` is the _instance name_ and not the class name
90
103
- For example, the Ecal veto chooses whether an event should be kept or not depending on a lot of physics stuff. If you only want the events passing the veto to be saved, you would:
91
104
```python
92
-
p.skimDefaultIsDrop() #process should drop events unless specified otherwise
93
-
p.skimConsider('ecalVeto') #process should listen to storage hints from ecalVeto
105
+
p.skim_default_is_drop() #process should drop events unless specified otherwise
106
+
p.skim_consider('ecalVeto') #process should listen to storage hints from ecalVeto
94
107
```
95
-
-`logFrequency` (int)
108
+
-`log_frequency` (int)
96
109
- How frequently should the processor tell you what event number it is on?
97
110
- Default is `-1` which is never.
111
+
-`logger.term_level` (int)
112
+
- how severe messages should be before they are printed to the terminal
113
+
- default is `2` which is warnings and above, the event number printing is at level `1` (info)
0 commit comments