StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrackPairInfo.hh
1 /*****************************************
2  *
3  * $Id: StTrackPairInfo.hh,v 1.11 2015/03/13 18:44:44 perev Exp $
4  *
5  * $Log: StTrackPairInfo.hh,v $
6  * Revision 1.11 2015/03/13 18:44:44 perev
7  * Roll back
8  *
9  * Revision 1.9 2011/04/01 19:40:07 perev
10  * const++
11  *
12  * Revision 1.8 2010/06/22 22:06:33 fine
13  * roll back the previous version to restore the nightly builds
14  *
15  * Revision 1.6 2005/11/22 21:44:16 fisyak
16  * Add Ssd to Associator, add IdTruth options for Svt and Ssd
17  *
18  * Revision 1.5 2001/03/02 22:41:55 calderon
19  * Envelop header file in #ifndef's.
20  *
21  * Revision 1.4 1999/12/14 07:07:41 calderon
22  * Added Ratio Number of Common Hits / Number of Reconstructed Hits for
23  * each detector.
24  * Numbering scheme from StEvent & StMcEvent as per SVT request
25  * Added Kink, V0 and Xi vertex associations.
26  *
27  * Revision 1.3 1999/12/08 00:00:25 calderon
28  * New version of StAssociationMaker.
29  * -Uses new StEvent / StMcEvent
30  * -Includes maps using reconstructed and monte carlo objects as keys for:
31  * TPC Hits
32  * SVT Hits
33  * SSD Hits
34  * FTPC Hits
35  * Tracks (using all 3 hit multimaps)
36  *
37  * Revision 1.2 1999/09/23 21:25:24 calderon
38  * Added Log & Id
39  * Modified includes according to Yuri
40  *
41  *****************************************/
42 #ifndef StTrackPairInfo_hh
43 #define StTrackPairInfo_hh
44 #include "Stiostream.h"
45 
46 class StMcTrack;
47 class StGlobalTrack;
48 
50 
51 public:
52  StTrackPairInfo(const StGlobalTrack* rcTrk,
53  const StMcTrack* mcTrk,
54  unsigned int tpcPings,
55  unsigned int svtPings,
56  unsigned int ssdPings,
57  unsigned int ftpcPings);
58  virtual ~StTrackPairInfo();
59 
60  const StMcTrack* partnerMcTrack() const;
61  const StGlobalTrack* partnerTrack() const;
62 
63  unsigned int commonTpcHits() const;
64  unsigned int commonSvtHits() const;
65  unsigned int commonSsdHits() const;
66  unsigned int commonFtpcHits() const;
67 
68  float percentOfPairedTpcHits() const;
69  float percentOfPairedSvtHits() const;
70  float percentOfPairedSsdHits() const;
71  float percentOfPairedFtpcHits() const;
72 
73  void setPartnerMcTrack(const StMcTrack*);
74  void setPartnerTrack(const StGlobalTrack*);
75 
76  void setCommonTpcHits(unsigned int);
77  void setCommonSvtHits(unsigned int);
78  void setCommonSsdHits(unsigned int);
79  void setCommonFtpcHits(unsigned int);
80 private:
81  const StGlobalTrack* mPartnerTrack;
82  const StMcTrack* mPartnerMcTrack;
83  unsigned int mCommonTpcHits;
84  unsigned int mCommonSvtHits;
85  unsigned int mCommonSsdHits;
86  unsigned int mCommonFtpcHits;
87  float mRatioCommonToTotalHitsTpc;
88  float mRatioCommonToTotalHitsSvt;
89  float mRatioCommonToTotalHitsSsd;
90  float mRatioCommonToTotalHitsFtpc;
91 };
92 
93 inline const StMcTrack* StTrackPairInfo::partnerMcTrack() const { return mPartnerMcTrack; }
94 
95 inline const StGlobalTrack* StTrackPairInfo::partnerTrack() const { return mPartnerTrack; }
96 
97 inline unsigned int StTrackPairInfo::commonTpcHits() const { return mCommonTpcHits; }
98 
99 inline unsigned int StTrackPairInfo::commonSvtHits() const { return mCommonSvtHits; }
100 inline unsigned int StTrackPairInfo::commonSsdHits() const { return mCommonSsdHits; }
101 
102 inline unsigned int StTrackPairInfo::commonFtpcHits() const { return mCommonFtpcHits; }
103 
104 inline float StTrackPairInfo::percentOfPairedTpcHits() const { return mRatioCommonToTotalHitsTpc; }
105 
106 inline float StTrackPairInfo::percentOfPairedSvtHits() const { return mRatioCommonToTotalHitsSvt; }
107 inline float StTrackPairInfo::percentOfPairedSsdHits() const { return mRatioCommonToTotalHitsSsd; }
108 
109 inline float StTrackPairInfo::percentOfPairedFtpcHits() const { return mRatioCommonToTotalHitsFtpc; }
110 ostream& operator<<(ostream& os, const StTrackPairInfo& v);
111 #endif
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144