Hall-D Software
alpha
|
#include <DTrackFitterStraightTrack.h>
Classes | |
struct | cdc_update_t |
struct | fdc_update_t |
class | trajectory_t |
Public Types | |
enum | state_vector { state_x, state_y, state_tx, state_ty } |
enum | state_cartesian { state_Px, state_Py, state_Pz, state_X, state_Y, state_Z, state_T } |
enum | fit_type_t { kWireBased, kTimeBased } |
enum | fit_status_t { kFitNotDone, kFitSuccess, kFitFailed, kFitNoImprovement } |
Public Member Functions | |
DTrackFitterStraightTrack (JEventLoop *loop) | |
~DTrackFitterStraightTrack () | |
string | Name (void) const |
fit_status_t | FitTrack (void) |
double | ChiSq (fit_type_t fit_type, DReferenceTrajectory *rt, double *chisq_ptr=NULL, int *dof_ptr=NULL, vector< pull_t > *pulls_ptr=NULL) |
unsigned int | Locate (const vector< double > &xx, double x) const |
double | CDCDriftVariance (double t) const |
double | CDCDriftDistance (double dphi, double delta, double t) const |
jerror_t | SetReferenceTrajectory (double t0, double z, DMatrix4x1 &S, const DCDCTrackHit *last_cdc, double &dzsign) |
jerror_t | KalmanFilter (DMatrix4x1 &S, DMatrix4x4 &C, vector< int > &used_hits, vector< cdc_update_t > &updates, double &chi2, int &ndof, unsigned int iter) |
jerror_t | Smooth (vector< cdc_update_t > &cdc_updates) |
DTrackFitter::fit_status_t | FitCentralTrack (double &z0, double t0, double dzsign, DMatrix4x1 &Sbest, DMatrix4x4 &Cbest, double &chi2_best, int &ndof_best) |
double | fdc_drift_distance (double time) const |
double | fdc_drift_variance (double t) const |
DTrackFitter::fit_status_t | FitForwardTrack (double t0, double &start_z, DMatrix4x1 &Sbest, DMatrix4x4 &Cbest, double &chi2_best, int &ndof_best) |
jerror_t | SetReferenceTrajectory (double t0, double z, DMatrix4x1 &S) |
jerror_t | KalmanFilter (DMatrix4x1 &S, DMatrix4x4 &C, vector< int > &used_fdc_hits, vector< int > &used_cdc_hits, vector< fdc_update_t > &updates, vector< cdc_update_t > &cdc_updates, double &chi2, int &ndof) |
jerror_t | Smooth (vector< fdc_update_t > &fdc_updates, vector< cdc_update_t > &cdc_updates) |
shared_ptr< TMatrixFSym > | Get7x7ErrorMatrix (TMatrixFSym C, DMatrix4x1 &S, double sign) |
void | GetExtrapolations (const DVector3 &pos0, const DVector3 &dir) |
JOBJECT_PUBLIC (DTrackFitter) | |
void | Reset (void) |
void | AddHit (const DCDCTrackHit *cdchit) |
void | AddHit (const DFDCPseudo *fdchit) |
void | AddHits (vector< const DCDCTrackHit * > cdchits) |
void | AddHits (vector< const DFDCPseudo * > fdchits) |
const vector< const DCDCTrackHit * > & | GetCDCInputHits (void) const |
const vector< const DFDCPseudo * > & | GetFDCInputHits (void) const |
const vector< const DCDCTrackHit * > & | GetCDCFitHits (void) const |
const vector< const DFDCPseudo * > & | GetFDCFitHits (void) const |
void | ClearExtrapolations (void) |
const DKinematicData & | GetInputParameters (void) const |
const DTrackingData & | GetFitParameters (void) const |
double | GetChisq (void) const |
int | GetNdof (void) const |
unsigned int | GetNumPotentialFDCHits (void) const |
unsigned int | GetNumPotentialCDCHits (void) const |
bool | GetIsSmoothed (void) const |
vector< pull_t > & | GetPulls (void) |
const map< DetectorSystem_t, vector< Extrapolation_t > > & | GetExtrapolations (void) const |
fit_type_t | GetFitType (void) const |
const DMagneticFieldMap * | GetDMagneticFieldMap (void) const |
void | SetFitType (fit_type_t type) |
void | SetInputParameters (const DTrackingData &starting_params) |
fit_status_t | FitTrack (const DVector3 &pos, const DVector3 &mom, double q, double mass, double t0=QuietNaN, DetectorSystem_t t0_det=SYS_NULL) |
fit_status_t | FitTrack (const DTrackingData &starting_params) |
fit_status_t | FindHitsAndFitTrack (const DKinematicData &starting_params, const DReferenceTrajectory *rt, JEventLoop *loop, double mass=-1.0, int N=0, double t0=QuietNaN, DetectorSystem_t t0_det=SYS_NULL) |
mass<0 means get it from starting_params More... | |
fit_status_t | FindHitsAndFitTrack (const DKinematicData &starting_params, const map< DetectorSystem_t, vector< DTrackFitter::Extrapolation_t > > &extrapolations, JEventLoop *loop, double mass, int N, double t0, DetectorSystem_t t0_det) |
jerror_t | CorrectForELoss (const DKinematicData &starting_params, DReferenceTrajectory *rt, DVector3 &pos, DVector3 &mom, double mass) |
double | CalcDensityEffect (double p, double mass, double density, double Z_over_A, double I) |
double | CalcDensityEffect (double p, double mass, double rho_Z_over_A, double LnI) |
double | CalcDensityEffect (double betagamma, double rho_Z_over_A, double LnI) |
bool | ExtrapolateToRadius (double R, const vector< Extrapolation_t > &extraps, DVector3 &pos, DVector3 &mom, double &t, double &s) const |
bool | ExtrapolateToRadius (double R, const vector< Extrapolation_t > &extraps, DVector3 &pos) const |
double | DistToWire (const DCoordinateSystem *wire, const vector< Extrapolation_t > &extrapolations, DVector3 *pos=NULL, DVector3 *mom=NULL, DVector3 *position_along_wire=NULL) const |
Protected Attributes | |
vector< const DCDCTrackHit * > | cdchits |
vector< const DFDCPseudo * > | fdchits |
DTrackingData | input_params |
fit_type_t | fit_type |
const DMagneticFieldMap * | bfield |
const DGeometry * | geom |
const DRootGeom * | RootGeom |
JEventLoop * | loop |
DTrackingData | fit_params |
double | chisq |
int | Ndof |
vector< pull_t > | pulls |
map< DetectorSystem_t, vector < Extrapolation_t > > | extrapolations |
fit_status_t | fit_status |
vector< const DCDCTrackHit * > | cdchits_used_in_fit |
vector< const DFDCPseudo * > | fdchits_used_in_fit |
bool | IsSmoothed |
unsigned int | potential_fdc_hits_on_track |
unsigned int | potential_cdc_hits_on_track |
bool | CORRECT_FOR_ELOSS |
Private Attributes | |
deque< trajectory_t > | trajectory |
deque< trajectory_t > | best_trajectory |
bool | COSMICS |
bool | DO_PRUNING |
int | VERBOSE |
double | CHI2CUT |
int | PLANE_TO_SKIP |
int | RING_TO_SKIP |
double | dTOFz |
double | dFCALz |
double | dDIRCz |
vector< vector< DVector3 > > | sc_dir |
vector< vector< DVector3 > > | sc_pos |
vector< vector< DVector3 > > | sc_norm |
double | SC_BARREL_R |
double | SC_END_NOSE_Z |
double | SC_PHI_SECTOR1 |
vector< double > | cdc_drift_table |
vector< double > | fdc_drift_table |
double | CDC_RES_PAR1 |
double | CDC_RES_PAR2 |
double | CDC_RES_PAR3 |
double | DRIFT_RES_PARMS [3] |
double | DRIFT_FUNC_PARMS [6] |
vector< vector< double > > | max_sag |
vector< vector< double > > | sag_phi_offset |
double | long_drift_func [3][3] |
double | short_drift_func [3][3] |
double | downstreamEndplate |
double | upstreamEndplate |
double | cdc_endplate_rmin |
double | cdc_endplate_rmax |
DTrackFinder * | finder |
shared_ptr< DResourcePool < TMatrixFSym > > | dResourcePool_TMatrixFSym |
Definition at line 23 of file DTrackFitterStraightTrack.h.
|
inherited |
Enumerator | |
---|---|
kFitNotDone | |
kFitSuccess | |
kFitFailed | |
kFitNoImprovement |
Definition at line 70 of file DTrackFitter.h.
|
inherited |
Enumerator | |
---|---|
kWireBased | |
kTimeBased |
Definition at line 65 of file DTrackFitter.h.
Enumerator | |
---|---|
state_Px | |
state_Py | |
state_Pz | |
state_X | |
state_Y | |
state_Z | |
state_T |
Definition at line 35 of file DTrackFitterStraightTrack.h.
Enumerator | |
---|---|
state_x | |
state_y | |
state_tx | |
state_ty |
Definition at line 28 of file DTrackFitterStraightTrack.h.
DTrackFitterStraightTrack::DTrackFitterStraightTrack | ( | JEventLoop * | loop | ) |
Definition at line 13 of file DTrackFitterStraightTrack.cc.
References cdc_drift_table, cdc_endplate_rmax, cdc_endplate_rmin, CDC_RES_PAR1, CDC_RES_PAR2, CDC_RES_PAR3, CHI2CUT, COSMICS, dapp, dDIRCz, dFCALz, DO_PRUNING, downstreamEndplate, dResourcePool_TMatrixFSym, DRIFT_FUNC_PARMS, DRIFT_RES_PARMS, dTOFz, finder, DTrackFitter::geom, DGeometry::Get(), DGeometry::GetCDCEndplate(), DApplication::GetDGeometry(), DGeometry::GetDIRCZ(), DGeometry::GetFCALZ(), DGeometry::GetStartCounterGeom(), long_drift_func, max_sag, PLANE_TO_SKIP, RING_TO_SKIP, sag_phi_offset, SC_BARREL_R, sc_dir, SC_END_NOSE_Z, sc_norm, SC_PHI_SECTOR1, sc_pos, short_drift_func, temp, upstreamEndplate, and VERBOSE.
DTrackFitterStraightTrack::~DTrackFitterStraightTrack | ( | ) |
Definition at line 200 of file DTrackFitterStraightTrack.cc.
|
inherited |
Definition at line 120 of file DTrackFitter.cc.
Referenced by DTrackTimeBased_factory_StraightLine::evnt(), DTrackWireBased_factory_StraightLine::evnt(), DTrackHitSelector::GetCDCHits(), and DTrackHitSelector::GetFDCHits().
|
inherited |
Definition at line 138 of file DTrackFitter.cc.
|
inherited |
Definition at line 129 of file DTrackFitter.cc.
Referenced by DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_THROWN::evnt(), DTrackWireBased_factory_THROWN::evnt(), and DTrackCandidate_factory_THROWN::evnt().
|
inherited |
Definition at line 147 of file DTrackFitter.cc.
|
inherited |
Definition at line 412 of file DTrackFitter.cc.
Referenced by DTrackFitterKalmanSIMD::GetdEdx().
|
inherited |
Definition at line 422 of file DTrackFitter.cc.
|
inherited |
double DTrackFitterStraightTrack::CDCDriftDistance | ( | double | dphi, |
double | delta, | ||
double | t | ||
) | const |
Definition at line 253 of file DTrackFitterStraightTrack.cc.
References c1, c2, c3, cdc_drift_table, xstream::base64::index(), Locate(), long_drift_func, short_drift_func, and sqrt().
Referenced by KalmanFilter().
|
inline |
Definition at line 246 of file DTrackFitterStraightTrack.cc.
References CDC_RES_PAR1, CDC_RES_PAR2, CDC_RES_PAR3, and sigma.
Referenced by KalmanFilter().
|
inlinevirtual |
Implements DTrackFitter.
Definition at line 74 of file DTrackFitterStraightTrack.h.
|
inlineinherited |
Definition at line 141 of file DTrackFitter.h.
References SYS_BCAL, SYS_CDC, SYS_DIRC, SYS_FCAL, SYS_FDC, SYS_START, and SYS_TOF.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), GetExtrapolations(), and DTrackFitterKalmanSIMD::KalmanLoop().
|
inherited |
Definition at line 362 of file DTrackFitter.cc.
References CDCSortByRincreasing(), DKinematicData::charge(), DReferenceTrajectory::FastSwim(), FDCSortByZincreasing(), DReferenceTrajectory::kBackward, DReferenceTrajectory::kForward, DCoordinateSystem::L, DKinematicData::momentum(), DCoordinateSystem::origin, DKinematicData::position(), DCoordinateSystem::sdir, DReferenceTrajectory::SetDGeometry(), DReferenceTrajectory::SetMass(), DReferenceTrajectory::SetPLossDirection(), DCoordinateSystem::tdir, and DCoordinateSystem::udir.
|
inherited |
Definition at line 537 of file DTrackFitter.cc.
References DCoordinateSystem::origin, sin(), and DCoordinateSystem::udir.
Referenced by JEventProcessor_FDCProjectionResiduals::evnt(), JEventProcessor_FDCProjectionResiduals::Expect_Hit(), and JEventProcessor_CDC_Efficiency::Fill_Efficiency_Histos().
|
inherited |
Definition at line 473 of file DTrackFitter.cc.
References alpha, DTrackFitter::Extrapolation_t::momentum, DTrackFitter::Extrapolation_t::position, DTrackFitter::Extrapolation_t::s, sqrt(), and DTrackFitter::Extrapolation_t::t.
Referenced by DBCALCluster_factory::clusterize(), DParticleID::Distance_ToTrack(), JEventProcessor_BCAL_TDC_Timing::evnt(), JEventProcessor_pi0bcalskim::evnt(), JEventProcessor_BCAL_point_calib::evnt(), JEventProcessor_BCAL_inv_mass::evnt(), JEventProcessor_BCAL_Eff::evnt(), DEventProcessor_BCAL_gainmatrix::evnt(), DParticleID::Get_StartTime(), and DCustomAction_p2pi_unusedHists::Perform_Action().
|
inherited |
Definition at line 527 of file DTrackFitter.cc.
double DTrackFitterStraightTrack::fdc_drift_distance | ( | double | time | ) | const |
Definition at line 1059 of file DTrackFitterStraightTrack.cc.
References DRIFT_FUNC_PARMS, and sqrt().
Referenced by KalmanFilter(), and Smooth().
double DTrackFitterStraightTrack::fdc_drift_variance | ( | double | t | ) | const |
Definition at line 1081 of file DTrackFitterStraightTrack.cc.
References DRIFT_RES_PARMS, and sigma.
Referenced by KalmanFilter().
|
inherited |
mass<0 means get it from starting_params
Fit a DTrackCandidate using a given mass hypothesis.
This will perform a full wire-based and time-based fit using the given mass and starting from the given candidate. The given DReferenceTrajectory is used to swim the track numerous times during the various stages but will be left with the final time-based fit result. The JEventLoop given will be used to get the hits (CDC and FDC) and default DTrackHitSelector to use for the fit.
Definition at line 271 of file DTrackFitter.cc.
References _DBG_, DKinematicData::charge(), DTrackHitSelector::GetAllHits(), IDTrack(), DTrackHitSelector::kHelical, DTrackHitSelector::kWireBased, DKinematicData::mass(), DKinematicData::momentum(), DKinematicData::position(), start_time, and prof_time::TimeDiffNow().
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), and DTrackTimeBased_factory::DoFit().
|
inherited |
Definition at line 198 of file DTrackFitter.cc.
References _DBG_, DKinematicData::charge(), DTrackHitSelector::GetCDCHits(), DTrackHitSelector::GetFDCHits(), IDTrack(), DKinematicData::mass(), DKinematicData::momentum(), DKinematicData::position(), start_time, SYS_CDC, and SYS_FDC.
DTrackFitter::fit_status_t DTrackFitterStraightTrack::FitCentralTrack | ( | double & | z0, |
double | t0, | ||
double | dzsign, | ||
DMatrix4x1 & | Sbest, | ||
DMatrix4x4 & | Cbest, | ||
double & | chi2_best, | ||
int & | ndof_best | ||
) |
Definition at line 980 of file DTrackFitterStraightTrack.cc.
References best_trajectory, C0, DTrackFitter::cdchits, DTrackFitter::cdchits_used_in_fit, DTrackFitter::IsSmoothed, KalmanFilter(), DTrackFitter::kFitFailed, DTrackFitter::kFitSuccess, S, SetReferenceTrajectory(), Smooth(), trajectory, and VERBOSE.
Referenced by FitTrack().
DTrackFitter::fit_status_t DTrackFitterStraightTrack::FitForwardTrack | ( | double | t0, |
double & | start_z, | ||
DMatrix4x1 & | Sbest, | ||
DMatrix4x4 & | Cbest, | ||
double & | chi2_best, | ||
int & | ndof_best | ||
) |
Definition at line 1091 of file DTrackFitterStraightTrack.cc.
References best_trajectory, C0, DTrackFitter::cdchits, DTrackFitter::cdchits_used_in_fit, DTrackFitter::fdchits, DTrackFitter::fdchits_used_in_fit, DTrackFitter::IsSmoothed, KalmanFilter(), DTrackFitter::kFitFailed, DTrackFitter::kFitSuccess, S, SetReferenceTrajectory(), Smooth(), and trajectory.
Referenced by FitTrack().
|
virtual |
Implements DTrackFitter.
Definition at line 837 of file DTrackFitterStraightTrack.cc.
References DTrackFitter::cdchits, DTrackFitter::cdchits_used_in_fit, DTrackFitter::chisq, COSMICS, dResourcePool_TMatrixFSym, DTrackFitterStraightTrack_cdc_hit_cmp(), DTrackFitterStraightTrack_cdc_hit_radius_cmp(), DTrackFitterStraightTrack_fdc_hit_cmp(), DTrackFitter::fdchits, DTrackFinder::FindDoca(), finder, DTrackFitter::fit_params, DTrackFitter::fit_type, FitCentralTrack(), FitForwardTrack(), Get7x7ErrorMatrix(), DTrackFitter::GetExtrapolations(), DTrackFitter::input_params, DTrackFitter::kFitNotDone, DTrackFitter::kFitSuccess, DTrackFitter::kWireBased, DKinematicData::momentum(), DTrackFitter::Ndof, DKinematicData::position(), S, DKinematicData::setErrorMatrix(), DTrackingData::setForwardParmFlag(), DKinematicData::setMomentum(), DKinematicData::setPosition(), DTrackingData::setTrackingErrorMatrix(), sin(), sqrt(), state_tx, state_ty, state_x, state_y, DTrackingData::t0(), DMatrix4x4::Transpose(), and tx.
|
inherited |
Definition at line 156 of file DTrackFitter.cc.
References IDTrack(), start_time, and prof_time::TimeDiffNow().
Referenced by DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inherited |
Definition at line 179 of file DTrackFitter.cc.
References start_time, and prof_time::TimeDiffNow().
shared_ptr< TMatrixFSym > DTrackFitterStraightTrack::Get7x7ErrorMatrix | ( | TMatrixFSym | C, |
DMatrix4x1 & | S, | ||
double | sign | ||
) |
|
inlineinherited |
Definition at line 139 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 137 of file DTrackFitter.h.
|
inlineinherited |
Definition at line 154 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 168 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::CorrectForELoss(), and JEventProcessor_dumpcandidates::evnt().
Definition at line 2044 of file DTrackFitterStraightTrack.cc.
References DTrackFitter::ClearExtrapolations(), dDIRCz, dFCALz, dir, dTOFz, DTrackFitter::extrapolations, xstream::base64::index(), SC_BARREL_R, SC_END_NOSE_Z, sc_norm, SC_PHI_SECTOR1, sc_pos, SYS_BCAL, SYS_DIRC, SYS_FCAL, SYS_START, and SYS_TOF.
|
inlineinherited |
Definition at line 163 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), DTrackWireBased_factory_StraightLine::evnt(), and FitTrack().
|
inlineinherited |
Definition at line 140 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 138 of file DTrackFitter.h.
|
inlineinherited |
Definition at line 153 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 167 of file DTrackFitter.h.
|
inlineinherited |
Definition at line 152 of file DTrackFitter.h.
|
inlineinherited |
Definition at line 160 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 155 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 157 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), and DTrackTimeBased_factory::DoFit().
|
inlineinherited |
Definition at line 156 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), and DTrackTimeBased_factory::DoFit().
|
inlineinherited |
Definition at line 162 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), and DTrackWireBased_factory_StraightLine::evnt().
|
inherited |
jerror_t DTrackFitterStraightTrack::KalmanFilter | ( | DMatrix4x1 & | S, |
DMatrix4x4 & | C, | ||
vector< int > & | used_hits, | ||
vector< cdc_update_t > & | updates, | ||
double & | chi2, | ||
int & | ndof, | ||
unsigned int | iter | ||
) |
compute initial doca^2 to first wire
Definition at line 323 of file DTrackFitterStraightTrack.cc.
References CDCDriftDistance(), CDCDriftVariance(), DTrackFitter::cdchits, CHI2CUT, COSMICS, DO_PRUNING, e, DTrackFitter::fit_type, H, DMatrix4x4::IsPosDef(), DTrackFitter::kTimeBased, max_sag, DCoordinateSystem::origin, DMatrix4x1::Print(), DCDCWire::ring, RING_TO_SKIP, S, sag_phi_offset, state_tx, state_ty, state_x, state_y, DCDCWire::straw, trajectory, DMatrix4x4::Transpose(), tx, DCoordinateSystem::udir, and VERBOSE.
Referenced by FitCentralTrack(), and FitForwardTrack().
jerror_t DTrackFitterStraightTrack::KalmanFilter | ( | DMatrix4x1 & | S, |
DMatrix4x4 & | C, | ||
vector< int > & | used_fdc_hits, | ||
vector< int > & | used_cdc_hits, | ||
vector< fdc_update_t > & | updates, | ||
vector< cdc_update_t > & | cdc_updates, | ||
double & | chi2, | ||
int & | ndof | ||
) |
Definition at line 1254 of file DTrackFitterStraightTrack.cc.
References alpha, CDCDriftDistance(), CDCDriftVariance(), DTrackFitter::cdchits, CHI2CUT, DO_PRUNING, downstreamEndplate, e, fdc_drift_distance(), fdc_drift_variance(), DTrackFitter::fdchits, DTrackFitter::fit_type, H, I, DTrackFitter::kTimeBased, max_sag, DCoordinateSystem::origin, PLANE_TO_SKIP, DMatrix4x1::Print(), DCDCWire::ring, RING_TO_SKIP, S, sag_phi_offset, sin(), state_tx, state_ty, state_x, state_y, temp, trajectory, DMatrix4x4::Transpose(), tx, DCoordinateSystem::udir, VERBOSE, x, and y.
unsigned int DTrackFitterStraightTrack::Locate | ( | const vector< double > & | xx, |
double | x | ||
) | const |
Definition at line 961 of file DTrackFitterStraightTrack.cc.
Referenced by CDCDriftDistance().
|
inlinevirtual |
Implements DTrackFitter.
Definition at line 72 of file DTrackFitterStraightTrack.h.
References string.
|
inherited |
Definition at line 94 of file DTrackFitter.cc.
References start_time, and prof_time::TimeDiffNow().
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), DTrackTimeBased_factory_StraightLine::evnt(), DTrackWireBased_factory_StraightLine::evnt(), DTrackWireBased_factory_THROWN::evnt(), DTrackTimeBased_factory_THROWN::evnt(), and DTrackCandidate_factory_THROWN::evnt().
|
inlineinherited |
Definition at line 170 of file DTrackFitter.h.
Referenced by DTrackTimeBased_factory::AddMissingTrackHypothesis(), DTrackWireBased_factory::DoFit(), DTrackTimeBased_factory::DoFit(), and DTrackTimeBased_factory_StraightLine::evnt().
|
inlineinherited |
Definition at line 171 of file DTrackFitter.h.
jerror_t DTrackFitterStraightTrack::SetReferenceTrajectory | ( | double | t0, |
double | z, | ||
DMatrix4x1 & | S, | ||
const DCDCTrackHit * | last_cdc, | ||
double & | dzsign | ||
) |
Definition at line 766 of file DTrackFitterStraightTrack.cc.
References COSMICS, dir, downstreamEndplate, MAX_STEPS, DCoordinateSystem::origin, DMatrix4x1::Print(), printf(), DCDCWire::ring, S, sqrt(), state_tx, state_ty, state_x, state_y, DCDCWire::straw, trajectory, upstreamEndplate, VERBOSE, and DCDCTrackHit::wire.
Referenced by FitCentralTrack(), and FitForwardTrack().
jerror_t DTrackFitterStraightTrack::SetReferenceTrajectory | ( | double | t0, |
double | z, | ||
DMatrix4x1 & | S | ||
) |
Definition at line 1177 of file DTrackFitterStraightTrack.cc.
References e, EPS, DTrackFitter::fdchits, printf(), S, sqrt(), state_tx, state_ty, state_x, state_y, and trajectory.
jerror_t DTrackFitterStraightTrack::Smooth | ( | vector< cdc_update_t > & | cdc_updates | ) |
Definition at line 573 of file DTrackFitterStraightTrack.cc.
References best_trajectory, c1, c2, c3, DTrackFitter::cdchits, dDOCAdDirX, dDOCAdDirY, dDOCAdDirZ, dDOCAdOriginX, dDOCAdOriginY, dDOCAdOriginZ, dDOCAdS0, dDOCAdS1, dDOCAdS2, dDOCAdS3, e, H, DMatrix4x4::Invert(), DMatrix4x4::IsPosDef(), max, DCoordinateSystem::origin, DMatrix4x1::Print(), DMatrix4x4::Print(), DTrackFitter::pulls, DCDCWire::ring, RING_TO_SKIP, S, SPEED_OF_LIGHT, sqrt(), state_tx, state_ty, state_x, state_y, DMatrix4x4::Transpose(), tx, DCoordinateSystem::udir, VERBOSE, x, and y.
Referenced by FitCentralTrack(), and FitForwardTrack().
jerror_t DTrackFitterStraightTrack::Smooth | ( | vector< fdc_update_t > & | fdc_updates, |
vector< cdc_update_t > & | cdc_updates | ||
) |
Definition at line 1637 of file DTrackFitterStraightTrack.cc.
References DTrackFitter::pull_t::AddTrackDerivatives(), alpha, best_trajectory, c1, c2, c3, DTrackFitter::cdchits, dDOCAC_dDeltaPhiX, dDOCAC_dDeltaPhiY, dDOCAC_dDeltaPhiZ, dDOCAC_dDeltaX, dDOCAC_dDeltaZ, dDOCAC_dx, dDOCAdDirX, dDOCAdDirY, dDOCAdDirZ, dDOCAdOriginX, dDOCAdOriginY, dDOCAdOriginZ, dDOCAdS0, dDOCAdS1, dDOCAdS2, dDOCAdS3, dDOCAW_dDeltaPhiX, dDOCAW_dDeltaPhiY, dDOCAW_dDeltaPhiZ, dDOCAW_dDeltaX, dDOCAW_dDeltaZ, dDOCAW_dtx, dDOCAW_dty, dDOCAW_dx, dDOCAW_dy, e, fdc_drift_distance(), DTrackFitter::fdchits, DTrackFitter::fit_type, H, DMatrix4x4::Invert(), DMatrix4x4::IsPosDef(), DTrackFitter::kTimeBased, max, DCoordinateSystem::origin, PLANE_TO_SKIP, DMatrix4x1::Print(), DMatrix4x4::Print(), DTrackFitter::pulls, DCDCWire::ring, RING_TO_SKIP, S, sin(), size, SPEED_OF_LIGHT, sqrt(), state_tx, state_ty, state_x, state_y, DMatrix4x4::Transpose(), tx, u, DCoordinateSystem::udir, VERBOSE, x, and y.
|
private |
Definition at line 109 of file DTrackFitterStraightTrack.h.
Referenced by FitCentralTrack(), FitForwardTrack(), and Smooth().
|
protectedinherited |
Definition at line 228 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CalcDerivAndJacobian(), DTrackFitterALT1::DTrackFitterALT1(), DTrackFitterKalmanSIMD::DTrackFitterKalmanSIMD(), DTrackFitterKalmanSIMD::ExtrapolateCentralToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateForwardToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateToVertex(), DTrackFitterKalmanSIMD::FillPullsVectorEntry(), DTrackFitterRiemann::FitTrack(), DTrackLSFitter::FitTrack(), DTrackFitterKalmanSIMD_ALT1::KalmanForward(), DTrackFitterKalmanSIMD::KalmanForward(), DTrackFitterKalmanSIMD::KalmanLoop(), DTrackFitterKalmanSIMD::PropagateCentral(), DTrackFitterKalmanSIMD::SetCDCForwardReferenceTrajectory(), DTrackFitterKalmanSIMD::SetCDCReferenceTrajectory(), DTrackFitterKalmanSIMD::SetReferenceTrajectory(), DTrackFitterRiemann::SetSeed(), DTrackFitterKalmanSIMD::SmoothCentral(), DTrackFitterKalmanSIMD::Step(), DTrackFitterKalmanSIMD::StepJacobian(), and DTrackFitterKalmanSIMD::StepStateAndCovariance().
|
private |
Definition at line 126 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftDistance(), and DTrackFitterStraightTrack().
|
private |
Definition at line 141 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack().
|
private |
Definition at line 141 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack().
|
private |
Definition at line 130 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftVariance(), and DTrackFitterStraightTrack().
|
private |
Definition at line 130 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftVariance(), and DTrackFitterStraightTrack().
|
private |
Definition at line 130 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftVariance(), and DTrackFitterStraightTrack().
|
protectedinherited |
Definition at line 224 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::FillDebugHists(), FitCentralTrack(), FitForwardTrack(), DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterALT1::GetHits(), KalmanFilter(), and Smooth().
|
protectedinherited |
Definition at line 241 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), FitCentralTrack(), FitForwardTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), and DTrackFitterKalmanSIMD::KalmanLoop().
|
private |
Definition at line 113 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and KalmanFilter().
|
protectedinherited |
Definition at line 235 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), DTrackFitterRiemann::ChiSq(), DTrackFitterALT1::ChiSq(), DTrackFitterKalmanSIMD::ChiSq(), DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), DTrackLSFitter::getChiSquared(), and DTrackFitterALT1::LeastSquaresB().
|
protectedinherited |
Definition at line 250 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CalcDeriv(), DTrackFitterKalmanSIMD::CalcDerivAndJacobian(), DTrackFitterKalmanSIMD::ExtrapolateCentralToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateForwardToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateToVertex(), DTrackFitterKalmanSIMD::KalmanCentral(), DTrackFitterKalmanSIMD_ALT1::KalmanForward(), DTrackFitterKalmanSIMD::KalmanForward(), DTrackFitterKalmanSIMD::KalmanForwardCDC(), DTrackFitterKalmanSIMD::PropagateCentral(), DTrackFitterKalmanSIMD::PropagateForward(), DTrackFitterKalmanSIMD::PropagateForwardCDC(), and DTrackFitterKalmanSIMD::StepJacobian().
|
private |
Definition at line 111 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), FitTrack(), KalmanFilter(), and SetReferenceTrajectory().
|
private |
Definition at line 117 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 117 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 111 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and KalmanFilter().
|
private |
Definition at line 141 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), KalmanFilter(), and SetReferenceTrajectory().
|
private |
Definition at line 143 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), FitTrack(), and Get7x7ErrorMatrix().
|
private |
Definition at line 133 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and fdc_drift_distance().
|
private |
Definition at line 132 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and fdc_drift_variance().
|
private |
Definition at line 117 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
protectedinherited |
Definition at line 238 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), DTrackFitterKalmanSIMD::ExtrapolateCentralToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateForwardToOtherDetectors(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), GetExtrapolations(), and DTrackFitterKalmanSIMD::KalmanLoop().
|
private |
Definition at line 127 of file DTrackFitterStraightTrack.h.
|
protectedinherited |
Definition at line 225 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::FillDebugHists(), FitForwardTrack(), DTrackFitterRiemann::FitLine(), DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterALT1::GetHits(), KalmanFilter(), SetReferenceTrajectory(), DTrackFitterRiemann::SetSeed(), and Smooth().
|
protectedinherited |
Definition at line 242 of file DTrackFitter.h.
Referenced by FitForwardTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), DTrackFitterKalmanSIMD::ForwardFit(), and DTrackFitterKalmanSIMD::KalmanLoop().
|
private |
Definition at line 142 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and FitTrack().
|
protectedinherited |
Definition at line 234 of file DTrackFitter.h.
Referenced by DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), and DTrackFitterKalmanSIMD::FitTrack().
|
protectedinherited |
Definition at line 240 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), and DTrackFitterKalmanSIMD::FitTrack().
|
protectedinherited |
Definition at line 227 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), DTrackFitterKalmanSIMD::ExtrapolateToVertex(), DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), DTrackFitterKalmanSIMD::KalmanCentral(), KalmanFilter(), DTrackFitterKalmanSIMD_ALT1::KalmanForward(), DTrackFitterKalmanSIMD::KalmanForward(), DTrackFitterKalmanSIMD::KalmanForwardCDC(), DTrackFitterKalmanSIMD::KalmanLoop(), DTrackFitterKalmanSIMD::PropagateCentral(), DTrackFitterKalmanSIMD::PropagateForward(), DTrackFitterKalmanSIMD::PropagateForwardCDC(), DTrackFitterRiemann::SetSeed(), and Smooth().
|
protectedinherited |
Definition at line 229 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::DTrackFitterALT1(), DTrackFitterKalmanSIMD::DTrackFitterKalmanSIMD(), DTrackFitterStraightTrack(), DTrackFitterKalmanSIMD::ExtrapolateCentralToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateForwardToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateToVertex(), DTrackFitterRiemann::GetProcessNoise(), DTrackFitterKalmanSIMD::PropagateCentral(), DTrackFitterKalmanSIMD::PropagateForward(), and DTrackFitterKalmanSIMD::PropagateForwardCDC().
|
protectedinherited |
Definition at line 226 of file DTrackFitter.h.
Referenced by DTrackFitterRiemann::FitTrack(), DTrackFitterALT1::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterKalmanSIMD::KalmanLoop(), and DTrackLSFitter::setFitterStartParams().
|
protectedinherited |
Definition at line 244 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), FitCentralTrack(), FitForwardTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), and DTrackFitterKalmanSIMD::KalmanLoop().
|
private |
Definition at line 138 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftDistance(), and DTrackFitterStraightTrack().
|
protectedinherited |
Definition at line 231 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::ChiSq(), DTrackFitterALT1::DTrackFitterALT1(), DTrackFitterALT1::FitTrack(), and DTrackLSFitter::FitTrack().
|
private |
Definition at line 136 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and KalmanFilter().
|
protectedinherited |
Definition at line 236 of file DTrackFitter.h.
Referenced by DTrackFitterRiemann::ChiSq(), DTrackFitterALT1::ChiSq(), DTrackFitterALT1::FitTrack(), DTrackLSFitter::FitTrack(), FitTrack(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterALT1::LeastSquaresB(), and DTrackFitterALT1::PrintChisqElements().
|
private |
Definition at line 114 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), KalmanFilter(), and Smooth().
|
protectedinherited |
Definition at line 247 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::FitTrack().
|
protectedinherited |
Definition at line 246 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::FitTrack().
|
protectedinherited |
Definition at line 237 of file DTrackFitter.h.
Referenced by DTrackFitterKalmanSIMD::CentralFit(), DTrackFitterALT1::ChiSq(), DTrackFitterKalmanSIMD::ChiSq(), DTrackFitterKalmanSIMD::FitTrack(), DTrackFitterKalmanSIMD::ForwardCDCFit(), DTrackFitterKalmanSIMD::ForwardFit(), DTrackFitterKalmanSIMD::KalmanLoop(), Smooth(), and DTrackFitterKalmanSIMD_ALT1::SmoothForward().
|
private |
Definition at line 114 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), KalmanFilter(), and Smooth().
|
protectedinherited |
Definition at line 230 of file DTrackFitter.h.
Referenced by DTrackFitterALT1::DTrackFitterALT1().
|
private |
Definition at line 137 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and KalmanFilter().
|
private |
Definition at line 123 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 120 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack().
|
private |
Definition at line 123 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 122 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 123 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 121 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and GetExtrapolations().
|
private |
Definition at line 139 of file DTrackFitterStraightTrack.h.
Referenced by CDCDriftDistance(), and DTrackFitterStraightTrack().
|
private |
Definition at line 108 of file DTrackFitterStraightTrack.h.
Referenced by FitCentralTrack(), FitForwardTrack(), KalmanFilter(), and SetReferenceTrajectory().
|
private |
Definition at line 141 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), and SetReferenceTrajectory().
|
private |
Definition at line 112 of file DTrackFitterStraightTrack.h.
Referenced by DTrackFitterStraightTrack(), FitCentralTrack(), KalmanFilter(), SetReferenceTrajectory(), and Smooth().