Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
combinedResidFunc Class Reference

#include <combinedResidFunc.h>

+ Inheritance diagram for combinedResidFunc:

Public Member Functions

 combinedResidFunc (vector< const DFDCPseudo * > *pseudopoints, vector< const DCDCTrackHit * > *trackhits, MyTrajectory *trajectory, const DLorentzDeflections *lorentz_def, int level=1)
 
void resid (const HepVector *x, void *data, HepVector *f)
 
void deriv (const HepVector *x, void *data, HepMatrix *J)
 
void residAndDeriv (const HepVector *x, void *data, HepVector *f, HepMatrix *J)
 
unsigned int getN ()
 
unsigned int getP ()
 
void setStoreDetails (bool storeDetailsValue)
 
void clearDetails ()
 
vector< CDCHitDetails * > * getCDCDetails ()
 
vector< FDCHitDetails * > * getFDCDetails ()
 
void setInnerResidFrac (double innerResidFracIn)
 
void getResidsBoth (vector< double > &residsBoth)
 
double getChiSquared ()
 

Protected Attributes

double chiSquared
 

Private Member Functions

HepVector pseudo2HepVector (const DFDCPseudo &pseudopoint)
 
DLine trackhit2line (const DCDCTrackHit &trackhit)
 
bool getCorrectionSign (const DFDCPseudo &pseudopoint, double x, double y, double deltaX, double deltaY)
 
void getCorrectionValue (const DFDCPseudo &pseudopoint, double x, double y, double z, double t, double &delta_x, double &delta_y)
 
FDCHitDetails getDetails (const DFDCPseudo *ppoint, HepVector point)
 
CDCHitDetails getDetails (const DCDCTrackHit *trackhit, DLine line)
 

Private Attributes

unsigned int n_fdc
 
unsigned int n_cdc
 
vector< const DFDCPseudo * > * ppPtr
 
vector< const DCDCTrackHit * > * trkhitPtr
 
MyTrajectorytrajPtr
 
vector< double > delta
 
int debug_level
 
const DLorentzDeflectionslorentz_def
 
bool storeDetails
 
vector< FDCHitDetails * > FDCDetails
 
vector< CDCHitDetails * > CDCDetails
 
double innerResidFrac
 
residCDC rCDC
 
residFDC rFDC
 

Detailed Description

Definition at line 16 of file combinedResidFunc.h.

Constructor & Destructor Documentation

combinedResidFunc::combinedResidFunc ( vector< const DFDCPseudo * > *  pseudopoints,
vector< const DCDCTrackHit * > *  trackhits,
MyTrajectory trajectory,
const DLorentzDeflections lorentz_def,
int  level = 1 
)

Definition at line 19 of file combinedResidFunc.cc.

Member Function Documentation

void combinedResidFunc::clearDetails ( )

Definition at line 215 of file combinedResidFunc.cc.

References CDCDetails, and FDCDetails.

Referenced by DTrackLSFitter::FitTrack().

void combinedResidFunc::deriv ( const HepVector *  x,
void *  data,
HepMatrix *  J 
)
virtual
vector<CDCHitDetails*>* combinedResidFunc::getCDCDetails ( )
inline

Definition at line 30 of file combinedResidFunc.h.

References CDCDetails.

double residFunc::getChiSquared ( )
inlineinherited

Definition at line 14 of file residFunc.h.

bool combinedResidFunc::getCorrectionSign ( const DFDCPseudo pseudopoint,
double  x,
double  y,
double  deltaX,
double  deltaY 
)
private

Definition at line 131 of file combinedResidFunc.cc.

References debug_level, DCoordinateSystem::udir, DFDCPseudo::wire, and DFDCPseudo::xy.

Referenced by pseudo2HepVector().

void combinedResidFunc::getCorrectionValue ( const DFDCPseudo pseudopoint,
double  x,
double  y,
double  z,
double  t,
double &  delta_x,
double &  delta_y 
)
private
FDCHitDetails combinedResidFunc::getDetails ( const DFDCPseudo ppoint,
HepVector  point 
)
private
CDCHitDetails combinedResidFunc::getDetails ( const DCDCTrackHit trackhit,
DLine  line 
)
private
vector<FDCHitDetails*>* combinedResidFunc::getFDCDetails ( )
inline

