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 #include <vector>
4 class SQTrack;
5 class SQTrackVector;
6 class SQHitVector;
7 class SRecTrack;
8 class TVector3;
9 class TLorentzVector;
10 
11 namespace UtilTrack {
12  extern int verbosity;
13  SQTrack* FindTrackByID(const SQTrackVector* vec, const int id_trk, const bool do_assert=false);
14 
15  SQHitVector* FindHitsOfTrack(const SQHitVector* vec_in, const int id_trk);
16  SQHitVector* FindDetectorHitsOfTrack(const SQHitVector* vec_in, const int id_trk, const std::string det_name);
17  SQHitVector* FindDetectorHitsOfTrack(const SQHitVector* vec_in, const int id_trk, const char* det_name);
18  SQHitVector* FindHodoHitsOfTrack(const SQHitVector* vec_in, const int id_trk);
19 
20  std::vector<int> FindMatchedRoads(SRecTrack* trk, const double margin=0);
21  std::vector<int> FindMatchedRoads(const TVector3 pos1, const TLorentzVector mom1, const TVector3 pos3, const TLorentzVector mom3, const double margin=0);
22 }
23 
24 #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:56
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.
Definition: UtilTrack.cc:99
int verbosity
Definition: UtilTrack.cc:10
SQHitVector * FindHodoHitsOfTrack(const SQHitVector *vec_in, const int id_trk)
Find all hodoscope hits hits associated with the given track.
Definition: UtilTrack.cc:83
SQHitVector * FindHitsOfTrack(const SQHitVector *vec_in, const int id_trk)
Find all hits associated with the given track.
Definition: UtilTrack.cc:36
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:17