Page History
...
Methods beginrun()
, endrun()
, begincalibcycle()
, and endcalibcycle()
are optional, analysis module does not have to define them and they are called only if defined. Anchor
Two methods evt.put
and evt.get
allow to transfer data between different modules.
- Save new object in event:
evt.put( object, object_name )
– this method is called when any newly evaluated
object
needs to be saved in theevt
store. To access this object from other module it needs to be associated with uniqueobject_name
– string parameter.
...
- Retrieve object from event:
object = evt.putget( object, objectoobject_name )
– this method is called whenobject
needs to be retrieved form theevt
store.
...
Short | Long | Config File | Option type | Default | Description | ||
---|---|---|---|---|---|---|---|
-v | --verbose | verbose | integer | 0 | Command line options do not need any values but can be repeated multiple times, configuration file option accepts single integer number. | ||
-c file | --config=file |
| path | pyana.cfg | Name of the configuration file. | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f21d1eed3eb2092e-7ec8b1e4-4ef1497b-a82da2b9-7ef521d558d488c9a9a22baa"><ac:plain-text-body><![CDATA[ | -C name | --config-name=name |
| string |
| If non-empty string is given then configuration will be read from section | ]]></ac:plain-text-body></ac:structured-macro> |
-l file | --file-list=file | files | path |
| The list of input data files will be read form a given file which must contain one file name per line. | ||
-n number | --num-events=number | num-events | integer | 0 | Maximum number of events to process, this counter will include damaged events too. | ||
-s number | --skip-events=number | skip-events | integer | 0 | number of events to skip | ||
-j name | --job-name=name | job-name | string |
| Sets job name which is accessible to user code via environment method. Default name is based on the input file names. | ||
-m name | --module=name | modules | string |
| User analysis module(s). Command line options can be repeated several times, configuration file option accepts space-separated list of names. | ||
-p number | --num-cpu=number | num-cpu | integer | 1 | Number of processes to run, if greater than 1 then multi-processing mode will be used. |
...