Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
HPSSVTCalibrationConstants.java | +7 | -1 | 1.14 -> 1.15 |
Added method to return number of dead channels
diff -u -r1.14 -r1.15 --- HPSSVTCalibrationConstants.java 13 Jul 2012 23:02:57 -0000 1.14 +++ HPSSVTCalibrationConstants.java 27 Jul 2012 18:59:48 -0000 1.15 @@ -15,7 +15,7 @@
/** * * @author Mathew Graham <[log in to unmask]>
- * $Id: HPSSVTCalibrationConstants.java,v 1.14 2012/07/13 23:02:57 omoreno Exp $
+ * $Id: HPSSVTCalibrationConstants.java,v 1.15 2012/07/27 18:59:48 omoreno Exp $
*/ public class HPSSVTCalibrationConstants {
@@ -32,6 +32,7 @@
= new HashMap<Pair<Integer, Integer>, Set<Integer>>(); private static boolean pedestalLoaded = false; private static boolean tpLoaded = false;
+ private static int totalBadChannels = 0;
/** * Default Ctor
@@ -242,6 +243,7 @@
while((line = badChannelReader.readLine()) != null){ // If the line is a comment, skip it if(line.indexOf("#") != -1) continue;
+ totalBadChannels++;
StringTokenizer stringTok = new StringTokenizer(line); while(stringTok.hasMoreTokens()){ int badChannel = Integer.valueOf(stringTok.nextToken());
@@ -408,6 +410,10 @@
else return false; }
+ public static int getTotalBadChannels(){ + return totalBadChannels; + } +
//class to hold calibration constants for a channel; leave fields NaN or null if not known public static class ChannelConstants {
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1