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

#include <DTrackFinder.h>

+ Inheritance diagram for DTrackFinder:

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_taxial_hits
 
vector< cdc_hit_tstereo_hits
 
vector< cdc_segment_taxial_segments
 
vector< cdc_track_tcdc_tracks
 
vector< fdc_hit_tfdc_hits
 
vector< fdc_segment_tfdc_segments [4]
 
vector< fdc_segment_tfdc_tracks
 
bool COSMICS
 
bool DEBUG_HISTS
 
bool VERBOSE
 
double CDC_MATCH_RADIUS
 
double CDC_MATCH_PHI
 
double CDC_COSMIC_MATCH_PHI
 

Detailed Description

Definition at line 22 of file DTrackFinder.h.

Member Enumeration Documentation

Enumerator
state_x 
state_y 
state_tx 
state_ty 

Definition at line 29 of file DTrackFinder.h.

Constructor & Destructor Documentation

DTrackFinder::~DTrackFinder ( )
virtual

Definition at line 61 of file DTrackFinder.cc.

Member Function Documentation

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.

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

const vector<cdc_track_t>& DTrackFinder::GetCDCTracks ( void  ) const
inline

Definition at line 123 of file DTrackFinder.h.

References cdc_tracks.

const vector<fdc_segment_t>& DTrackFinder::GetFDCTracks ( void  ) const
inline

Definition at line 124 of file DTrackFinder.h.

References fdc_tracks.

DTrackFinder::JOBJECT_PUBLIC ( DTrackFinder  )
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 
)
void DTrackFinder::Reset ( void  )

Member Data Documentation

vector<cdc_hit_t> DTrackFinder::axial_hits
private

Definition at line 143 of file DTrackFinder.h.

Referenced by AddHit(), FindAxialSegments(), LinkCDCSegments(), and Reset().

vector<cdc_segment_t> DTrackFinder::axial_segments
private

Definition at line 145 of file DTrackFinder.h.

Referenced by FindAxialSegments(), LinkCDCSegments(), and Reset().

double DTrackFinder::CDC_COSMIC_MATCH_PHI
private

Definition at line 153 of file DTrackFinder.h.

Referenced by DTrackFinder(), and LinkCDCSegments().

double DTrackFinder::CDC_MATCH_PHI
private

Definition at line 153 of file DTrackFinder.h.

Referenced by DTrackFinder(), and LinkCDCSegments().

double DTrackFinder::CDC_MATCH_RADIUS
private

Definition at line 153 of file DTrackFinder.h.

Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().

vector<cdc_track_t> DTrackFinder::cdc_tracks
private

Definition at line 146 of file DTrackFinder.h.

Referenced by GetCDCTracks(), LinkCDCSegments(), and Reset().

bool DTrackFinder::COSMICS
private

Definition at line 152 of file DTrackFinder.h.

Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().

bool DTrackFinder::DEBUG_HISTS
private

Definition at line 152 of file DTrackFinder.h.

Referenced by DTrackFinder(), FindAxialSegments(), FindFDCSegments(), and LinkCDCSegments().

vector<fdc_hit_t> DTrackFinder::fdc_hits
private

Definition at line 148 of file DTrackFinder.h.

Referenced by AddHit(), FindFDCSegments(), and Reset().

vector<fdc_segment_t> DTrackFinder::fdc_segments[4]
private

Definition at line 149 of file DTrackFinder.h.

Referenced by FindFDCSegments(), LinkFDCSegments(), and Reset().

vector<fdc_segment_t> DTrackFinder::fdc_tracks
private

Definition at line 150 of file DTrackFinder.h.

Referenced by GetFDCTracks(), LinkFDCSegments(), and Reset().

TH1F* DTrackFinder::hCDCMatch_Axial
private

Definition at line 141 of file DTrackFinder.h.

Referenced by DTrackFinder(), and LinkCDCSegments().

TH1F * DTrackFinder::hCDCMatch_PairD
private

Definition at line 141 of file DTrackFinder.h.

Referenced by DTrackFinder(), and FindAxialSegments().

TH1F * DTrackFinder::hCDCMatch_Stereo
private

Definition at line 141 of file DTrackFinder.h.

TH1I* DTrackFinder::hFDCLayer
private

Definition at line 142 of file DTrackFinder.h.

Referenced by DTrackFinder(), and FindFDCSegments().

TH1I * DTrackFinder::hFDCLayerFirst
private

Definition at line 142 of file DTrackFinder.h.

Referenced by DTrackFinder(), and FindFDCSegments().

TH1I * DTrackFinder::hFDCLayerRaw
private

Definition at line 142 of file DTrackFinder.h.

Referenced by DTrackFinder(), and FindFDCSegments().

vector<cdc_hit_t> DTrackFinder::stereo_hits
private

Definition at line 144 of file DTrackFinder.h.

Referenced by AddHit(), LinkCDCSegments(), and Reset().

bool DTrackFinder::VERBOSE
private

Definition at line 152 of file DTrackFinder.h.

Referenced by DTrackFinder(), FindAxialSegments(), and LinkCDCSegments().


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