We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 330f489 commit b638f92Copy full SHA for b638f92
common-tools/clas-detector/src/main/java/org/jlab/detector/calib/utils/RCDBProvider.java
@@ -22,11 +22,14 @@ public synchronized RCDBConstants getConstants(int run) {
22
if (!cache.containsKey(run)) cache.put(run, provider.getConstants(run));
23
return cache.get(run);
24
}
25
+ public Double getDouble(int run, String key) {
26
+ return getConstants(run).getDouble(key);
27
+ }
28
public Double getTorusScale(int run) {
- return getConstants(run).getDouble("torus_scale");
29
+ return getDouble(run, "torus_scale");
30
31
public Double getSolenoidScale(int run) {
- return getConstants(run).getDouble("solenoid_scale");
32
+ return getDouble(run, "solenoid_scale");
33
34
35
0 commit comments