Definition at line 31 of file combinedResidFunc.h.

References FDCDetails.

unsigned int combinedResidFunc::getN ( )
inlinevirtual

Implements residFunc.

Definition at line 26 of file combinedResidFunc.h.

References n_cdc, and n_fdc.

unsigned int combinedResidFunc::getP ( )
inlinevirtual

Implements residFunc.

Definition at line 27 of file combinedResidFunc.h.

References MyTrajectory::getNumberOfParams(), and trajPtr.

void combinedResidFunc::getResidsBoth ( vector< double > &  residsBoth)
HepVector combinedResidFunc::pseudo2HepVector ( const DFDCPseudo pseudopoint)
private
void combinedResidFunc::residAndDeriv ( const HepVector *  x,
void *  data,
HepVector *  f,
HepMatrix *  J 
)
virtual

Implements residFunc.

Definition at line 104 of file combinedResidFunc.cc.

void combinedResidFunc::setInnerResidFrac ( double  innerResidFracIn)

Definition at line 222 of file combinedResidFunc.cc.

References innerResidFrac.

Referenced by DTrackLSFitter::FitTrack().

void combinedResidFunc::setStoreDetails ( bool  storeDetailsValue)

Definition at line 210 of file combinedResidFunc.cc.

References storeDetails.

Referenced by DTrackLSFitter::FitTrack().

DLine combinedResidFunc::trackhit2line ( const DCDCTrackHit trackhit)
private

Member Data Documentation

vector<CDCHitDetails*> combinedResidFunc::CDCDetails
private

Definition at line 51 of file combinedResidFunc.h.

Referenced by clearDetails(), getCDCDetails(), and resid().

double residFunc::chiSquared
protectedinherited

Definition at line 14 of file residFunc.h.

Referenced by resid().

int combinedResidFunc::debug_level
private
vector<double> combinedResidFunc::delta
private

Definition at line 42 of file combinedResidFunc.h.

Referenced by deriv().

vector<FDCHitDetails*> combinedResidFunc::FDCDetails
private

Definition at line 49 of file combinedResidFunc.h.

Referenced by clearDetails(), getFDCDetails(), and resid().

double combinedResidFunc::innerResidFrac
private

Definition at line 52 of file combinedResidFunc.h.

Referenced by getResidsBoth(), resid(), and setInnerResidFrac().

const DLorentzDeflections* combinedResidFunc::lorentz_def
private

Definition at line 46 of file combinedResidFunc.h.

Referenced by getCorrectionValue().

unsigned int combinedResidFunc::n_cdc
private

Definition at line 36 of file combinedResidFunc.h.

Referenced by deriv(), getN(), getResidsBoth(), and resid().

unsigned int combinedResidFunc::n_fdc
private

Definition at line 36 of file combinedResidFunc.h.

Referenced by deriv(), getN(), getResidsBoth(), and resid().

vector<const DFDCPseudo*>* combinedResidFunc::ppPtr
private

Definition at line 37 of file combinedResidFunc.h.

residCDC combinedResidFunc::rCDC
private

Definition at line 53 of file combinedResidFunc.h.

Referenced by getResidsBoth(), and resid().

residFDC combinedResidFunc::rFDC
private

Definition at line 54 of file combinedResidFunc.h.

Referenced by getResidsBoth(), and resid().

bool combinedResidFunc::storeDetails
private

Definition at line 47 of file combinedResidFunc.h.

Referenced by resid(), and setStoreDetails().

MyTrajectory* combinedResidFunc::trajPtr
private

Definition at line 39 of file combinedResidFunc.h.

Referenced by deriv(), getDetails(), getP(), pseudo2HepVector(), and resid().

vector<const DCDCTrackHit*>* combinedResidFunc::trkhitPtr
private

Definition at line 38 of file combinedResidFunc.h.


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