MarlinTPC
1.2.0
|
LinearRegressionProcessor performs a linear regression on the hits in seed tracks. More...
#include <LinearRegressionProcessor.h>
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) |
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.
InputTrackCandidates | The the name of the input collection of track candidates (default: TPCTrackCandidates) |
OutputTracks | The name of the collection the straight tracks be stored under (default: TPCTracks) |
SetOutputTransient | If not 0 the output collection is set transient (default: 0) |