hep.lcd.recon.tracking.fitters.klm
Class AbsKLMTrackFitter

java.lang.Object
  |
  +--hep.lcd.recon.tracking.fitters.klm.AbsKLMTrackFitter
Direct Known Subclasses:
KLMFitTrack

public abstract class AbsKLMTrackFitter
extends Object

Low level interface to the MCFast KLM track fitter. This class should really be wrapped in some more code to make the interface a little easier to use (more "Object Oriented").

Source Code:
AbsKLMTrackFitter.java

Field Summary
static int DEV_DRIFTBARREL
           
static int DEV_DRIFTPLANE
           
static int DEV_EMCAL
           
static int DEV_HADCAL
           
static int DEV_MUON
           
static int DEV_PIXELBARREL
           
static int DEV_PIXELPLANE
           
static int DEV_SILBARREL
           
static int DEV_SILDISK
           
static int TRACE_ABSORB
           
static int TRACE_CALOR
           
static int TRACE_CONE
           
static int TRACE_DECAY
           
static int TRACE_DUMMY
           
static int TRACE_PAIR
           
static int TRACE_PROD
           
static int TRACE_RPLANE
           
static int TRACE_SCAT
           
static int TRACE_SHOWER
           
static int TRACE_ZPLANE
           
 
Constructor Summary
AbsKLMTrackFitter()
           
 
Method Summary
static void addNode(int type, double[] x, double[] normal, int sort_key, double radl, double dedx, boolean hit_ok, int dev_type, double[] pos, double[] dircos, double meas_exact, double meas, double sig)
          Add a node to the track fit
static KLMTrackFit fitTrack(double mass, double field, KLMTrackParam c_seed)
          Do the fit
static void newTrackFit(int eventNumber, int TrackNumber, double[] v)
          Initialize for a new track fit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_RPLANE

public static final int TRACE_RPLANE

TRACE_ZPLANE

public static final int TRACE_ZPLANE

TRACE_CONE

public static final int TRACE_CONE

TRACE_PROD

public static final int TRACE_PROD

TRACE_DECAY

public static final int TRACE_DECAY

TRACE_PAIR

public static final int TRACE_PAIR

TRACE_ABSORB

public static final int TRACE_ABSORB

TRACE_CALOR

public static final int TRACE_CALOR

TRACE_SHOWER

public static final int TRACE_SHOWER

TRACE_DUMMY

public static final int TRACE_DUMMY

TRACE_SCAT

public static final int TRACE_SCAT

DEV_SILBARREL

public static final int DEV_SILBARREL

DEV_SILDISK

public static final int DEV_SILDISK

DEV_DRIFTBARREL

public static final int DEV_DRIFTBARREL

DEV_DRIFTPLANE

public static final int DEV_DRIFTPLANE

DEV_PIXELBARREL

public static final int DEV_PIXELBARREL

DEV_PIXELPLANE

public static final int DEV_PIXELPLANE

DEV_EMCAL

public static final int DEV_EMCAL

DEV_HADCAL

public static final int DEV_HADCAL

DEV_MUON

public static final int DEV_MUON
Constructor Detail

AbsKLMTrackFitter

public AbsKLMTrackFitter()
Method Detail

newTrackFit

public static void newTrackFit(int eventNumber,
                               int TrackNumber,
                               double[] v)
Initialize for a new track fit
Parameters:
eventNumber - Used for diagnostic purposes
trackNumber - Used for diagnostic purposes
v - x,y,z of report point

addNode

public static void addNode(int type,
                           double[] x,
                           double[] normal,
                           int sort_key,
                           double radl,
                           double dedx,
                           boolean hit_ok,
                           int dev_type,
                           double[] pos,
                           double[] dircos,
                           double meas_exact,
                           double meas,
                           double sig)
Add a node to the track fit
Parameters:
type - A trace type
x - The point at which the track intersects the measurement device.
normal - The normal to the detector surface/scattering surface at the point x.
sort_key - A key with which to sort the trace points. The point at which the track started and other points get progressively larger along the outward trajectory.
radl - The thickness of the scattering material in units of radiation length
dedx - The amount of energy lost in the scattering material by a minimum ionizing particle at normal incidence. ( GeV )
hit_ok - Is there a hit to add or not?
dev_type - Device type
pos - For most detectors this is the origin of the local coordinate system. For drift chambers it is a point on the wire.
dircos - The direction cosines of the measurement.
meas_exact - The "true" value of the measured quantity.
meas - The smeared value of the measured quantity
sig - The resolution to be used in the fit

fitTrack

public static KLMTrackFit fitTrack(double mass,
                                   double field,
                                   KLMTrackParam c_seed)
                            throws KLMFitError
Do the fit
Parameters:
mass - The mass to use for the particle
field - The B field (in Tesla)
c_seed - The initial track parameters


The LCD Group