Skip to content

Commit b638f92

Browse files
baltzelltongtongcao
authored andcommitted
cleanup
1 parent 330f489 commit b638f92

File tree

1 file changed

+5
-2
lines changed
  • common-tools/clas-detector/src/main/java/org/jlab/detector/calib/utils

1 file changed

+5
-2
lines changed

common-tools/clas-detector/src/main/java/org/jlab/detector/calib/utils/RCDBProvider.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ public synchronized RCDBConstants getConstants(int run) {
2222
if (!cache.containsKey(run)) cache.put(run, provider.getConstants(run));
2323
return cache.get(run);
2424
}
25+
public Double getDouble(int run, String key) {
26+
return getConstants(run).getDouble(key);
27+
}
2528
public Double getTorusScale(int run) {
26-
return getConstants(run).getDouble("torus_scale");
29+
return getDouble(run, "torus_scale");
2730
}
2831
public Double getSolenoidScale(int run) {
29-
return getConstants(run).getDouble("solenoid_scale");
32+
return getDouble(run, "solenoid_scale");
3033
}
3134
}
3235

0 commit comments

Comments
 (0)