next up previous contents
Next: Calibration Consumers Up: Some Advanced Features Previous: Input Filtering Selection

Multiple Parameter Sets

It is possible that some of the code to define physics objects will have more than one set of default parameters. For example, the missing transverse energy group and the electron group might use the same algorithms to define electrons, but because of different background processes might need different values of some cuts. To handle this possibility, ANALYSIS_CONTROL provides a means of running the same module with more than one parameter set. A module that allows multiple parameter sets must declare this fact to the analysis driver. This can be done from BUILD_JOB using the /PARAMETER_SET[=n] qualifier on the DEFINE command (where n is the number of parameter sets the module allows). The user can then pick the parameter set he wishes run as part of the USE_MODULES command. For example:

USE_MODULES MYANL1/PARAMETER_SET=<n>

specifies that module MYANL1 should be run using the nth parameter set. The program will signal an error if MYANL1 has not declared that it recognizes at least n parameter sets. Note that the parameter set qualifier can take the parameter set name as well. In fact anywhere you can specify a parameter set number you can specify a parameter name instead.

When checking whether a module has already been run for a given event, the package tests independently for each parameter set.

It is the responsibility of the module's author to poll ANALYSIS_CONTROL to determine which parameter set should be used. This polling is done using the command:

PARSET = ANGPAR() or

PARSET = ANALYSIS_GET_PARAMETER_SET()

where PARSET is the parameter set the module should use.



sexton@fnal.gov