Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
HPSMaterialManager.java | +38 | added 1.1 |
Material manager extending lcsim version to allow simple way of removing MS in SeedTracker.
diff -N HPSMaterialManager.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ HPSMaterialManager.java 26 Nov 2012 03:16:24 -0000 1.1 @@ -0,0 +1,38 @@
+/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.lcsim.hps.recon.tracking; + +import java.util.ArrayList; +import java.util.List; +import org.lcsim.recon.tracking.seedtracker.MaterialManager; +import org.lcsim.recon.tracking.seedtracker.MaterialXPlane; + + + +/** + * + * Simple way to remove multiple scattering in HPS tracker + * by returning empty XPlanes that are used to describe the scatters + * + * @author phansson + */ +public class HPSMaterialManager extends MaterialManager { + + private boolean _includeMS; + private final static List<MaterialXPlane> _emptyMaterialXPlaneList = new ArrayList<MaterialXPlane>(); + public HPSMaterialManager() { + super(); + this._includeMS = true; + } + public HPSMaterialManager(boolean includeMS) { + super(); + this._includeMS = includeMS; + } + @Override + public List<MaterialXPlane> getMaterialXPlanes() { + return this._includeMS ? super.getMaterialXPlanes() : _emptyMaterialXPlaneList; + } + +}
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