Class Reference for E1039 Core & Analysis Software
UtilTrack.h
Go to the documentation of this file.
1 #ifndef _UTIL_TRACK__H_
2 #define _UTIL_TRACK__H_
3 class SQTrack;
4 class SQTrackVector;
5 class SQHitVector;
6 
7 namespace UtilTrack {
8  SQTrack* FindTrackByID(const SQTrackVector* vec, const int id_trk, const bool do_assert=false);
9 
10  SQHitVector* FindHitsOfTrack(const SQHitVector* vec_in, const int id_trk);
11  SQHitVector* FindDetectorHitsOfTrack(const SQHitVector* vec_in, const int id_trk, const std::string det_name);
12  SQHitVector* FindDetectorHitsOfTrack(const SQHitVector* vec_in, const int id_trk, const char* det_name);
13  SQHitVector* FindHodoHitsOfTrack(const SQHitVector* vec_in, const int id_trk);
14 }
15 
16 #endif /* _UTIL_TRACK__H_ */
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32
An SQ interface class to hold a list of SQTrack objects.
Definition: SQTrackVector.h:19
An SQ interface class to hold one true or reconstructed track.
Definition: SQTrack.h:8
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'.
Definition: UtilTrack.cc:52
SQHitVector * FindHodoHitsOfTrack(const SQHitVector *vec_in, const int id_trk)
Find all hodoscope hits hits associated with the given track.
Definition: UtilTrack.cc:79
SQHitVector * FindHitsOfTrack(const SQHitVector *vec_in, const int id_trk)
Find all hits associated with the given track.
Definition: UtilTrack.cc:32
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.
Definition: UtilTrack.cc:13