QwAnalysis
|
This module is used to identify good track segments versus ghost tracks/hits. More...
#include <QwTrackingTreeSort.h>
Public Member Functions | |
QwTrackingTreeSort () | |
virtual | ~QwTrackingTreeSort () |
void | SetDebugLevel (const int debuglevel) |
int | rcTreeConnSort (QwTreeLine *head, EQwRegionID region) |
The best (by chi^2) treelines are select. More... | |
int | connectiv (char *ca, int *array, int *isvoid, char size, int idx) |
int | rcCommonWires (const QwTreeLine *line1, const QwTreeLine *line2) |
Counts the number of common wires shared between two tree lines. More... | |
int | rcCommonWires_r3 (const QwTreeLine *line1, const QwTreeLine *line2) |
int | connectarray (char *ca, int *array, int *isvoid, char size, int idx) |
void | bestunconnected (char *ca, int *array, int *isvoid, double *chia, int size, int idx) |
int | bestconnected (char *ca, int *array, int *isvoid, double *chia, int size, int idx) |
int | globalconnectiv (char *ca, int *array, int *isvoid, int size, int idx) |
int | rcPartConnSort (std::vector< QwPartialTrack * > head) |
int | rcPTCommonWires (const QwPartialTrack *track1, const QwPartialTrack *track2) |
Data Fields | |
double | doubletrack |
int | good |
Private Attributes | |
int | fDebug |
This module is used to identify good track segments versus ghost tracks/hits.
Definition at line 22 of file QwTrackingTreeSort.h.
QwTrackingTreeSort::QwTrackingTreeSort | ( | ) |
Initializes the module responsible for sorting tracks according to chi^2
Definition at line 40 of file QwTrackingTreeSort.cc.
References doubletrack, fDebug, and good.
|
virtual |
Definition at line 50 of file QwTrackingTreeSort.cc.
int QwTrackingTreeSort::bestconnected | ( | char * | ca, |
int * | array, | ||
int * | isvoid, | ||
double * | chia, | ||
int | size, | ||
int | idx | ||
) |
Definition at line 181 of file QwTrackingTreeSort.cc.
References globalconnectiv(), and good.
Referenced by rcTreeConnSort().
void QwTrackingTreeSort::bestunconnected | ( | char * | ca, |
int * | array, | ||
int * | isvoid, | ||
double * | chia, | ||
int | size, | ||
int | idx | ||
) |
Definition at line 99 of file QwTrackingTreeSort.cc.
References doubletrack, and good.
Referenced by rcPartConnSort(), and rcTreeConnSort().
int QwTrackingTreeSort::connectarray | ( | char * | ca, |
int * | array, | ||
int * | isvoid, | ||
char | size, | ||
int | idx | ||
) |
Definition at line 77 of file QwTrackingTreeSort.cc.
Referenced by rcPartConnSort(), and rcTreeConnSort().
int QwTrackingTreeSort::connectiv | ( | char * | ca, |
int * | array, | ||
int * | isvoid, | ||
char | size, | ||
int | idx | ||
) |
Definition at line 59 of file QwTrackingTreeSort.cc.
Referenced by globalconnectiv(), rcPartConnSort(), and rcTreeConnSort().
int QwTrackingTreeSort::globalconnectiv | ( | char * | ca, |
int * | array, | ||
int * | isvoid, | ||
int | size, | ||
int | idx | ||
) |
Definition at line 155 of file QwTrackingTreeSort.cc.
References Qw::c, and connectiv().
Referenced by bestconnected().
int QwTrackingTreeSort::rcCommonWires | ( | const QwTreeLine * | treeline1, |
const QwTreeLine * | treeline2 | ||
) |
Counts the number of common wires shared between two tree lines.
The return value is the an integer score between 0 and 100, where 100 means that all wires are common. One tree line as subset of the other will result in a score of 100. The tree lines are not modified by this function.
treeline1 | first tree line |
treeline2 | second tree line |
Definition at line 312 of file QwTrackingTreeSort.cc.
References DLAYERS, QwTreeLine::fHits, VQwTrackingElement::GetDetectorInfo(), QwDetectorInfo::GetPlane(), and MAXHITPERLINE.
Referenced by rcPTCommonWires(), and rcTreeConnSort().
int QwTrackingTreeSort::rcCommonWires_r3 | ( | const QwTreeLine * | line1, |
const QwTreeLine * | line2 | ||
) |
Definition at line 253 of file QwTrackingTreeSort.cc.
References QwTreeLine::GetListOfHits(), and QwTreeLine::GetNumberOfHits().
Referenced by rcTreeConnSort().
int QwTrackingTreeSort::rcPartConnSort | ( | std::vector< QwPartialTrack * > | head | ) |
Definition at line 577 of file QwTrackingTreeSort.cc.
References bestunconnected(), connectarray(), connectiv(), fDebug, QwPartialTrack::fIsVoid, QwPartialTrack::GetChiWeight(), good, and rcPTCommonWires().
Referenced by QwTrackingWorker::ProcessEvent().
int QwTrackingTreeSort::rcPTCommonWires | ( | const QwPartialTrack * | track1, |
const QwPartialTrack * | track2 | ||
) |
Definition at line 220 of file QwTrackingTreeSort.cc.
References QwPartialTrack::GetListOfTreeLines(), kDirectionV, kDirectionX, and rcCommonWires().
Referenced by rcPartConnSort().
int QwTrackingTreeSort::rcTreeConnSort | ( | QwTreeLine * | treelinelist, |
EQwRegionID | region | ||
) |
The best (by chi^2) treelines are select.
treelinelist | list of tree lines |
region | region |
Definition at line 397 of file QwTrackingTreeSort.cc.
References bestconnected(), bestunconnected(), connectarray(), connectiv(), fDebug, good, QwTreeLine::IsVoid(), kRegionID3, QwTreeLine::next, rcCommonWires(), rcCommonWires_r3(), QwTreeLine::SetValid(), and QwTreeLine::SetVoid().
Referenced by QwTrackingWorker::ProcessEvent().
|
inline |
Definition at line 29 of file QwTrackingTreeSort.h.
References fDebug.
Referenced by QwTrackingWorker::QwTrackingWorker().
double QwTrackingTreeSort::doubletrack |
Definition at line 29 of file QwTrackingTreeSort.h.
Referenced by bestunconnected(), and QwTrackingTreeSort().
|
private |
Definition at line 52 of file QwTrackingTreeSort.h.
Referenced by QwTrackingTreeSort(), rcPartConnSort(), rcTreeConnSort(), and SetDebugLevel().
int QwTrackingTreeSort::good |
Definition at line 32 of file QwTrackingTreeSort.h.
Referenced by bestconnected(), bestunconnected(), QwTrackingTreeSort(), rcPartConnSort(), and rcTreeConnSort().