hep.lcd.recon.tracking
Class AbsTracker

java.lang.Object
  |
  +--hep.lcd.util.driver.AbstractProcessor
        |
        +--hep.lcd.recon.tracking.AbsTracker
Direct Known Subclasses:
COMBReco, TPCReco

public abstract class AbsTracker
extends AbstractProcessor
implements Tracker

Picks up LCD events within JAS framework and passes 3D points to pattern recognition software.

Source Code:
AbsTracker.java

Field Summary
protected  TrackFinder finder
           
protected  TrkFitter fitter
           
protected  int[] ilon
           
protected  int[] ipoi
           
protected  boolean[] KFlag
           
 int MaxLayers
           
protected  int MaxLevel
           
protected  int MaxPoints
           
protected  int MinLevel
           
protected  int NLayers
           
protected  int NTracks
           
protected  Specifications specs
           
protected  TrackerHit[] tcphit
           
protected  double[] x
           
protected  double[] y
           
protected  double[] z
           
 
Fields inherited from class hep.lcd.util.driver.AbstractProcessor
context
 
Constructor Summary
AbsTracker()
           
AbsTracker(int MaxPoints, Specifications specs, TrackFinder finder)
           
AbsTracker(int MaxPoints, Specifications specs, TrackFinder finder, boolean hist)
           
 
Method Summary
 int assignPoints(int it, int nLayers, double Ddzax, double Dmasu, int MaxPts, int[][] ipnt, double[] Sang, double[] Chis, double[] ChisN)
          Assigns given points to the track.
 boolean fitSuccess(int it)
           
 double getChi2(int it)
           
 double[][] getErrMatr(int it)
           
 TrackFinder getFinder()
           
 boolean[] getFlag()
          returns array of markers of used hits
 double getFrHtsSameMC(int itrk)
           
 TrackerHit[] getHits()
           
 int[] getIlon()
          returns number of points in each layer
 int[] getIpoi()
          returns array of starting point index for each layer
 MCParticle getMCParticle(int itrk)
           
 double getNDF(int it)
           
 int getNPoints(int itrk)
          Get number of points on a track.
 int getNTracks()
          Get number of track found.
 MCParticle getPointMCParent(int itrk, int ipnt)
           
 Specifications getSpecifications()
          Get tracker specifications.
 TrackerHit getTrkHit(int itrk, int ipnt)
           
abstract  int getTrkHitID(int it, int ip)
          this ID is unique for any point in tracking system
 double[] getTrkParam(int itrk)
          Get track parameters.
 double[] getTrkPoint(int itrk, int ipnt)
          Get a space point on the track.
abstract  String getType()
          Get type of Tracker.
 double[] getX()
          returns pool of x-cordinates of hits
 double[] getY()
          returns pool of y-cordinates of hits
 double[] getZ()
          returns pool of z-cordinates of hits
 void process(LCDEvent event)
          Called by the driver when this processor should process an event.
 void putFrHtsSameMC(int itrk, double fr)
           
 void replaceTrkPrms(int itrk, double[] newpar)
           
 void setFitter(TrkFitter ftr)
           
 void setMCParticle(int itrk, MCParticle mcp)
           
 void setupParameters()
          Setup Tracker parameters.
 void updateFitStatus(int itrk, TrkFitter ftr)
           
 
Methods inherited from class hep.lcd.util.driver.AbstractProcessor
clearContext, getDebugLevel, getDebugStream, getHistogramLevel, getName, getParameterFile, getParameters, getParameters, getRandom, histogram, init, setContext, setDetector, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.lcd.util.driver.Processor
clearContext, getName, setContext, setDetector, start, stop
 

Field Detail

MaxLayers

public final int MaxLayers

specs

protected Specifications specs

finder

protected TrackFinder finder

fitter

protected TrkFitter fitter

NLayers

protected int NLayers

MaxPoints

protected int MaxPoints

MinLevel

protected int MinLevel

MaxLevel

protected int MaxLevel

x

protected double[] x

y

protected double[] y

z

protected double[] z

KFlag

protected boolean[] KFlag

ipoi

protected int[] ipoi

ilon

protected int[] ilon

tcphit

protected TrackerHit[] tcphit

NTracks

protected int NTracks
Constructor Detail

AbsTracker

public AbsTracker()

AbsTracker

public AbsTracker(int MaxPoints,
                  Specifications specs,
                  TrackFinder finder)

AbsTracker

