StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMiniMcPair.h
Go to the documentation of this file.
1 
11 #ifndef StMiniMcPair_H
12 #define StMiniMcPair_H
13 
14 #include "StTinyMcTrack.h"
15 #include "StTinyRcTrack.h"
16 
17 class StMiniMcPair : public StTinyMcTrack, public StTinyRcTrack {
18 public:
19  StMiniMcPair() : mNCommonHit(0), mIsBestContam(0), mDominatrack(0), mDominCommonHit(0), mAvgQuality(0) {}
20  virtual ~StMiniMcPair() {}
21 
22  void setNCommonHit(Short_t val) { mNCommonHit=val; }
23  void setIsBestContam(Short_t val ) {mIsBestContam=val ; }
24  void setDominatrack(Int_t val) { mDominatrack=val; }
25  void setDominCommonHit(Short_t val) { mDominCommonHit=val; }
26  void setAvgQuality(float val) { mAvgQuality=val; }
27  float commonFrac() const {
28  return static_cast<float>(mNCommonHit)/static_cast<float>(allPts());
29  }
30  float dominFrac() const {
31  return static_cast<float>(mDominCommonHit)/static_cast<float>(allPts());
32  }
33  int commonHits() { return mNCommonHit%100; }
34  int commonHitsSvt() { return mNCommonHit/100; }
35  bool isBestContam() { return mIsBestContam; }
36  int dominatrack() { return mDominatrack; }
37  int dominCommonHits() { return mDominCommonHit; }
38  float avgQuality() { return mAvgQuality; }
39  // virtual void Print(Option_t *opt = "") const;
40 private:
41  Short_t mNCommonHit;
42  Bool_t mIsBestContam;
43  Int_t mDominatrack;
44  Short_t mDominCommonHit;
45  Float_t mAvgQuality;
46 
47  ClassDef(StMiniMcPair,3)
48 };
49 
50 #endif
51 
52 //
53 // $Log: StMiniMcPair.h,v $
54 // Revision 1.6 2018/01/03 18:18:09 genevb
55 // idTruths and keys moved from short to int
56 //
57 // Revision 1.5 2011/07/19 19:15:05 perev
58 // Cleanup
59 //
60 // Revision 1.4 2007/02/23 17:07:00 fisyak
61 // Add Ssd and DCA
62 //
63 // Revision 1.3 2004/03/31 23:42:46 calderon
64 // Adding info to evaluate idTruth information.
65 // -Add key to StTinyMcTrack.h
66 // -Add dominatrack, common hits to dominatrack and average hit quality to StMiniMcPair.h
67 //
68 // Revision 1.2 2004/03/15 19:01:32 calderon
69 // StMiniMcPair now contains the TPC and SVT common hits information (encoded).
70 //
71 // Revision 1.1 2002/05/30 01:20:58 calderon
72 // Classes for use in a general framework for extracting efficiencies
73 // from both embedding and full simulations
74 // (after GSTAR+TRS+StEvent+StMcEvent+StAssociationMaker)
75 // so that the information of the track matches gets stored persistently.
76 //
77 //
Persistent RC track class.
Persistent MC track class.