StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcMtdHit.hh
1 //
2 #ifndef StMcMtdHit_hh
3 #define StMcMtdHit_hh
4 
5 #include "StObject.h"
6 #include "Stiostream.h"
7 #include "StThreeVectorF.hh"
8 #include "StMcHit.hh"
9 
10 //#include "StMemoryPool.hh"
11 
12 class StMcTrack;
13 class g2t_mtd_hit_st;
14 
15 
16 class StMcMtdHit : public StMcHit {
17 public:
18  StMcMtdHit();
19  StMcMtdHit(g2t_mtd_hit_st*);
20 
21  virtual ~StMcMtdHit();
22 
23  int operator!=(const StMcMtdHit&) const;
24 
25  bool sameCell(const StMcMtdHit&) const;
26 
27  // "Get" Methods
28  virtual int backleg() const;
29  virtual int module() const;
30  virtual int cell() const;
31  virtual float pathLength() const;
32  virtual int parentTrackId() const;
33 
34  // "Set" Methods
35 
36  // void* operator new(size_t) { return mPool.alloc(); }
37  // void operator delete(void* p) { mPool.free(p); }
38 
39 protected:
40  int mBackleg;
41  int mModule;
42  int mCell;
43  float mPathLength;
44  int mParentTrackId;
45 
46  ClassDef(StMcMtdHit,1)//
47 };
48 
49 ostream& operator<<(ostream& os, const StMcMtdHit&);
50 
51 inline int StMcMtdHit::backleg() const {return mBackleg; }
52 inline int StMcMtdHit::module() const {return mModule; }
53 inline int StMcMtdHit::cell() const {return mCell; }
54 inline float StMcMtdHit::pathLength() const {return mPathLength; }
55 inline int StMcMtdHit::parentTrackId()const {return mParentTrackId; }
56 
57 #endif
58 
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144