Skip to content

Commit 1cd4fb9

Browse files
authored
Merge pull request #87 from JeffersonLab/slowinit
netbeans thinks this was inefficient
2 parents de733d5 + 6509b85 commit 1cd4fb9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/org/clas/detectors/DCmonitor.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
*/
1717

1818
public class DCmonitor extends DetectorMonitor {
19-
19+
2020
public IndexedTable tt = null;
2121
public IndexedTable reverse = null;
22-
2322

2423
public DCmonitor(String name) {
2524
super(name);
@@ -28,7 +27,6 @@ public DCmonitor(String name) {
2827
this.init(false);
2928
}
3029

31-
3230
@Override
3331
public void createHistos() {
3432

@@ -137,9 +135,9 @@ private void getReverseTT(int run) {
137135
System.err.print("Inverting DC translation table, this may take a few seconds ...");
138136
reverse = new IndexedTable(4, "crate/I:slot/I:channel/I");
139137
for(int row=0; row<tt.getRowCount(); row++) {
140-
int crate = Integer.valueOf((String)tt.getValueAt(row,0));
141-
int slot = Integer.valueOf((String)tt.getValueAt(row,1));
142-
int channel = Integer.valueOf((String)tt.getValueAt(row,2));
138+
int crate = Integer.parseInt((String)tt.getValueAt(row,0));
139+
int slot = Integer.parseInt((String)tt.getValueAt(row,1));
140+
int channel = Integer.parseInt((String)tt.getValueAt(row,2));
143141
int sector = tt.getIntValue("sector", crate,slot,channel);
144142
int layer = tt.getIntValue("layer", crate,slot,channel);
145143
int comp = tt.getIntValue("component", crate,slot,channel);

0 commit comments

Comments
 (0)