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

#include <DEventProcessor_candidate_tree.h>

Public Member Functions

void FindLR (vector< const DMCTrackHit * > &mctrackhits, const DLorentzDeflections *lorentz_def=NULL)
 

Public Attributes

DReferenceTrajectoryrt
 
const DCoordinateSystemwire
 
double tdrift
 
double doca
 
double dist
 
double tof
 
double u
 
double u_lorentz
 
int LRfit
 
bool LRis_correct
 
TVector3 pos_doca
 
TVector3 mom_doca
 
TVector3 pos_wire
 

Detailed Description

Definition at line 52 of file DEventProcessor_candidate_tree.h.

Member Function Documentation

void DEventProcessor_candidate_tree::hit_info_t::FindLR ( vector< const DMCTrackHit * > &  mctrackhits,
const DLorentzDeflections lorentz_def = NULL 
)

Decided on whether or not the reference trajectory is on the correct side of the wire based on truth information.

Upon entry, the rt, wire, and rdrift members should be set. The remaining fields are filled in on return from this method.

Essentially, this will look through the DMCTrackHit objects via the DTrackHitSelectorTHROWN::GetMCTrackHit method to find the truth point corresponding to this hit (if any). It then compares the vector pointing from the point of closest approach on the wire to the DOCA point so a similar vector pointing from the same place on the wire to the truth point. If the 2 vectors are within +/- 90 degrees, then the trajectory is said to be on the correct side of the wire.

Definition at line 344 of file DEventProcessor_candidate_tree.cc.

References alpha, DLorentzDeflections::GetLorentzCorrection(), DTrackHitSelectorTHROWN::GetMCTrackHit(), DMCTrackHit::phi, DMCTrackHit::r, sin(), sqrt(), u, and DMCTrackHit::z.

Referenced by DEventProcessor_candidate_tree::evnt().

Member Data Documentation

double DEventProcessor_candidate_tree::hit_info_t::dist
double DEventProcessor_candidate_tree::hit_info_t::doca
int DEventProcessor_candidate_tree::hit_info_t::LRfit
bool DEventProcessor_candidate_tree::hit_info_t::LRis_correct
TVector3 DEventProcessor_candidate_tree::hit_info_t::mom_doca

Definition at line 68 of file DEventProcessor_candidate_tree.h.

TVector3 DEventProcessor_candidate_tree::hit_info_t::pos_doca
TVector3 DEventProcessor_candidate_tree::hit_info_t::pos_wire
DReferenceTrajectory* DEventProcessor_candidate_tree::hit_info_t::rt
double DEventProcessor_candidate_tree::hit_info_t::tdrift
double DEventProcessor_candidate_tree::hit_info_t::tof
double DEventProcessor_candidate_tree::hit_info_t::u
double DEventProcessor_candidate_tree::hit_info_t::u_lorentz
const DCoordinateSystem* DEventProcessor_candidate_tree::hit_info_t::wire

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