Search/Navigation:
Related:
SLAC/EPP/HPS Public
Jefferson Lab/Hall B/HPS Run Wiki
S30XL-LESA/LDMX
HPS uses a database conditions backend which is accessible through the DatabaseConditionsManager.
Typically, conditions information is accessed in the beginning of the job through the Driver class's detectorChanged method.
Code Block | ||||
---|---|---|---|---|
| ||||
public void detectorChanged(Detector detector) {
DatabaseConditionsManager conditionsManager = DatabaseConditionsManager.getInstance();
EcalChannelCollection channels =
conditionsManager.getCachedConditions(EcalChannelCollection.class, "ecal_channels").getCachedData();
System.out.println("got " + channels.size() + " ECal channels");
} |
...