Print

Print


Author: [log in to unmask]
Date: Sat Feb 14 13:46:39 2015
New Revision: 2148

Log:
Fix compilation error.

Modified:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/CalorimeterHitUtilities.java

Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/CalorimeterHitUtilities.java
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/CalorimeterHitUtilities.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/CalorimeterHitUtilities.java	Sat Feb 14 13:46:39 2015
@@ -35,7 +35,7 @@
     }    
     
     public static EcalCrystal findCrystal(CalorimeterHit hit) {
-        return (EcalCrystal)hit.getMetaData().getIDDecoder().getSubdetector().getDetectorElement().findDetectorElement(hit.getIdentifier());
+        return (EcalCrystal)hit.getSubdetector().getDetectorElement().findDetectorElement(hit.getIdentifier()).get(0);
     }
     
     public static IGeometryInfo findGeometryInfo(CalorimeterHit hit) {