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

#include <DTrackHitSelectorALT2.h>

+ Inheritance diagram for DTrackHitSelectorALT2:

Classes

struct  cdchitdbg_t
 
struct  fdchitdbg_t
 

Public Types

enum  fit_type_t { kWireBased = DTrackFitter::kWireBased, kTimeBased = DTrackFitter::kTimeBased, kHelical }
 

Public Member Functions

 DTrackHitSelectorALT2 (jana::JEventLoop *loop, int32_t runnumber)
 
virtual ~DTrackHitSelectorALT2 ()
 
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) 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

const DMagneticFieldMapbfield
 
int HS_DEBUG_LEVEL
 
bool MAKE_DEBUG_TREES
 
double MIN_HIT_PROB_CDC
 
double MIN_HIT_PROB_FDC
 
double MIN_FDC_SIGMA_ANODE_CANDIDATE
 
double MIN_FDC_SIGMA_CATHODE_CANDIDATE
 
double MIN_FDC_SIGMA_ANODE_WIREBASED
 
double MIN_FDC_SIGMA_CATHODE_WIREBASED
 
double MAX_DOCA
 
TTree * cdchitsel
 
TTree * fdchitsel
 
cdchitdbg_t cdchitdbg
 
fdchitdbg_t fdchitdbg
 

Detailed Description

Definition at line 18 of file DTrackHitSelectorALT2.h.

Member Enumeration Documentation

Enumerator
kWireBased 
kTimeBased 
kHelical 

Definition at line 37 of file DTrackHitSelector.h.

Constructor & Destructor Documentation

DTrackHitSelectorALT2::~DTrackHitSelectorALT2 ( )
virtual

Definition at line 126 of file DTrackHitSelectorALT2.cc.

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

void DTrackHitSelectorALT2::GetCDCHits ( fit_type_t  fit_type,
const DReferenceTrajectory rt,
const vector< const DCDCTrackHit * > &  cdchits_in,
vector< const DCDCTrackHit * > &  cdchits_out,
int  N = 20 
) const
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 343 of file DTrackHitSelectorALT2.cc.

References _DBG_, DReferenceTrajectory::swim_step_t::B, cdchitdbg, cdchitsel, DTrackHitSelectorALT2::cdchitdbg_t::chisq, dir, DTrackHitSelectorALT2::cdchitdbg_t::dist, DReferenceTrajectory::DistToRT(), DTrackHitSelectorALT2::cdchitdbg_t::doca, DTrackHitSelector_cdchit_cmp(), DTrackHitSelector_cdchit_in_cmp(), DTrackHitSelectorALT2::cdchitdbg_t::fit_type, DReferenceTrajectory::GetLastDOCAPoint(), DReferenceTrajectory::GetLastSwimStep(), DReferenceTrajectory::GetMass(), HS_DEBUG_LEVEL, DReferenceTrajectory::swim_step_t::invX0, DTrackHitSelectorALT2::cdchitdbg_t::itheta02, DReferenceTrajectory::swim_step_t::itheta02, DTrackHitSelectorALT2::cdchitdbg_t::itheta02s, DReferenceTrajectory::swim_step_t::itheta02s, DTrackHitSelectorALT2::cdchitdbg_t::itheta02s2, DReferenceTrajectory::swim_step_t::itheta02s2, DTrackHitSelectorALT2::cdchitdbg_t::mass, MAX_DOCA, MIN_HIT_PROB_CDC, DReferenceTrajectory::swim_step_t::mom, ONE_OVER_12, DCoordinateSystem::origin, DTrackHitSelectorALT2::cdchitdbg_t::p, DTrackHitSelectorALT2::cdchitdbg_t::prob, DReferenceTrajectory::q, DTrackHitSelectorALT2::cdchitdbg_t::resi, DCDCWire::ring, DTrackHitSelectorALT2::cdchitdbg_t::s, DTrackHitSelectorALT2::cdchitdbg_t::sig_lambda, DTrackHitSelectorALT2::cdchitdbg_t::sig_phi, DTrackHitSelectorALT2::cdchitdbg_t::sig_pt, DTrackHitSelectorALT2::cdchitdbg_t::sigma, sin(), sqrt(), DCDCWire::straw, DReferenceTrajectory::swim_steps, DCDCTrackHit::tdrift, DTrackHitSelectorALT2::cdchitdbg_t::theta, DCoordinateSystem::udir, DCDCTrackHit::wire, DTrackHitSelectorALT2::cdchitdbg_t::x, DTrackHitSelectorALT2::cdchitdbg_t::y, and DTrackHitSelectorALT2::cdchitdbg_t::z.

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

