3 #ifndef QWTRACKINGTREECOMBINE_H
4 #define QWTRACKINGTREECOMBINE_H
22 #define MAGNET_CENTER 275.0 //PLACEHOLDER VALUE
25 #warning Defining DLAYERS outside of the globals.h header file!
72 double& slope,
double& offset,
double cov[3],
double& chi,
75 double& slope,
double& offset,
double cov[3],
double& chi,
76 const std::vector<QwHit*> hits,
double z1,
int wire_offset );
83 double x1,
double x2,
double dx1,
double dx2,
double Dx,
double z1,
double dz,
85 int dlayer,
int tlayer,
int iteration,
int stay_tuned,
double width);
88 double x1,
double x2,
double z1,
double z2,
101 bool drop_worst_hit);
109 const std::vector<QwTreeLine*>& treelines_x,
110 const std::vector<QwTreeLine*>& treelines_u,
111 const std::vector<QwTreeLine*>& treelines_v,
123 double *signedresidual,
124 bool drop_worst_hit);
151 #endif // QWTRACKINGTREECOMBINE_H
int fMaxMissedWires
Maximum number of missed wires in region 3.
bool TlCheckForX(double x1, double x2, double dx1, double dx2, double Dx, double z1, double dz, QwTreeLine *treefill, QwHitContainer *hitlist, int dlayer, int tlayer, int iteration, int stay_tuned, double width)
int TlMatchHits(double x1, double x2, double z1, double z2, QwTreeLine *treeline, QwHitContainer *hitlist, int tlayers)
void SetMaxRoad(const double maxroad)
Set the maximum road width.
QwPartialTrack * r3_PartialTrackFit(const QwTreeLine *wu, const QwTreeLine *wv)
A container for the pattern databases for each detector region.
virtual ~QwTrackingTreeCombine()
void SetMaxXRoad(const double maxxroad)
Set the maximum X road width (?)
bool InAcceptance(EQwDetectorPackage package, EQwRegionID region, double cx, double mx, double cy, double my)
void TlTreeLineSort(QwTreeLine *tl, QwHitContainer *hl, EQwDetectorPackage package, EQwRegionID region, EQwDirectionID dir, unsigned long bins, int tlayer, int dlayer, double width)
int fMaxMissedPlanes
Maximum number of missed planes in region 2.
void SetGeometry(const QwGeometry &geometry)
Set the geometry.
std::vector< QwPartialTrack * > TlTreeCombine(const std::vector< QwTreeLine * > &treelines_x, const std::vector< QwTreeLine * > &treelines_u, const std::vector< QwTreeLine * > &treelines_v, EQwDetectorPackage package, EQwRegionID region, int tlayer, int dlayer)
Contains a tracked event, i.e. all information from hits to tracks.
int r2_PartialTrackFit(const int num_hits, QwHit **hits, double *fit, double *cov, double &chi2, double *signedresidual, bool drop_worst_hit)
bool fDropWorstHit
Drop the hit with largest residual and attempt partial track fit again in region 2.
void SetDebugLevel(const int debuglevel)
Set the debug level.
int SelectLeftRightHit(double *xresult, double dist_cut, QwHitContainer *hitlist, QwHit **ha, double Dx=0)
Select the left or right hit assignment for HDC hits.
One-dimensional (u, v, or x) track stubs and associated hits.
void r2_TreelineFit(double &slope, double &offset, double cov[3], double &chi, QwHit **hits, int n)
Collection of QwDetectorInfo pointers that specifies an experimental geometry.
void SelectPermutationOfHits(int i, int mul, int l, int *r, QwHit *hx[DLAYERS][MAXHITPERLINE], QwHit **ha)
int selectx(double *xresult, double dist_cut, QwHit **hitarray, QwHit **ha)
Combines track segments and performs line fitting.
void r3_TreelineFit(double &slope, double &offset, double cov[3], double &chi, const std::vector< QwHit * > hits, double z1, int wire_offset)
Hit structure uniquely defining each hit.
int contains(double var, QwHit **arr, int len)
Contains the straight part of a track in one region only.
QwPartialTrack * TcTreeLineCombine(QwTreeLine *wu, QwTreeLine *wv, QwTreeLine *wx, int tlayer, bool drop_worst_hit)
The.