StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdHit.h
1 
4 /***************************************************************************
5  *
6  * $Id: StMtdHit.h,v 2.3 2018/03/15 22:00:34 smirnovd Exp $
7  *
8  * Author: Frank Geurts, April 25, 2011
9  ***************************************************************************
10  *
11  * Description:
12  *
13  ***************************************************************************
14  *
15  * $Log: StMtdHit.h,v $
16  * Revision 2.3 2018/03/15 22:00:34 smirnovd
17  * Fix linker error by removing declared but undefined functions
18  *
19  * Revision 2.2 2015/10/09 17:46:14 ullrich
20  * Changed type of mIdTruth from ushort to int.
21  *
22  * Revision 2.1 2011/04/25 21:24:02 ullrich
23  * Initial Revision.
24  *
25  **************************************************************************/
26 #ifndef StMtdHit_hh
27 #define StMtdHit_hh
28 
29 #include <Stiostream.h>
30 #include "StObject.h"
31 #include "StContainers.h"
32 
33 class StTrack;
34 
35 class StMtdHit : public StObject {
36 public:
37  StMtdHit();
38  ~StMtdHit();
39 
40  int backleg() const;
41  int module() const;
42  int cell() const;
43  pair<double,double> leadingEdgeTime() const;
44  pair<double,double> trailingEdgeTime() const;
45  pair<double,double> tot() const;
46  double tof() const;
47 
48  StTrack* associatedTrack();
49  const StTrack* associatedTrack() const;
50 
51  int idTruth() const;
52  int qaTruth() const;
53 
54  void setBackleg(unsigned char);
55  void setModule(unsigned char);
56  void setCell(unsigned char);
57  void setLeadingEdgeTime(pair<double,double>);
58  void setTrailingEdgeTime(pair<double,double>);
59  void setAssociatedTrack(StTrack*);
60  void setIdTruth(int idtru, int qatru=0);
61 
62  protected:
63  UChar_t mBackLeg;
64  UChar_t mModule;
65  UChar_t mCell;
66  pair<Double_t,Double_t> mLeadingEdgeTime;
67  pair<Double_t,Double_t> mTrailingEdgeTime;
68  // StTrack *mAssociatedTrack; //$LINK
69 #ifdef __CINT__
70  StObjLink mAssociatedTrack;
71 #else
72  StLink<StTrack> mAssociatedTrack;
73 #endif //__CINT__
74  Int_t mIdTruth; // simulation associated track id
75  UShort_t mQuality; // quality of this information (percentage of charge produced by mIdTruth)
76 
77  ClassDef(StMtdHit,2)
78 };
79 
80 ostream& operator<<(ostream&, const StMtdHit&); // Printing operator
81 
82 #endif
Definition: tof.h:15