void DTrackHitSelector::GetCDCHits ( double  Bz,
double  q,
const vector< DTrackFitter::Extrapolation_t > &  extrapolations,
const vector< const DCDCTrackHit * > &  cdchits_in,
DTrackFitter fitter,
int  N 
) const
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().

void DTrackHitSelectorALT2::GetFDCHits ( fit_type_t  fit_type,
const DReferenceTrajectory rt,
const vector< const DFDCPseudo * > &  fdchits_in,
vector< const DFDCPseudo * > &  fdchits_out,
int  N = 20 
) const
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 distance and the distance along the wire.

Implements DTrackHitSelector.

Definition at line 568 of file DTrackHitSelectorALT2.cc.

References _DBG_, alpha, DReferenceTrajectory::swim_step_t::B, DTrackHitSelectorALT2::fdchitdbg_t::chisq, DTrackHitSelectorALT2::fdchitdbg_t::dist, DReferenceTrajectory::DistToRT(), DTrackHitSelectorALT2::fdchitdbg_t::doca, DTrackHitSelector_fdchit_cmp(), DTrackHitSelector_fdchit_in_cmp(), fdchitdbg, fdchitsel, DTrackHitSelectorALT2::fdchitdbg_t::fit_type, DReferenceTrajectory::GetLastDistAlongWire(), DReferenceTrajectory::GetLastDOCAPoint(), DReferenceTrajectory::GetLastSwimStep(), DReferenceTrajectory::GetMass(), HS_DEBUG_LEVEL, DReferenceTrajectory::swim_step_t::invX0, DReferenceTrajectory::swim_step_t::itheta02, DTrackHitSelectorALT2::fdchitdbg_t::itheta02, DReferenceTrajectory::swim_step_t::itheta02s, DTrackHitSelectorALT2::fdchitdbg_t::itheta02s, DReferenceTrajectory::swim_step_t::itheta02s2, DTrackHitSelectorALT2::fdchitdbg_t::itheta02s2, DTrackHitSelector::kHelical, DTrackHitSelectorALT2::fdchitdbg_t::mass, MAX_DOCA, MIN_HIT_PROB_FDC, DReferenceTrajectory::swim_step_t::mom, ONE_OVER_12, DCoordinateSystem::origin, DTrackHitSelectorALT2::fdchitdbg_t::p, DTrackHitSelectorALT2::fdchitdbg_t::prob, DReferenceTrajectory::q, DTrackHitSelectorALT2::fdchitdbg_t::resi, DTrackHitSelectorALT2::fdchitdbg_t::resic, DTrackHitSelectorALT2::fdchitdbg_t::s, DFDCPseudo::s, DTrackHitSelectorALT2::fdchitdbg_t::sig_lambda, DTrackHitSelectorALT2::fdchitdbg_t::sig_phi, DTrackHitSelectorALT2::fdchitdbg_t::sig_pt, DTrackHitSelectorALT2::fdchitdbg_t::sigma_anode, DTrackHitSelectorALT2::fdchitdbg_t::sigma_cathode, sin(), sqrt(), DReferenceTrajectory::swim_steps, DTrackHitSelectorALT2::fdchitdbg_t::theta, tx, DTrackHitSelectorALT2::fdchitdbg_t::u, u, DTrackHitSelectorALT2::fdchitdbg_t::u_cathodes, DCoordinateSystem::udir, DFDCPseudo::w, DFDCPseudo::wire, DTrackHitSelectorALT2::fdchitdbg_t::x, DTrackHitSelectorALT2::fdchitdbg_t::y, and DTrackHitSelectorALT2::fdchitdbg_t::z.

void DTrackHitSelectorALT2::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
virtual

Determine the probability that for each FDC hit that it came from the track with the given trajectory. The probability is based on the residual between the distance of closest approach of the trajectory to the wire and the drift distance and the distance along the wire.

