TrackEstimatorFixed Class Reference

#include <TrackEstimatorFixed.h>

Inheritance diagram for TrackEstimatorFixed:

TrackEstimator List of all members.

Public Member Functions

 TrackEstimatorFixed ()
 ~TrackEstimatorFixed ()
virtual void Config (const AlgConfig &)
virtual TVectorD EstimateTrackParams (FitContext &) const

Private Attributes

Double_t fQoverPInitial
Int_t fVertexOffset

Detailed Description

Set initial value of track momentum to a fixed value of 10 GeV, values of u, v, du/dz, dv/dz from simple estimates.

Author:
Sergei avva@fnal.gov

Definition at line 20 of file TrackEstimatorFixed.h.


Constructor & Destructor Documentation

TrackEstimatorFixed::TrackEstimatorFixed (  ) 

ctor

Definition at line 30 of file TrackEstimatorFixed.cxx.

00030                                          :
00031     fQoverPInitial(-0.1), fVertexOffset(3)
00032 {
00033     TracerSA trace("TrackEstimatorFixed::TrackEstimatorFixed()");
00034 }

TrackEstimatorFixed::~TrackEstimatorFixed (  ) 

dtor

Definition at line 39 of file TrackEstimatorFixed.cxx.

00040 {
00041     TracerSA trace("TrackEstimatorFixed::~TrackEstimatorFixed()");
00042 }


Member Function Documentation

void TrackEstimatorFixed::Config ( const AlgConfig  )  [virtual]

configure filter using given AlgConfig

Implements TrackEstimator.

Definition at line 76 of file TrackEstimatorFixed.cxx.

References fQoverPInitial, fVertexOffset, Registry::GetDouble(), Registry::GetInt(), and Registry::KeyExists().

00077 {
00078     TracerSA trace("TrackEstimatorFixed::Config(const AlgConfig&)");
00079     
00080     if ( ac.KeyExists("EstimatorFixedQPInitial") ) {
00081         fQoverPInitial = ac.GetDouble("EstimatorFixedQPInitial");
00082     }    
00083     if ( ac.KeyExists("EstimatorFixedVertexOffset") ) {
00084         fVertexOffset = ac.GetInt("EstimatorFixedVertexOffset");
00085     }    
00086 }

TVectorD TrackEstimatorFixed::EstimateTrackParams ( FitContext  )  const [virtual]

filter method

Implements TrackEstimator.

Definition at line 47 of file TrackEstimatorFixed.cxx.

References FitContext::fData, fQoverPInitial, fVertexOffset, DataFT::GetDudzlin(), DataFT::GetDvdzlin(), DataFT::GetNPlanes(), DataFT::GetUlin(), DataFT::GetVlin(), ConstFT::kdUdZ, ConstFT::kdVdZ, ConstFT::kQoverP, kU, kV, and ConstFT::NTrackParams.

00048 {
00049     TracerSA trace("TrackEstimatorFixed::EstimateTrackParams"
00050                                                 "(FitContext& fitContext)");
00051     
00052     TVectorD fitEstimate(NTrackParams);
00053     //const DataFT* data = fitContext.GetData();
00054     
00055     fitEstimate(kU) = fitContext.fData.GetUlin(0);
00056     fitEstimate(kV) = fitContext.fData.GetVlin(0);
00057 
00058     if(fitContext.fData.GetNPlanes() > fVertexOffset+1){ 
00059       fitEstimate(kdUdZ) = ( fitContext.fData.GetDudzlin(fVertexOffset) +
00060                              fitContext.fData.GetDudzlin(fVertexOffset+1))/2. ;
00061       fitEstimate(kdVdZ) = ( fitContext.fData.GetDvdzlin(fVertexOffset) + 
00062                              fitContext.fData.GetDvdzlin(fVertexOffset+1))/2. ;
00063     } else {
00064       fitEstimate(kdUdZ) = 0.;
00065       fitEstimate(kdVdZ) = 0.;
00066     }
00067     
00068     // just a fixed momentum
00069     fitEstimate(kQoverP) = fQoverPInitial;
00070     return fitEstimate;
00071 }        


Member Data Documentation

Double_t TrackEstimatorFixed::fQoverPInitial [private]

Definition at line 38 of file TrackEstimatorFixed.h.

Referenced by Config(), and EstimateTrackParams().

Int_t TrackEstimatorFixed::fVertexOffset [private]

Definition at line 39 of file TrackEstimatorFixed.h.

Referenced by Config(), and EstimateTrackParams().


The documentation for this class was generated from the following files:
Generated on Mon Nov 10 00:56:35 2014 for loon by  doxygen 1.4.7