Commit in lcsim/src/org/lcsim/contrib/garfield on MAIN
Const.java-1131.2 removed


lcsim/src/org/lcsim/contrib/garfield
Const.java removed after 1.2
diff -N Const.java
--- Const.java	23 Feb 2006 19:04:55 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,113 +0,0 @@
-package org.lcsim.contrib.garfield;
-
-import java.util.*;
-import org.lcsim.event.*;
-import org.lcsim.event.EventHeader.LCMetaData;
-import org.lcsim.geometry.*;
-
-/**
- * Constants used by Garfield tracking package.
- * Default units (those equal to 1.0) are millimeter, second, Tesla, and GeV.
- *
- * @author  D. Onoprienko
- * @version $Id: Const.java,v 1.2 2006/02/23 19:04:55 onoprien Exp $
- * InternalRelease 2.02.01 Feb 23, 2006
- */
-public class Const {
-  
-  // --- Units :  --------------------------------------------------------------
-  
-  public static double meter;
-  public static double m;
-  public static double centimeter;
-  public static double cm;
-  public static double millimeter;
-  public static double mm;
-  public static double micrometer;
-  
-  public static double second;
-  public static double sec;
-  public static double millisecond;
-  public static double microsecond;
-  public static double nanosecond;
-  
-  public static double Tesla;
-  
-  public static double TeV;
-  public static double GeV;
-  public static double MeV;
-  public static double eV;
-  
-  // -- Physics constants :  ---------------------------------------------------
-  
-  public static double SPEED_OF_LIGHT;
-  
-  // -- Detector parameters :  -------------------------------------------------
-
-  public static int nSubdetectors = 4;
-  
-  public static int codeVXDBarrel     = 0;
-  public static int codeVXDEndcap     = 1;
-  public static int codeTrackerBarrel = 2;
-  public static int codeTrackerEndcap = 3;
-  
-  public static String[] subdetectorName = new String[]{"VertexBarrel","VertexEndcap","TrackerBarrel","TrackerEndcap"};
-  
-  public static int[] nLayers;
-  
-  public static double bField;
-  
-  // -- Initialization :  ------------------------------------------------------
-  
-  static {
-    
-    millimeter = 1.;
-    
-    meter = 1000. * millimeter;
-    m = 1000. * millimeter;
-    centimeter = 10. * millimeter;
-    cm = 10. * millimeter;
-    mm = millimeter;
-    micrometer = 0.001 * millimeter;
-    
-    second = 1.;
-    
-    sec = second;
-    millisecond = 1.e-3 * second;
-    microsecond = 1.e-6 * second;
-    nanosecond = 1.e-9 * second;
-    
-    Tesla = 1.;
-    
-    GeV = 1.;
-    
-    TeV = 1.e3 * GeV;
-    MeV = 1.e-3 * GeV;
-    eV = 1.e-9 * GeV;
-    
-    SPEED_OF_LIGHT = 2.99792458e8 * (meter/second);
-    
-  }
-  
-  public static void initialize(EventHeader event) {
-    
-    if (initialized) return;
-    initialized = true;
-    
-    nLayers = new int[nSubdetectors];
-    Detector detector = event.getDetector();
-    for (int i=0; i < nSubdetectors; i++) {
-      Subdetector subDet = detector.getSubdetector(subdetectorName[i]);
-      nLayers[i] = subDet.getLayering().getNumberOfLayers();
-    }
-    
-    bField = detector.getFieldMap().getField(new double[]{0.,0.,0.})[2];
-    
-    GarfieldTrack.initialize();
-  }
-  
-  // -- Private parts :  -------------------------------------------------------
-  
-  private static boolean initialized = false;
-  
-}
CVSspam 0.2.8