Hall-D Software
alpha
|
The DTrackHitSelector class is a base class for algorithms that will select hits from the drift chamber systems that are likely to belong to a specified trajectory. This class doesn't actually do the hit selection itself, it just provides a standard API so multiple algorithms can be written. It is done this way since at this point in time, we expect at least a couple of algorithms may be tried. Feb. 6, 2009 DL. More...
#include <DTrackHitSelector.h>
Public Types | |
enum | fit_type_t { kWireBased = DTrackFitter::kWireBased, kTimeBased = DTrackFitter::kTimeBased, kHelical } |
Public Member Functions | |
JOBJECT_PUBLIC (DTrackHitSelector) | |
DTrackHitSelector (JEventLoop *loop) | |
DTrackHitSelector () | |
virtual void | GetCDCHits (fit_type_t fit_type, const DReferenceTrajectory *rt, const vector< const DCDCTrackHit * > &cdchits_in, vector< const DCDCTrackHit * > &cdchits_out, int N=20) const =0 |
virtual void | GetFDCHits (fit_type_t fit_type, const DReferenceTrajectory *rt, const vector< const DFDCPseudo * > &fdchits_in, vector< const DFDCPseudo * > &fdchits_out, int N=20) const =0 |
virtual void | GetCDCHits (double Bz, double q, const vector< DTrackFitter::Extrapolation_t > &extrapolations, const vector< const DCDCTrackHit * > &cdchits_in, vector< const DCDCTrackHit * > &cdchits_out, int N=20) const =0 |
virtual void | GetFDCHits (double Bz, double q, const vector< DTrackFitter::Extrapolation_t > &extrapolations, const vector< const DFDCPseudo * > &fdchits_in, vector< const DFDCPseudo * > &fdchits_out, int N) const =0 |
void | GetCDCHits (fit_type_t fit_type, const DReferenceTrajectory *rt, const vector< const DCDCTrackHit * > &cdchits_in, DTrackFitter *fitter, int N=20) const |
void | GetCDCHits (double Bz, double q, const vector< DTrackFitter::Extrapolation_t > &extrapolations, const vector< const DCDCTrackHit * > &cdchits_in, DTrackFitter *fitter, int N) const |
void | GetFDCHits (fit_type_t fit_type, const DReferenceTrajectory *rt, const vector< const DFDCPseudo * > &fdchits_in, DTrackFitter *fitter, int N=20) const |
void | GetFDCHits (double Bz, double q, const vector< DTrackFitter::Extrapolation_t > &extrapolations, const vector< const DFDCPseudo * > &fdchits_in, DTrackFitter *fitter, int N=20) const |
void | GetAllHits (fit_type_t fit_type, const DReferenceTrajectory *rt, const vector< const DCDCTrackHit * > &cdchits_in, const vector< const DFDCPseudo * > &fdchits_in, DTrackFitter *fitter, int N=20) const |
Protected Attributes | |
JEventLoop * | loop |
The DTrackHitSelector class is a base class for algorithms that will select hits from the drift chamber systems that are likely to belong to a specified trajectory. This class doesn't actually do the hit selection itself, it just provides a standard API so multiple algorithms can be written. It is done this way since at this point in time, we expect at least a couple of algorithms may be tried. Feb. 6, 2009 DL.
Definition at line 30 of file DTrackHitSelector.h.
Enumerator | |
---|---|
kWireBased | |
kTimeBased | |
kHelical |
Definition at line 37 of file DTrackHitSelector.h.
DTrackHitSelector::DTrackHitSelector | ( | JEventLoop * | loop | ) |
Definition at line 24 of file DTrackHitSelector.cc.
References loop.
|
inline |
Definition at line 35 of file DTrackHitSelector.h.
void DTrackHitSelector::GetAllHits | ( | fit_type_t | fit_type, |
const DReferenceTrajectory * | rt, | ||
const vector< const DCDCTrackHit * > & | cdchits_in, | ||
const vector< const DFDCPseudo * > & | fdchits_in, | ||
DTrackFitter * | fitter, | ||
int | N = 20 |
||
) | const |
Get all hits from both CDC and FDC and add them to the specified DTrackFitter object
Definition at line 83 of file DTrackHitSelector.cc.
References GetCDCHits(), and GetFDCHits().
Referenced by JEventProcessor_dumpcandidates::evnt(), and DTrackFitter::FindHitsAndFitTrack().
|
pure virtual |
Implemented in DTrackHitSelectorALT2, DTrackHitSelectorTHROWN, and DTrackHitSelectorALT1.
Referenced by DTrackFitter::FindHitsAndFitTrack(), GetAllHits(), and GetCDCHits().
|
pure virtual |
Implemented in DTrackHitSelectorALT2, DTrackHitSelectorTHROWN, and DTrackHitSelectorALT1.
void DTrackHitSelector::GetCDCHits | ( | fit_type_t | fit_type, |
const DReferenceTrajectory * | rt, | ||
const vector< const DCDCTrackHit * > & | cdchits_in, | ||
DTrackFitter * | fitter, | ||
int | N = 20 |
||
) | const |
Get all hits from the CDC and add them to the specified DTrackFitter object
Definition at line 32 of file DTrackHitSelector.cc.
References DTrackFitter::AddHit(), CDCSortByRincreasing(), and GetCDCHits().
void DTrackHitSelector::GetCDCHits | ( | double | Bz, |
double | q, | ||
const vector< DTrackFitter::Extrapolation_t > & | extrapolations, | ||
const vector< const DCDCTrackHit * > & | cdchits_in, | ||
DTrackFitter * | fitter, | ||
int | N | ||
) | const |
Get all hits from the CDC and add them to the specified DTrackFitter object
Definition at line 45 of file DTrackHitSelector.cc.
References DTrackFitter::AddHit(), CDCSortByRincreasing(), and GetCDCHits().
|
pure virtual |
Implemented in DTrackHitSelectorALT2, DTrackHitSelectorTHROWN, and DTrackHitSelectorALT1.
Referenced by DTrackFitter::FindHitsAndFitTrack(), GetAllHits(), and GetFDCHits().
|
pure virtual |
Implemented in DTrackHitSelectorALT2, DTrackHitSelectorTHROWN, and DTrackHitSelectorALT1.
void DTrackHitSelector::GetFDCHits | ( | fit_type_t | fit_type, |
const DReferenceTrajectory * | rt, | ||
const vector< const DFDCPseudo * > & | fdchits_in, | ||
DTrackFitter * | fitter, | ||
int | N = 20 |
||
) | const |
Get all hits from the FDC and add them to the specified DTrackFitter object
Definition at line 58 of file DTrackHitSelector.cc.
References DTrackFitter::AddHit(), FDCSortByZincreasing(), and GetFDCHits().
void DTrackHitSelector::GetFDCHits | ( | double | Bz, |
double | q, | ||
const vector< DTrackFitter::Extrapolation_t > & | extrapolations, | ||
const vector< const DFDCPseudo * > & | fdchits_in, | ||
DTrackFitter * | fitter, | ||
int | N = 20 |
||
) | const |
Get all hits from the FDC and add them to the specified DTrackFitter object
Definition at line 70 of file DTrackHitSelector.cc.
References DTrackFitter::AddHit(), FDCSortByZincreasing(), and GetFDCHits().
DTrackHitSelector::JOBJECT_PUBLIC | ( | DTrackHitSelector | ) |
|
protected |
Definition at line 58 of file DTrackHitSelector.h.
Referenced by DTrackHitSelector(), DTrackHitSelectorTHROWN::FindTrackNumber(), DTrackHitSelectorTHROWN::GetCDCHits(), and DTrackHitSelectorTHROWN::GetFDCHits().