00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef StTrackPairInfo_hh
00040 #define StTrackPairInfo_hh
00041 #include "Stiostream.h"
00042
00043 class StMcTrack;
00044 class StGlobalTrack;
00045
00046 class StTrackPairInfo {
00047
00048 public:
00049 StTrackPairInfo(const StGlobalTrack* rcTrk,
00050 const StMcTrack* mcTrk,
00051 unsigned int tpcPings,
00052 unsigned int svtPings,
00053 unsigned int ssdPings,
00054 unsigned int ftpcPings);
00055 virtual ~StTrackPairInfo();
00056
00057 const StMcTrack* partnerMcTrack() const;
00058 const StGlobalTrack* partnerTrack() const;
00059
00060 unsigned int commonTpcHits() const;
00061 unsigned int commonSvtHits() const;
00062 unsigned int commonSsdHits() const;
00063 unsigned int commonFtpcHits() const;
00064
00065 float percentOfPairedTpcHits() const;
00066 float percentOfPairedSvtHits() const;
00067 float percentOfPairedSsdHits() const;
00068 float percentOfPairedFtpcHits() const;
00069
00070 void setPartnerMcTrack(const StMcTrack*);
00071 void setPartnerTrack(const StGlobalTrack*);
00072
00073 void setCommonTpcHits(unsigned int);
00074 void setCommonSvtHits(unsigned int);
00075 void setCommonSsdHits(unsigned int);
00076 void setCommonFtpcHits(unsigned int);
00077 private:
00078 const StGlobalTrack* mPartnerTrack;
00079 const StMcTrack* mPartnerMcTrack;
00080 unsigned int mCommonTpcHits;
00081 unsigned int mCommonSvtHits;
00082 unsigned int mCommonSsdHits;
00083 unsigned int mCommonFtpcHits;
00084 float mRatioCommonToTotalHitsTpc;
00085 float mRatioCommonToTotalHitsSvt;
00086 float mRatioCommonToTotalHitsSsd;
00087 float mRatioCommonToTotalHitsFtpc;
00088 };
00089
00090 inline const StMcTrack* StTrackPairInfo::partnerMcTrack() const { return mPartnerMcTrack; }
00091
00092 inline const StGlobalTrack* StTrackPairInfo::partnerTrack() const { return mPartnerTrack; }
00093
00094 inline unsigned int StTrackPairInfo::commonTpcHits() const { return mCommonTpcHits; }
00095
00096 inline unsigned int StTrackPairInfo::commonSvtHits() const { return mCommonSvtHits; }
00097 inline unsigned int StTrackPairInfo::commonSsdHits() const { return mCommonSsdHits; }
00098
00099 inline unsigned int StTrackPairInfo::commonFtpcHits() const { return mCommonFtpcHits; }
00100
00101 inline float StTrackPairInfo::percentOfPairedTpcHits() const { return mRatioCommonToTotalHitsTpc; }
00102
00103 inline float StTrackPairInfo::percentOfPairedSvtHits() const { return mRatioCommonToTotalHitsSvt; }
00104 inline float StTrackPairInfo::percentOfPairedSsdHits() const { return mRatioCommonToTotalHitsSsd; }
00105
00106 inline float StTrackPairInfo::percentOfPairedFtpcHits() const { return mRatioCommonToTotalHitsFtpc; }
00107 ostream& operator<<(ostream& os, const StTrackPairInfo& v);
00108 #endif