MarlinTPC  1.2.0
Public Member Functions | Static Public Member Functions | List of all members
marlintpc::LinearRegressionProcessor Class Reference

LinearRegressionProcessor performs a linear regression on the hits in seed tracks. More...

#include <LinearRegressionProcessor.h>

Inheritance diagram for marlintpc::LinearRegressionProcessor:

Public Member Functions

 LinearRegressionProcessor ()
 Default constructor.
 
 ~LinearRegressionProcessor ()
 Destructor.
 
Processor * newProcessor ()
 Return a new instance of this processor.
 
void init ()
 Called at the begin of the job before anything is read.
 
void processRunHeader (lcio::LCRunHeader *run)
 Called once per run to process the event's header.
 
virtual void processEvent (lcio::LCEvent *evt)
 Called for every event - the working horse.
 
virtual void check (lcio::LCEvent *evt)
 Called for every event - right after processEvent() has been called for all processors.
 
virtual void end ()
 Called after data processing for clean up in the inverse order of the init() method so that resources allocated in the first processor also will be available for all following processors.
 

Static Public Member Functions

static bool compareHit (const std::pair< TrackerHit *, double > &pair1, const std::pair< TrackerHit *, double > &pair2)
 

Detailed Description

LinearRegressionProcessor performs a linear regression on the hits in seed tracks.

It calculates the track parameters for a straight line. The linear regression is an analytical calculation, but equivalent to a chi^2 fit. Does not need seed tracks, so it can directly work on track candidates. Orientation of the track can be either along x- or y-axis.

Output

Parameters
InputTrackCandidatesThe the name of the input collection of track candidates (default: TPCTrackCandidates)
OutputTracksThe name of the collection the straight tracks be stored under (default: TPCTracks)
SetOutputTransientIf not 0 the output collection is set transient (default: 0)

The documentation for this class was generated from the following files: