8 #ifndef _DTrackFitterALT1_
9 #define _DTrackFitterALT1_
18 #include <JANA/JFactory.h>
19 #include <JANA/JGeometry.h>
93 double ChiSq(vector<resiInfo> &residuals,
double *chisq_ptr=NULL,
int *dof_ptr=NULL);
98 void FilterGood(
DMatrix &my_resiv, vector<bool> &my_good, vector<bool> &good_all);
118 vector<DReferenceTrajectory*>
rtv;
162 #endif // _DTrackFitterALT1_
string MATERIAL_MAP_MODEL
TH2F * chisq_vs_p_vs_theta
double dist
Effective wire shifts due to drift time.
TH1F * cdc_single_hit_prob
The DTrackFitter class is a base class for different charged track fitting algorithms. It does not actually fit the track itself, but provides the interface and some common support features most algorthims will need to implement.
double u_lorentz
Lorentz correction to u_dist ( u = u_dist + u_lorentz )
DReferenceTrajectory * tmprt
TH2F * initial_chisq_vs_Npasses
void PrintChisqElements(DMatrix &resiv, DMatrix &cov_meas, DMatrix &cov_muls, DMatrix &weights)
double u_err
Errors on distance along the wire (for FDC cathodes)
TH2F * nhits_final_vs_initial
x-coordinate in RT coordinate system in cm
vector< bool > GetResiInfo(DMatrix &state, const swim_step_t *start_step, DReferenceTrajectory *rt, hitsInfo &hinfo, vector< resiInfo > &residuals)
void FilterGood(DMatrix &my_resiv, vector< bool > &my_good, vector< bool > &good_all)
TH2F * residuals_fdc_anode
class DFDCPseudo: definition for a reconstructed point in the FDC
DReferenceTrajectory * rt
DCoordinateSystem * target
TH3F * residuals_fdc_cathode_vs_s
unsigned int LEAST_SQUARES_MIN_HITS
DTrackFitterALT1(JEventLoop *loop)
void ForceLRTruth(JEventLoop *loop, DReferenceTrajectory *rt, hitsInfo &hinfo)
const DCoordinateSystem * wire
Wire definitions.
z-momentum in RT coordinate system in GeV/c
bool good
Set by GetResiInfo if dist is used.
void GetHits(fit_type_t fit_type, DReferenceTrajectory *rt, hitsInfo &hinfo)
TH3F * cdcdoca_vs_dist_vs_ring
bool CDC_USE_PARAMETERIZED_SIGMA
DReferenceTrajectory::swim_step_t swim_step_t
TH2F * chisq_final_vs_initial
TH1F * fdc_double_hit_prob
fit_status_t FitTrack(void)
position-coordinate in RT coordinate system in cm perpendicular to x both and momentum direction ...
bool good_u
Set by GetResiInfo if u_dist is used.
TH1F * fdc_single_hit_prob
x-momentum in RT coordinate system in GeV/c
y-momentum in RT coordinate system in GeV/c
double err
Errors on drift time (or wire position) measurement.
<A href="index.html#legend"> <IMG src="CORE.png" width="100"> </A>
DMatrix cov_meas
Measurement errors of hits (diagonal Nmeasurements x Nmeasurements)
double ChiSq(fit_type_t fit_type, DReferenceTrajectory *rt, double *chisq_ptr=NULL, int *dof_ptr=NULL, vector< pull_t > *pulls_ptr=NULL)
TH1F * cdc_double_hit_prob
DMatrix weights
Inverse of cov_meas + cov_muls.
TH2F * residuals_fdc_cathode
<A href="index.html#legend"> <IMG src="ND.png" width="100"> <IMG src="DEP.png" width="100"> <...
TH3F * residuals_fdc_anode_vs_s
double LEAST_SQUARES_MAX_E2NORM
TH3F * residuals_cdc_vs_s
vector< DReferenceTrajectory * > rtv
vector< hitInfo > hitsInfo
fit_status_t LeastSquaresB(hitsInfo &hinfo, DReferenceTrajectory *rt)
void FillDebugHists(DReferenceTrajectory *rt, DVector3 &vertex_pos, DVector3 &vertex_mom)
DMatrix cov_muls
Covariance of hits due to multiple scattering (Nmeasurements x Nmeasurements)
double u_dist
Distances along the wire (for FDC cathodes)
DMatrix cov_parm
Covariance of fit parameters (Nparms x Nparms (where Nparms=5))
DMatrix resiv
residuals vector (Nmeasurements x 1)