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

#include <DEventProcessor_track_hists.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 51 of file DEventProcessor_track_hists.h.

Member Function Documentation

void DEventProcessor_track_hists::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_track_hists.cc.

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

Referenced by DEventProcessor_track_hists::evnt().

Member Data Documentation

double DEventProcessor_track_hists::hit_info_t::dist

Definition at line 60 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

double DEventProcessor_track_hists::hit_info_t::doca

Definition at line 59 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

int DEventProcessor_track_hists::hit_info_t::LRfit

Definition at line 64 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

bool DEventProcessor_track_hists::hit_info_t::LRis_correct

Definition at line 65 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

TVector3 DEventProcessor_track_hists::hit_info_t::mom_doca

Definition at line 67 of file DEventProcessor_track_hists.h.

TVector3 DEventProcessor_track_hists::hit_info_t::pos_doca

Definition at line 66 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

TVector3 DEventProcessor_track_hists::hit_info_t::pos_wire

Definition at line 68 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

DReferenceTrajectory* DEventProcessor_track_hists::hit_info_t::rt

Definition at line 54 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

double DEventProcessor_track_hists::hit_info_t::tdrift

Definition at line 56 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

double DEventProcessor_track_hists::hit_info_t::tof

Definition at line 61 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

double DEventProcessor_track_hists::hit_info_t::u

Definition at line 62 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

double DEventProcessor_track_hists::hit_info_t::u_lorentz

Definition at line 63 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().

const DCoordinateSystem* DEventProcessor_track_hists::hit_info_t::wire

Definition at line 55 of file DEventProcessor_track_hists.h.

Referenced by DEventProcessor_track_hists::evnt().


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