Implements DTrackHitSelector.

Definition at line 838 of file DTrackHitSelectorALT2.cc.

References _DBG_, alpha, DTrackHitSelectorALT2::fdchitdbg_t::chisq, DTrackHitSelectorALT2::fdchitdbg_t::dist, DTrackHitSelectorALT2::fdchitdbg_t::doca, DTrackHitSelector_fdchit_cmp(), DTrackHitSelector_fdchit_in_cmp(), fdchitdbg, fdchitsel, DTrackHitSelectorALT2::fdchitdbg_t::fit_type, HS_DEBUG_LEVEL, DTrackHitSelectorALT2::fdchitdbg_t::itheta02, DTrackHitSelector::kWireBased, MIN_HIT_PROB_FDC, ONE_OVER_12, DCoordinateSystem::origin, DTrackHitSelectorALT2::fdchitdbg_t::p, DTrackHitSelectorALT2::fdchitdbg_t::prob, DTrackHitSelectorALT2::fdchitdbg_t::resi, DTrackHitSelectorALT2::fdchitdbg_t::resic, DTrackHitSelectorALT2::fdchitdbg_t::s, DFDCPseudo::s, DTrackHitSelectorALT2::fdchitdbg_t::sig_lambda, DTrackHitSelectorALT2::fdchitdbg_t::sig_phi, DTrackHitSelectorALT2::fdchitdbg_t::sig_pt, DTrackHitSelectorALT2::fdchitdbg_t::sigma_anode, DTrackHitSelectorALT2::fdchitdbg_t::sigma_cathode, sin(), sqrt(), DTrackHitSelectorALT2::fdchitdbg_t::theta, tx, DTrackHitSelectorALT2::fdchitdbg_t::u, u, DTrackHitSelectorALT2::fdchitdbg_t::u_cathodes, DCoordinateSystem::udir, DFDCPseudo::wire, x, DTrackHitSelectorALT2::fdchitdbg_t::x, DFDCPseudo::xy, DTrackHitSelectorALT2::fdchitdbg_t::y, y, and DTrackHitSelectorALT2::fdchitdbg_t::z.

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

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

DTrackHitSelector::JOBJECT_PUBLIC ( DTrackHitSelector  )
inherited

Member Data Documentation

const DMagneticFieldMap* DTrackHitSelectorALT2::bfield
private

Definition at line 30 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

cdchitdbg_t DTrackHitSelectorALT2::cdchitdbg
mutableprivate

Definition at line 67 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetCDCHits().

TTree* DTrackHitSelectorALT2::cdchitsel
private

Definition at line 42 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetCDCHits().

fdchitdbg_t DTrackHitSelectorALT2::fdchitdbg
mutableprivate

Definition at line 95 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetFDCHits().

TTree* DTrackHitSelectorALT2::fdchitsel
private

Definition at line 43 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetFDCHits().

int DTrackHitSelectorALT2::HS_DEBUG_LEVEL
private

Definition at line 32 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), GetCDCHits(), and GetFDCHits().

bool DTrackHitSelectorALT2::MAKE_DEBUG_TREES
private

Definition at line 33 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

double DTrackHitSelectorALT2::MAX_DOCA
private

Definition at line 40 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), GetCDCHits(), and GetFDCHits().

double DTrackHitSelectorALT2::MIN_FDC_SIGMA_ANODE_CANDIDATE
private

Definition at line 36 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

double DTrackHitSelectorALT2::MIN_FDC_SIGMA_ANODE_WIREBASED
private

Definition at line 38 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

double DTrackHitSelectorALT2::MIN_FDC_SIGMA_CATHODE_CANDIDATE
private

Definition at line 37 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

double DTrackHitSelectorALT2::MIN_FDC_SIGMA_CATHODE_WIREBASED
private

Definition at line 39 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2().

double DTrackHitSelectorALT2::MIN_HIT_PROB_CDC
private

Definition at line 34 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetCDCHits().

double DTrackHitSelectorALT2::MIN_HIT_PROB_FDC
private

Definition at line 35 of file DTrackHitSelectorALT2.h.

Referenced by DTrackHitSelectorALT2(), and GetFDCHits().


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