Hall-D Software
alpha
|
#include <DTrackHitSelectorALT1.h>
Classes | |
struct | cdchitdbg_t |
struct | fdchitdbg_t |
Public Types | |
enum | fit_type_t { kWireBased = DTrackFitter::kWireBased, kTimeBased = DTrackFitter::kTimeBased, kHelical } |
Public Member Functions | |
DTrackHitSelectorALT1 (jana::JEventLoop *loop) | |
virtual | ~DTrackHitSelectorALT1 () |
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 |
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 |
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 |
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 |
JOBJECT_PUBLIC (DTrackHitSelector) | |
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 |
Private Attributes | |
int | HS_DEBUG_LEVEL |
bool | MAKE_DEBUG_TREES |
TTree * | cdchitsel |
TTree * | fdchitsel |
cdchitdbg_t | cdchitdbg |
fdchitdbg_t | fdchitdbg |
Definition at line 16 of file DTrackHitSelectorALT1.h.
|
inherited |
Enumerator | |
---|---|
kWireBased | |
kTimeBased | |
kHelical |
Definition at line 37 of file DTrackHitSelector.h.
DTrackHitSelectorALT1::DTrackHitSelectorALT1 | ( | jana::JEventLoop * | loop | ) |
Definition at line 45 of file DTrackHitSelectorALT1.cc.
References _DBG__, cdchitdbg, cdchitsel, fdchitdbg, fdchitsel, HS_DEBUG_LEVEL, and MAKE_DEBUG_TREES.
|
virtual |
Definition at line 95 of file DTrackHitSelectorALT1.cc.
|
inherited |
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 DTrackHitSelector::GetCDCHits(), and DTrackHitSelector::GetFDCHits().
Referenced by JEventProcessor_dumpcandidates::evnt(), and DTrackFitter::FindHitsAndFitTrack().
|
virtual |
Determine the probability that for each CDC hit that it came from the track with the given trajectory.
This will calculate a probability for each CDC hit that it came from the track represented by the given DReference trajectory. The probability is based on the residual between the distance of closest approach of the trajectory to the wire and the drift time for time-based tracks and the distance to the wire for wire-based tracks.
Implements DTrackHitSelector.
Definition at line 103 of file DTrackHitSelectorALT1.cc.
References _DBG_, ansi_bold, ansi_green, ansi_normal, cdchitdbg, cdchitsel, DTrackHitSelectorALT1::cdchitdbg_t::chisq, DTrackHitSelectorALT1::cdchitdbg_t::dist, DReferenceTrajectory::DistToRT(), DTrackHitSelectorALT1::cdchitdbg_t::doca, DTrackHitSelector_cdchit_cmp(), DTrackHitSelectorALT1::cdchitdbg_t::fit_type, DReferenceTrajectory::GetLastDOCAPoint(), DReferenceTrajectory::GetLastSwimStep(), DReferenceTrajectory::GetMass(), HS_DEBUG_LEVEL, DTrackHitSelectorALT1::cdchitdbg_t::itheta02, DReferenceTrajectory::swim_step_t::itheta02, DTrackHitSelectorALT1::cdchitdbg_t::itheta02s, DReferenceTrajectory::swim_step_t::itheta02s, DTrackHitSelectorALT1::cdchitdbg_t::itheta02s2, DReferenceTrajectory::swim_step_t::itheta02s2, DTrackHitSelector::kHelical, DTrackHitSelector::kTimeBased, DTrackHitSelector::kWireBased, DTrackHitSelectorALT1::cdchitdbg_t::mass, DReferenceTrajectory::swim_step_t::mom, DTrackHitSelectorALT1::cdchitdbg_t::mom_factor, ONE_OVER_SQRT12, DTrackHitSelectorALT1::cdchitdbg_t::p, DTrackHitSelectorALT1::cdchitdbg_t::prob, DTrackHitSelectorALT1::cdchitdbg_t::resi, DCDCWire::ring, DTrackHitSelectorALT1::cdchitdbg_t::s, DTrackHitSelectorALT1::cdchitdbg_t::s_factor, sigma, DTrackHitSelectorALT1::cdchitdbg_t::sigma, DTrackHitSelectorALT1::cdchitdbg_t::sigma_total, sqrt(), DCDCWire::straw, DReferenceTrajectory::swim_steps, DCDCTrackHit::tdrift, DTrackHitSelectorALT1::cdchitdbg_t::theta, DCDCTrackHit::wire, DTrackHitSelectorALT1::cdchitdbg_t::x, DTrackHitSelectorALT1::cdchitdbg_t::y, and DTrackHitSelectorALT1::cdchitdbg_t::z.
|
inlinevirtual |
Implements DTrackHitSelector.
Definition at line 23 of file DTrackHitSelectorALT1.h.
|
inherited |
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 DTrackHitSelector::GetCDCHits().
|
inherited |
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 DTrackHitSelector::GetCDCHits().
|
virtual |
Determine the probability that for each FDC hit that it came from the track with the given trajectory.
This will calculate a probability for each FDC hit that it came from the track represented by the given DReference trajectory. The probability is based on the residual between the distance of closest approach of the trajectory to the wire and the drift time and the distance along the wire.
Implements DTrackHitSelector.
Definition at line 294 of file DTrackHitSelectorALT1.cc.
References _DBG_, ansi_blue, ansi_bold, ansi_normal, DReferenceTrajectory::DistToRT(), DTrackHitSelector_fdchit_cmp(), DReferenceTrajectory::GetMass(), HS_DEBUG_LEVEL, DTrackHitSelector::kHelical, DReferenceTrajectory::swim_step_t::mom, DCoordinateSystem::origin, DReferenceTrajectory::swim_steps, DFDCPseudo::wire, and DFDCPseudo::xy.
|
inlinevirtual |
Implements DTrackHitSelector.
Definition at line 24 of file DTrackHitSelectorALT1.h.
|
inherited |
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 DTrackHitSelector::GetFDCHits().
|
inherited |
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 DTrackHitSelector::GetFDCHits().
|
inherited |
|
mutableprivate |
Definition at line 56 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1(), and GetCDCHits().
|
private |
Definition at line 31 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1(), and GetCDCHits().
|
mutableprivate |
Definition at line 91 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1().
|
private |
Definition at line 32 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1().
|
private |
Definition at line 25 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1(), GetCDCHits(), and GetFDCHits().
|
protectedinherited |
Definition at line 58 of file DTrackHitSelector.h.
Referenced by DTrackHitSelector::DTrackHitSelector(), DTrackHitSelectorTHROWN::FindTrackNumber(), DTrackHitSelectorTHROWN::GetCDCHits(), and DTrackHitSelectorTHROWN::GetFDCHits().
|
private |
Definition at line 29 of file DTrackHitSelectorALT1.h.
Referenced by DTrackHitSelectorALT1().