StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGmtPoint.h
1 
14 #ifndef StGmtPoint_hh
15 #define StGmtPoint_hh
16 
17 // StEvent headers
18 #include "StHit.h"
19 #include "StGmtHit.h"
20 
21 //________________
22 class StGmtPoint : public StHit {
23  public:
25  StGmtPoint();
30  StGmtPoint(StGmtHit* hitX, StGmtHit* hitY, int key);
32  StGmtPoint(const StGmtPoint&);
33  // StGmtPoint& operator=(const StGmtPoint&); --> use default
34 
36  ~StGmtPoint();
37 
39  virtual StDetectorId detector() const { return kGmtId; }
41  Int_t getKey() { return mKey; }
43  Int_t getModule()
44  { return static_cast< Int_t >(mHardwarePosition/8); /* FIX ME */}
46  const StGmtHit* getHitLocalX() const { return mHitLocalX; }
48  const StGmtHit* getHitLocalY() const { return mHitLocalY; }
49 
51  Float_t getPositionLocalX() const { return (mHitLocalX) ? mHitLocalX->getLocalX() : -999.f; }
53  Float_t getPositionLocalY() const { return (mHitLocalY) ? mHitLocalY->getLocalY() : -999.f; }
55  Int_t volumeID() const { return 0; }
56 
57  protected:
59  Int_t mKey;
64 
65  private:
66  ClassDef(StGmtPoint,1)
67 };
68 
69 #endif // #define StGmtPoint_hh
virtual StDetectorId detector() const
Unique detector ID.
Definition: StGmtPoint.h:39
StGmtHit * mHitLocalY
Hit in Y axis.
Definition: StGmtPoint.h:63
Definition: StHit.h:125
Float_t getLocalX() const
Local X coordinate.
Definition: StGmtHit.h:58
Float_t getPositionLocalY() const
Hit coordinate in Y axis.
Definition: StGmtPoint.h:53
Float_t getLocalY() const
Local Y coordinate.
Definition: StGmtHit.h:62
const StGmtHit * getHitLocalY() const
Local Y coordinate.
Definition: StGmtPoint.h:48
Int_t mKey
Unique label.
Definition: StGmtPoint.h:59
StGmtPoint()
Default consturctor.
Definition: StGmtPoint.cxx:20
Holds data for the hit in GMT.
Definition: StGmtHit.h:23
~StGmtPoint()
Destructor.
Definition: StGmtPoint.cxx:52
Int_t getKey()
Unique label.
Definition: StGmtPoint.h:41
const StGmtHit * getHitLocalX() const
Return hit in X axis.
Definition: StGmtPoint.h:46
Int_t getModule()
Module.
Definition: StGmtPoint.h:43
Holds data for the point (a.k.a. cluster) in GMT.
Definition: StGmtPoint.h:22
Int_t volumeID() const
Volume ID.
Definition: StGmtPoint.h:55
StGmtHit * mHitLocalX
Hit in X axis.
Definition: StGmtPoint.h:61
Float_t getPositionLocalX() const
Hit coordinate in X axis.
Definition: StGmtPoint.h:51