Hall-D Software
alpha
|
#include <DEventProcessor_trackeff_hists2.h>
Public Member Functions | |
DEventProcessor_trackeff_hists2 () | |
~DEventProcessor_trackeff_hists2 () | |
bool | Search_ChargedTrackHypotheses (JEventLoop *loop, uint64_t eventnumber, const DMCThrown *mcthrown) |
bool | Search_WireBasedTracks (JEventLoop *loop, uint64_t eventnumber, const DMCThrown *mcthrown) |
bool | Search_TrackCandidates (JEventLoop *loop, uint64_t eventnumber, const DMCThrown *mcthrown) |
Public Attributes | |
TTree * | trkeff |
track2 | trk |
track2 * | trk_ptr |
Private Member Functions | |
jerror_t | init (void) |
Invoked via DEventProcessor virtual method. More... | |
jerror_t | brun (JEventLoop *loop, int32_t runnumber) |
jerror_t | evnt (JEventLoop *loop, uint64_t eventnumber) |
Invoked via DEventProcessor virtual method. More... | |
jerror_t | erun (void) |
Invoked via DEventProcessor virtual method. More... | |
jerror_t | fini (void) |
Invoked via DEventProcessor virtual method. More... | |
bool | isReconstructable (const DMCThrown *mcthrown, vector< const DMCTrajectoryPoint * > &mctrajpoints) |
void | FindLR (vector< const DCoordinateSystem * > &wires, const DReferenceTrajectory *crt, vector< int > &LRhits) |
void | FindLR (vector< const DCoordinateSystem * > &wires, vector< const DMCTrajectoryPoint * > &trajpoints, vector< int > &LRhits) |
Private Attributes | |
bool | use_rt_thrown |
DTrackingResolution * | trkres |
pthread_mutex_t | mutex |
DReferenceTrajectory * | rt_thrown |
double | CDCZmin |
double | CDCZmax |
int | DEBUG |
Definition at line 55 of file DEventProcessor_trackeff_hists2.h.
DEventProcessor_trackeff_hists2::DEventProcessor_trackeff_hists2 | ( | ) |
Definition at line 24 of file DEventProcessor_trackeff_hists2.cc.
DEventProcessor_trackeff_hists2::~DEventProcessor_trackeff_hists2 | ( | ) |
Definition at line 37 of file DEventProcessor_trackeff_hists2.cc.
|
private |
Definition at line 70 of file DEventProcessor_trackeff_hists2.cc.
References dapp, DGeometry::GetBfield(), DGeometry::GetCDCAxialLength(), DGeometry::GetCDCEndplate(), DApplication::GetDGeometry(), rmax, and rmin.
|
private |
Invoked via DEventProcessor virtual method.
Definition at line 92 of file DEventProcessor_trackeff_hists2.cc.
|
private |
Invoked via DEventProcessor virtual method.
Definition at line 108 of file DEventProcessor_trackeff_hists2.cc.
References _DBG_, DKinematicData::charge(), japp, DKinematicData::momentum(), DKinematicData::position(), trkeff(), and DMCThrown::type.
|
private |
Fill the vector LRhits with +1 or -1 values indicating the side of each wire in the "wires" vector the given reference trajectory passed on.
Definition at line 537 of file DEventProcessor_trackeff_hists2.cc.
References DReferenceTrajectory::DistToRT(), DReferenceTrajectory::GetLastDistAlongWire(), DReferenceTrajectory::GetLastDOCAPoint(), DCoordinateSystem::origin, u, and DCoordinateSystem::udir.
|
private |
Fill the vector LRhits with +1 or -1 values indicating the side of each wire in the "wires" vector the particle swum by GEANT passed on according to the closest DMCTrajectoryPoint.
Definition at line 565 of file DEventProcessor_trackeff_hists2.cc.
|
private |
Invoked via DEventProcessor virtual method.
Definition at line 100 of file DEventProcessor_trackeff_hists2.cc.
|
private |
Invoked via DEventProcessor virtual method.
Definition at line 45 of file DEventProcessor_trackeff_hists2.cc.
|
private |
In order to test the efficiency of the finder/fitter, we must first determine whether a track is "reconstructible" or not. (See COMPASS-Note 2004-1 section 5.1 and Mankel Rep. Prog. Phys. 67 (2004) 553-622 section 2.5.1)
We do this here by checking if the "death" point of the track is inside or outside of some inner volume of the detector. Specifically, if the death point is outside of a cylinder of radius 45cm and z-extent covering from the upstream end of the CDC to the downstream end of the 2nd FDC package. This ensures that it either passes through the first 2 layers of the outermost axial superlayer of the CDC or, the first 2 packages of the FDC.
Note that the beam hole is not considered here. It is assumed that efficiency plots will be made either with a cut on theta or plotted against theta in order to accomodate that area.
Definition at line 494 of file DEventProcessor_trackeff_hists2.cc.
References DMCThrown::myid, DMCTrajectoryPoint::primary_track, sqrt(), DMCTrajectoryPoint::track, DMCTrajectoryPoint::x, DMCTrajectoryPoint::y, and DMCTrajectoryPoint::z.
bool DEventProcessor_trackeff_hists2::Search_ChargedTrackHypotheses | ( | JEventLoop * | loop, |
uint64_t | eventnumber, | ||
const DMCThrown * | mcthrown | ||
) |
Definition at line 234 of file DEventProcessor_trackeff_hists2.cc.
References _DBG_, DKinematicData::charge(), DTrackTimeBased::chisq, DKinematicData::mass(), DKinematicData::momentum(), and DTrackTimeBased::Ndof.
bool DEventProcessor_trackeff_hists2::Search_TrackCandidates | ( | JEventLoop * | loop, |
uint64_t | eventnumber, | ||
const DMCThrown * | mcthrown | ||
) |
Definition at line 433 of file DEventProcessor_trackeff_hists2.cc.
References DKinematicData::charge(), DKinematicData::mass(), and DKinematicData::momentum().
bool DEventProcessor_trackeff_hists2::Search_WireBasedTracks | ( | JEventLoop * | loop, |
uint64_t | eventnumber, | ||
const DMCThrown * | mcthrown | ||
) |
Definition at line 340 of file DEventProcessor_trackeff_hists2.cc.
References _DBG_, DKinematicData::charge(), DTrackWireBased::chisq, DKinematicData::mass(), DKinematicData::momentum(), and DTrackWireBased::Ndof.
|
private |
Definition at line 85 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 85 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 87 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 82 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 83 of file DEventProcessor_trackeff_hists2.h.
track2 DEventProcessor_trackeff_hists2::trk |
Definition at line 62 of file DEventProcessor_trackeff_hists2.h.
track2* DEventProcessor_trackeff_hists2::trk_ptr |
Definition at line 63 of file DEventProcessor_trackeff_hists2.h.
TTree* DEventProcessor_trackeff_hists2::trkeff |
Definition at line 61 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 81 of file DEventProcessor_trackeff_hists2.h.
|
private |
Definition at line 71 of file DEventProcessor_trackeff_hists2.h.