Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTrackHitSelector Class Referenceabstract

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>

+ Inheritance diagram for DTrackHitSelector:

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
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
kWireBased 
kTimeBased 
kHelical 

Definition at line 37 of file DTrackHitSelector.h.

Constructor & Destructor Documentation

DTrackHitSelector::DTrackHitSelector ( JEventLoop *  loop)

Definition at line 24 of file DTrackHitSelector.cc.

References loop.

DTrackHitSelector::DTrackHitSelector ( )
inline

Definition at line 35 of file DTrackHitSelector.h.

Member Function Documentation

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().

virtual void DTrackHitSelector::GetCDCHits ( fit_type_t  fit_type,
const DReferenceTrajectory rt,
const vector< const DCDCTrackHit * > &  cdchits_in,
vector< const DCDCTrackHit * > &  cdchits_out,
int  N = 20 
) const
pure virtual
virtual void DTrackHitSelector::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
pure virtual
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().

virtual void DTrackHitSelector::GetFDCHits ( fit_type_t  fit_type,
const DReferenceTrajectory rt,
const vector< const DFDCPseudo * > &  fdchits_in,
vector< const DFDCPseudo * > &  fdchits_out,
int  N = 20 
) const
pure virtual
virtual void DTrackHitSelector::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
pure virtual
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  )

Member Data Documentation


The documentation for this class was generated from the following files: