Hall-D Software
alpha
|
#include <DEventProcessor_candidate_tree.h>
Public Member Functions | |
void | FindLR (vector< const DMCTrackHit * > &mctrackhits, const DLorentzDeflections *lorentz_def=NULL) |
Public Attributes | |
DReferenceTrajectory * | rt |
const DCoordinateSystem * | wire |
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 |
Definition at line 52 of file DEventProcessor_candidate_tree.h.
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().
double DEventProcessor_candidate_tree::hit_info_t::dist |
Definition at line 61 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
double DEventProcessor_candidate_tree::hit_info_t::doca |
Definition at line 60 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
int DEventProcessor_candidate_tree::hit_info_t::LRfit |
Definition at line 65 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
bool DEventProcessor_candidate_tree::hit_info_t::LRis_correct |
Definition at line 66 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
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 |
Definition at line 67 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
TVector3 DEventProcessor_candidate_tree::hit_info_t::pos_wire |
Definition at line 69 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
DReferenceTrajectory* DEventProcessor_candidate_tree::hit_info_t::rt |
Definition at line 55 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
double DEventProcessor_candidate_tree::hit_info_t::tdrift |
Definition at line 57 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
double DEventProcessor_candidate_tree::hit_info_t::tof |
Definition at line 62 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
double DEventProcessor_candidate_tree::hit_info_t::u |
Definition at line 63 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
double DEventProcessor_candidate_tree::hit_info_t::u_lorentz |
Definition at line 64 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().
const DCoordinateSystem* DEventProcessor_candidate_tree::hit_info_t::wire |
Definition at line 56 of file DEventProcessor_candidate_tree.h.
Referenced by DEventProcessor_candidate_tree::evnt().