1 package org.lcsim.recon.tracking.trfbase; 2 import org.lcsim.recon.tracking.trfbase.Cluster; 3 import org.lcsim.recon.tracking.trfbase.HitGenerator; 4 import org.lcsim.recon.tracking.trfbase.Surface; 5 import org.lcsim.recon.tracking.trfbase.VTrack; 6 7 8 public class HitGeneratorTest extends HitGenerator { 9 10 private SurfTest _srf; 11 private double _min; 12 private double _max; 13 14 15 public HitGeneratorTest( SurfTest srf) 16 { 17 _srf = srf; 18 } 19 20 public HitGeneratorTest( SurfTest srf,long seed) 21 22 { 23 super(seed); 24 _srf = srf; 25 } 26 27 public Surface surface() 28 { 29 return _srf; 30 } 31 32 public Cluster newCluster( VTrack trv, int mcid) 33 { 34 int npred = (int) flat(1.0,10.0) ; 35 return new ClusterTest(_srf,npred); 36 } 37 38 } 39