1616 */
1717
1818public 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