/* TrackReco.java Find and reconstruct tracks. Created by Mike Ronan Dec '98 Picks up LCD events within JAS framework and reconstructs tracks using 3D pattern recognition software. Modified by */ import hep.lcd.recon.tracking.*; import hep.lcd.util.driver.*; /** Picks up LCD events within JAS framework and * reconstructs tracks using 3D pattern recognition software. */ public class TrackReco extends Driver { boolean Hstd = true; public TrackReco() { this(Hstd); } public TrackReco(boolean hist) { System.out.println(""); String text = "TrackReco version 0.9.7"+"\n"+ " Running hep.lcd version "+hep.lcd.Version.getVersion(); System.out.println(text); out.println(text); System.out.println(" Track reconstruction using TPC and CCD detectors - "); // Finds tracks in main tracker. tracker = new hep.lcd.recon.tracking.tpc.TPCReco(true); // Assign Vertex Detector hits to tracks found in main tracker. vertexDetector = new hep.lcd.recon.tracking.ccd.CCDReco(tracker,true); // Add reconstructed tracks to event AddReconTrks addReconTrks = new AddReconTrks(tracker,vertexDetector,true); // Add processes add(tracker); add(vertexDetector); add(addReconTrks); } /** * Used for standalone reconstruction */ public static void main(String[] argv) { try { hep.analysis.Job job = new hep.analysis.Job("TrackReco"); job.setEventSource(new hep.lcd.io.jas.LCDEventSource(argv[0])); job.addEventAnalyzer(new TrackReco()); job.go(); } catch (jas.jds.module.ModuleException x) { x.printStackTrace(); } } Tracker tracker; VertexDetector vertexDetector; }