StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuMtdHit.h
1 #ifndef __StMuMdtHit_hh__
2 #define __StMuMdtHit_hh__
3 
4 #include "TObject.h"
5 
6 using namespace std;
7 
8 class StMtdHit;
9 class StMuMtdHit : public TObject {
10 
11 public:
12 
13  StMuMtdHit();
14  StMuMtdHit(const StMtdHit* hit);
15  ~StMuMtdHit() {; }
16 
17  int backleg() const;
18  int module() const;
19  int cell() const;
20  pair<double,double> leadingEdgeTime() const;
21  pair<double,double> trailingEdgeTime() const;
22  pair<double,double> tot() const;
23  double tof() const;
24 
25  short associatedTrackKey() const;
26  int idTruth() const;
27  int qaTruth() const;
28  int index2Primary() const;
29  int index2Global() const;
30 
31 
32  void setAssociatedTrackKey(short);
33  void setIndex2Primary(int);
34  void setIndex2Global(int);
35 
36  private:
37 
38  UChar_t mBackLeg;
39  UChar_t mModule;
40  UChar_t mCell;
41  pair<Double_t,Double_t> mLeadingEdgeTime;
42  pair<Double_t,Double_t> mTrailingEdgeTime;
43 
44  UShort_t mIdTruth; // simulation associated track id
45  UShort_t mQuality; // quality of this information (percentage of charge produced by mIdTruth)
46  UShort_t mTrackKey;
47  Int_t mIndex2Primary;
48  Int_t mIndex2Global;
49 
50 
51 ClassDef(StMuMtdHit,2)
52 
53 };
54 
55 inline void StMuMtdHit::setAssociatedTrackKey(short id) { mTrackKey=id; }
56 inline void StMuMtdHit::setIndex2Primary(int index) { mIndex2Primary=index; }
57 inline void StMuMtdHit::setIndex2Global(int index) { mIndex2Global=index; }
58 
59 #endif
Definition: tof.h:15