Hall-D Software
alpha
|
#include <DTrackFinder.h>
Classes | |
class | cdc_hit_t |
class | cdc_segment_t |
class | cdc_track_t |
class | fdc_hit_t |
class | fdc_segment_t |
Public Types | |
enum | state_vector { state_x, state_y, state_tx, state_ty } |
Public Member Functions | |
JOBJECT_PUBLIC (DTrackFinder) | |
DTrackFinder () | |
virtual | ~DTrackFinder () |
void | Reset (void) |
void | AddHit (const DCDCTrackHit *hit) |
void | AddHit (const DFDCPseudo *hit) |
bool | FindFDCSegments (void) |
bool | LinkFDCSegments (void) |
bool | FindAxialSegments (void) |
bool | LinkCDCSegments (void) |
bool | MatchCDCHit (const DVector3 &vhat, const DVector3 &pos0, const DCDCTrackHit *hit, double cut) |
bool | MatchCDCStereoHit (const DVector3 &tdir, const DVector3 &t0, const DCDCTrackHit *hit) |
const vector< cdc_track_t > & | GetCDCTracks (void) const |
const vector< fdc_segment_t > & | GetFDCTracks (void) const |
double | FindDoca (double z, const DMatrix4x1 &S, const DVector3 &wdir, const DVector3 &origin, DVector3 *poca=NULL) const |
double | FindDoca (const DVector3 &pos1, const DVector3 &mom1, const DVector3 &pos2, const DVector3 &mom2, DVector3 *poca=NULL) const |
bool | FindIntersectionsWithCylinder (double R, const DVector3 &dir, const DVector3 &pos, DVector3 &out1, DVector3 &out2) const |
bool | FindIntersectionWithPlane (const DVector3 &origin, const DVector3 &norm, const DVector3 &pos, const DVector3 &dir, DVector3 &outpos) const |
Private Attributes | |
TH1F * | hCDCMatch_Axial |
TH1F * | hCDCMatch_Stereo |
TH1F * | hCDCMatch_PairD |
TH1I * | hFDCLayer |
TH1I * | hFDCLayerRaw |
TH1I * | hFDCLayerFirst |
vector< cdc_hit_t > | axial_hits |
vector< cdc_hit_t > | stereo_hits |
vector< cdc_segment_t > | axial_segments |
vector< cdc_track_t > | cdc_tracks |
vector< fdc_hit_t > | fdc_hits |
vector< fdc_segment_t > | fdc_segments [4] |
vector< fdc_segment_t > | fdc_tracks |
bool | COSMICS |
bool | DEBUG_HISTS |
bool | VERBOSE |
double | CDC_MATCH_RADIUS |
double | CDC_MATCH_PHI |
double | CDC_COSMIC_MATCH_PHI |
Definition at line 22 of file DTrackFinder.h.
Enumerator | |
---|---|
state_x | |
state_y | |
state_tx | |
state_ty |
Definition at line 29 of file DTrackFinder.h.
DTrackFinder::DTrackFinder | ( | ) |
Definition at line 27 of file DTrackFinder.cc.
References CDC_COSMIC_MATCH_PHI, CDC_MATCH_PHI, CDC_MATCH_RADIUS, COSMICS, DEBUG_HISTS, hCDCMatch_Axial, hCDCMatch_PairD, hFDCLayer, hFDCLayerFirst, hFDCLayerRaw, and VERBOSE.
|
virtual |
Definition at line 61 of file DTrackFinder.cc.
void DTrackFinder::AddHit | ( | const DCDCTrackHit * | hit | ) |
Definition at line 98 of file DTrackFinder.cc.
References axial_hits, DCDCWire::ring, stereo_hits, and DCDCTrackHit::wire.
void DTrackFinder::AddHit | ( | const DFDCPseudo * | hit | ) |
Definition at line 93 of file DTrackFinder.cc.
References fdc_hits.
bool DTrackFinder::FindAxialSegments | ( | void | ) |
Definition at line 108 of file DTrackFinder.cc.
References axial_hits, axial_segments, CDC_MATCH_RADIUS, COSMICS, DEBUG_HISTS, dir, DTrackFinder_cdc_hit_cmp(), DTrackFinder_cdc_hit_cosmics_cmp(), hCDCMatch_PairD, DCoordinateSystem::origin, DCDCWire::ring, DCDCWire::straw, and VERBOSE.
double DTrackFinder::FindDoca | ( | double | z, |
const DMatrix4x1 & | S, | ||
const DVector3 & | wdir, | ||
const DVector3 & | origin, | ||
DVector3 * | poca = NULL |
||
) | const |
Definition at line 442 of file DTrackFinder.cc.
References S, state_tx, state_ty, state_x, and state_y.
Referenced by DTrackFitterStraightTrack::FitTrack().
double DTrackFinder::FindDoca | ( | const DVector3 & | pos1, |
const DVector3 & | mom1, | ||
const DVector3 & | pos2, | ||
const DVector3 & | mom2, | ||
DVector3 * | poca = NULL |
||
) | const |
Definition at line 415 of file DTrackFinder.cc.
bool DTrackFinder::FindFDCSegments | ( | void | ) |
Definition at line 470 of file DTrackFinder.cc.
References ADJACENT_MATCH_RADIUS, DEBUG_HISTS, DTrackFinder_fdc_hit_cmp(), fdc_hits, fdc_segments, hFDCLayer, hFDCLayerFirst, hFDCLayerRaw, and MATCH_RADIUS.
bool DTrackFinder::FindIntersectionsWithCylinder | ( | double | R, |
const DVector3 & | dir, | ||
const DVector3 & | pos, | ||
DVector3 & | out1, | ||
DVector3 & | out2 | ||
) | const |
Definition at line 820 of file DTrackFinder.cc.
References sqrt().
bool DTrackFinder::FindIntersectionWithPlane | ( | const DVector3 & | origin, |
const DVector3 & | norm, | ||
const DVector3 & | pos, | ||
const DVector3 & | dir, | ||
DVector3 & | outpos | ||
) | const |
Definition at line 803 of file DTrackFinder.cc.
References e.
|
inline |
Definition at line 123 of file DTrackFinder.h.
References cdc_tracks.
|
inline |
Definition at line 124 of file DTrackFinder.h.
References fdc_tracks.
DTrackFinder::JOBJECT_PUBLIC | ( | DTrackFinder | ) |
bool DTrackFinder::LinkCDCSegments | ( | void | ) |
Definition at line 207 of file DTrackFinder.cc.
References DTrackFinder::cdc_track_t::axial_hits, axial_hits, axial_segments, CDC_COSMIC_MATCH_PHI, CDC_MATCH_PHI, CDC_MATCH_RADIUS, cdc_tracks, COSMICS, DEBUG_HISTS, DTrackFinder::cdc_track_t::dir, DTrackFinder_cdc_hit_cmp(), DTrackFinder_cdc_hit_cosmics_cmp(), DTrackFinder::cdc_track_t::FindStateVector(), hCDCMatch_Axial, MatchCDCHit(), MatchCDCStereoHit(), DTrackFinder::cdc_track_t::stereo_hits, stereo_hits, temp, and VERBOSE.
bool DTrackFinder::LinkFDCSegments | ( | void | ) |
Definition at line 580 of file DTrackFinder.cc.
References fdc_segments, fdc_tracks, MATCH_RADIUS, S, state_tx, state_ty, state_x, state_y, and tx.
bool DTrackFinder::MatchCDCHit | ( | const DVector3 & | vhat, |
const DVector3 & | pos0, | ||
const DCDCTrackHit * | hit, | ||
double | cut | ||
) |
Definition at line 308 of file DTrackFinder.cc.
References DCoordinateSystem::origin, DCoordinateSystem::udir, and DCDCTrackHit::wire.
Referenced by LinkCDCSegments().
bool DTrackFinder::MatchCDCStereoHit | ( | const DVector3 & | tdir, |
const DVector3 & | t0, | ||
const DCDCTrackHit * | hit | ||
) |
Definition at line 326 of file DTrackFinder.cc.
References DCoordinateSystem::L, DCoordinateSystem::origin, DCoordinateSystem::udir, and DCDCTrackHit::wire.
Referenced by LinkCDCSegments().
void DTrackFinder::Reset | ( | void | ) |
Definition at line 66 of file DTrackFinder.cc.
References axial_hits, axial_segments, cdc_tracks, fdc_hits, fdc_segments, fdc_tracks, and stereo_hits.
|
private |
Definition at line 143 of file DTrackFinder.h.
Referenced by AddHit(), FindAxialSegments(), LinkCDCSegments(), and Reset().
|
private |
Definition at line 145 of file DTrackFinder.h.
Referenced by FindAxialSegments(), LinkCDCSegments(), and Reset().
|
private |
Definition at line 153 of file DTrackFinder.h.
Referenced by DTrackFinder(), and LinkCDCSegments().
|
private |
Definition at line 153 of file DTrackFinder.h.
Referenced by DTrackFinder(), and LinkCDCSegments().
|
private |
Definition at line 153 of file DTrackFinder.h.
Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().
|
private |
Definition at line 146 of file DTrackFinder.h.
Referenced by GetCDCTracks(), LinkCDCSegments(), and Reset().
|
private |
Definition at line 152 of file DTrackFinder.h.
Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().
|
private |
Definition at line 152 of file DTrackFinder.h.
Referenced by DTrackFinder(), FindAxialSegments(), FindFDCSegments(), and LinkCDCSegments().
|
private |
Definition at line 148 of file DTrackFinder.h.
Referenced by AddHit(), FindFDCSegments(), and Reset().
|
private |
Definition at line 149 of file DTrackFinder.h.
Referenced by FindFDCSegments(), LinkFDCSegments(), and Reset().
|
private |
Definition at line 150 of file DTrackFinder.h.
Referenced by GetFDCTracks(), LinkFDCSegments(), and Reset().
|
private |
Definition at line 141 of file DTrackFinder.h.
Referenced by DTrackFinder(), and LinkCDCSegments().
|
private |
Definition at line 141 of file DTrackFinder.h.
Referenced by DTrackFinder(), and FindAxialSegments().
|
private |
Definition at line 141 of file DTrackFinder.h.
|
private |
Definition at line 142 of file DTrackFinder.h.
Referenced by DTrackFinder(), and FindFDCSegments().
|
private |
Definition at line 142 of file DTrackFinder.h.
Referenced by DTrackFinder(), and FindFDCSegments().
|
private |
Definition at line 142 of file DTrackFinder.h.
Referenced by DTrackFinder(), and FindFDCSegments().
|
private |
Definition at line 144 of file DTrackFinder.h.
Referenced by AddHit(), LinkCDCSegments(), and Reset().
|
private |
Definition at line 152 of file DTrackFinder.h.
Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().