|
Class Reference for E1039 Core & Analysis Software
|
Functions | |
| SQTrack * | FindTrackByID (const SQTrackVector *vec, const int id_trk, const bool do_assert=false) |
| Find a track by track ID in the given track list. More... | |
| SQHitVector * | FindHitsOfTrack (const SQHitVector *vec_in, const int id_trk) |
| Find all hits associated with the given track. More... | |
| SQHitVector * | FindDetectorHitsOfTrack (const SQHitVector *vec_in, const int id_trk, const std::string det_name) |
| Find track-associated hits whose detector name starts with 'det_name'. More... | |
| SQHitVector * | FindDetectorHitsOfTrack (const SQHitVector *vec_in, const int id_trk, const char *det_name) |
| Find track-associated hits whose detector name starts with 'det_name'. More... | |
| SQHitVector * | FindHodoHitsOfTrack (const SQHitVector *vec_in, const int id_trk) |
| Find all hodoscope hits hits associated with the given track. More... | |
| std::vector< int > | FindMatchedRoads (SRecTrack *trk, const double margin=0) |
| Find all roads that match to the given track within the hodo paddle width plus the given margin. More... | |
| std::vector< int > | FindMatchedRoads (const TVector3 pos1, const TLorentzVector mom1, const TVector3 pos3, const TLorentzVector mom3, const double margin=0) |
| Find all roads that match to the given track within the hodo paddle width plus the given margin. More... | |
Variables | |
| int | verbosity = 0 |
| SQHitVector * UtilTrack::FindDetectorHitsOfTrack | ( | const SQHitVector * | vec_in, |
| const int | id_trk, | ||
| const char * | det_name | ||
| ) |
Find track-associated hits whose detector name starts with 'det_name'.
Definition at line 71 of file UtilTrack.cc.
References FindDetectorHitsOfTrack().
Here is the call graph for this function:| SQHitVector * UtilTrack::FindDetectorHitsOfTrack | ( | const SQHitVector * | vec_in, |
| const int | id_trk, | ||
| const std::string | det_name | ||
| ) |
Find track-associated hits whose detector name starts with 'det_name'.
Examples:
You can use "FindHodoHitsOfTrack()" to more-conveniently find all hodoscope hits.
Definition at line 56 of file UtilTrack.cc.
References SQHitVector::begin(), SQHitVector::clear(), SQHitVector::Clone(), SQHitVector::end(), SQHit::get_detector_id(), SQHit::get_track_id(), GeomSvc::getDetectorName(), GeomSvc::instance(), and SQHitVector::push_back().
Referenced by FindDetectorHitsOfTrack(), and FindHodoHitsOfTrack().
Here is the call graph for this function:
Here is the caller graph for this function:| SQHitVector * UtilTrack::FindHitsOfTrack | ( | const SQHitVector * | vec_in, |
| const int | id_trk | ||
| ) |
Find all hits associated with the given track.
It is recommended to receive the returned pointer by "shared_ptr".
Definition at line 36 of file UtilTrack.cc.
References SQHitVector::begin(), SQHitVector::clear(), SQHitVector::Clone(), SQHitVector::end(), SQHit::get_track_id(), and SQHitVector::push_back().
Here is the call graph for this function:| SQHitVector * UtilTrack::FindHodoHitsOfTrack | ( | const SQHitVector * | vec_in, |
| const int | id_trk | ||
| ) |
Find all hodoscope hits hits associated with the given track.
Example:
Definition at line 83 of file UtilTrack.cc.
References FindDetectorHitsOfTrack().
Referenced by SubsysRecoSignal::process_event().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< int > UtilTrack::FindMatchedRoads | ( | const TVector3 | pos1, |
| const TLorentzVector | mom1, | ||
| const TVector3 | pos3, | ||
| const TLorentzVector | mom3, | ||
| const double | margin = 0 |
||
| ) |
Find all roads that match to the given track within the hodo paddle width plus the given margin.
Check three elements, assuming the margin is much smaller than the half width.
Definition at line 105 of file UtilTrack.cc.
References Plane::cellWidth, Plane::deltaX, Plane::deltaZ, GeomSvc::getDetectorID(), GeomSvc::getPlanePtr(), UtilTrigger::Hodo2Road(), GeomSvc::instance(), Plane::nElements, Plane::spacing, verbosity, Plane::xc, and Plane::zc.
Here is the call graph for this function:| std::vector< int > UtilTrack::FindMatchedRoads | ( | SRecTrack * | trk, |
| const double | margin = 0 |
||
| ) |
Find all roads that match to the given track within the hodo paddle width plus the given margin.
The closest paddle to the given track at each hodoscope X plane (H1T/B, H2T/B, H3T/B and H4T/B) is selected based on the expected track x-position. The two adjacent paddles are also selected if they are within "width/2 + margin". All selected paddles are used to list up matched roads.
Definition at line 99 of file UtilTrack.cc.
References SRecTrack::get_mom_st1(), SRecTrack::get_mom_st3(), SRecTrack::get_pos_st1(), and SRecTrack::get_pos_st3().
Here is the call graph for this function:| SQTrack * UtilTrack::FindTrackByID | ( | const SQTrackVector * | vec, |
| const int | id_trk, | ||
| const bool | do_assert = false |
||
| ) |
Find a track by track ID in the given track list.
This function returns a SQTrack pointer if successful. Otherwise it returns '0' by default, or aborts when 'do_assert' = true.
Definition at line 17 of file UtilTrack.cc.
References SQTrackVector::begin(), SQTrackVector::end(), and SQTrack::get_track_id().
Referenced by SubsysRecoSignal::process_event().
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Definition at line 10 of file UtilTrack.cc.
Referenced by PHFieldUtility::BuildFieldMap(), FindMatchedRoads(), PHFieldUtility::GetFieldConfigNode(), PHFieldUtility::GetFieldMapNode(), PHG4SteppingAction::GetVisibleEnergyDeposition(), and PHNodeReset::perform().