Print

Print


Commit in GeomConverter/src/org/lcsim/detector on MAIN
SubdetectorType.java+2-11.1 -> 1.2
JM

GeomConverter/src/org/lcsim/detector
SubdetectorType.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- SubdetectorType.java	2 Jul 2008 22:52:18 -0000	1.1
+++ SubdetectorType.java	2 Jul 2008 23:39:26 -0000	1.2
@@ -67,6 +67,7 @@
 		BarrelType barrel = BarrelType.UNKNOWN;
 		
 		subdetectorName = subdetectorName.toLowerCase();
+		System.out.println("subdetectorName="+subdetectorName);
 		
 		if (subdetectorName.contains("endcap"))
 			barrel = BarrelType.ENDCAP;
@@ -79,7 +80,7 @@
 			system = SystemType.SILICON_TRACKER;
 		else if (subdetectorName.startsWith("tpc"))
 			system = SystemType.TPC;
-		else if (subdetectorName.startsWith("ecal") || subdetectorName.startsWith("emcal"))
+		else if (subdetectorName.startsWith("ecal") || subdetectorName.startsWith("em"))
 			system = SystemType.ECAL;
 		else if (subdetectorName.startsWith("hcal") || subdetectorName.startsWith("had"))
 			system = SystemType.HCAL;
CVSspam 0.2.8