public AbsTracker(int MaxPoints,
                  Specifications specs,
                  TrackFinder finder,
                  boolean hist)
Method Detail

setupParameters

public void setupParameters()
Setup Tracker parameters.
Specified by:
setupParameters in interface Tracker

getFinder

public TrackFinder getFinder()
Specified by:
getFinder in interface Tracker

setFitter

public void setFitter(TrkFitter ftr)
Specified by:
setFitter in interface Tracker

getX

public double[] getX()
Description copied from interface: Tracker
returns pool of x-cordinates of hits
Specified by:
getX in interface Tracker

getY

public double[] getY()
Description copied from interface: Tracker
returns pool of y-cordinates of hits
Specified by:
getY in interface Tracker

getZ

public double[] getZ()
Description copied from interface: Tracker
returns pool of z-cordinates of hits
Specified by:
getZ in interface Tracker

getFlag

public boolean[] getFlag()
Description copied from interface: Tracker
returns array of markers of used hits
Specified by:
getFlag in interface Tracker

getIpoi

public int[] getIpoi()
Description copied from interface: Tracker
returns array of starting point index for each layer
Specified by:
getIpoi in interface Tracker

getIlon

public int[] getIlon()
Description copied from interface: Tracker
returns number of points in each layer
Specified by:
getIlon in interface Tracker

getHits

public TrackerHit[] getHits()
Specified by:
getHits in interface Tracker

getSpecifications

public Specifications getSpecifications()
Get tracker specifications.
Specified by:
getSpecifications in interface Tracker

getType

public abstract String getType()
Get type of Tracker.
Specified by:
getType in interface Tracker

getTrkHitID

public abstract int getTrkHitID(int it,
                                int ip)
this ID is unique for any point in tracking system
Specified by:
getTrkHitID in interface Tracker

getNTracks

public int getNTracks()
Get number of track found.
Specified by:
getNTracks in interface Tracker

getTrkParam

public double[] getTrkParam(int itrk)
Get track parameters.
Specified by:
getTrkParam in interface Tracker

replaceTrkPrms

public void replaceTrkPrms(int itrk,
                           double[] newpar)
Specified by:
replaceTrkPrms in interface Tracker

updateFitStatus

public void updateFitStatus(int itrk,
                            TrkFitter ftr)
Specified by:
updateFitStatus in interface Tracker

getNPoints

public int getNPoints(int itrk)
Get number of points on a track.
Specified by:
getNPoints in interface Tracker

getTrkPoint

public double[] getTrkPoint(int itrk,
                            int ipnt)
Get a space point on the track.
Specified by:
getTrkPoint in interface Tracker

getPointMCParent

public MCParticle getPointMCParent(int itrk,
                                   int ipnt)

getMCParticle

public MCParticle getMCParticle(int itrk)
Specified by:
getMCParticle in interface Tracker

setMCParticle

public void setMCParticle(int itrk,
                          MCParticle mcp)
Specified by:
setMCParticle in interface Tracker

getFrHtsSameMC

public double getFrHtsSameMC(int itrk)
Specified by:
getFrHtsSameMC in interface Tracker

putFrHtsSameMC

public void putFrHtsSameMC(int itrk,
                           double fr)
Specified by:
putFrHtsSameMC in interface Tracker

getTrkHit

public TrackerHit getTrkHit(int itrk,
                            int ipnt)
Specified by:
getTrkHit in interface Tracker

getChi2

public double getChi2(int it)
Specified by:
getChi2 in interface Tracker

getNDF

public double getNDF(int it)
Specified by:
getNDF in interface Tracker

getErrMatr

public double[][] getErrMatr(int it)
Specified by:
getErrMatr in interface Tracker

fitSuccess

public boolean fitSuccess(int it)
Specified by:
fitSuccess in interface Tracker

assignPoints

public int assignPoints(int it,
                        int nLayers,
                        double Ddzax,
                        double Dmasu,
                        int MaxPts,
                        int[][] ipnt,
                        double[] Sang,
                        double[] Chis,
                        double[] ChisN)
Assigns given points to the track.
Specified by:
assignPoints in interface Tracker

process

public void process(LCDEvent event)
Description copied from interface: Processor
Called by the driver when this processor should process an event. If the processor produces new output it should add it to the event.
Specified by:
process in interface Processor
Following copied from interface: hep.lcd.util.driver.Processor
Parameters:
event - The event to process


The LCD Group