Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Basic Usage

Initialization

The HPS conditions manager is automatically installed by creating a new instance of the DatabaseConditionsManager class.

Code Block
languagejava
themeMidnight
new DatabaseConditionsManager();

This will automatically install the manager as the global conditions manager, which can then be accessed using the following method.

Code Block
languagejava
themeMidnight
DatabaseConditionsManager mgr = DatabaseConditionsManager.getInstance();

Users should not normally need to install their own conditions manager as this is done in the setup of the various job tools, but it may be necessary when writing standalone scripts and command line tools which do not use these classes.


Setup

The conditions system is initialized using the ConditionsManager's setDetector method which takes the name of a detector and a run number.

...