StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltBEmcTowerHit.h
1 /***************************************************************************
2  *
3  * $Id: StHltBEmcTowerHit.h,v 2.1 2011/02/01 19:45:47 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltBEmcTowerHit.h,v $
13  * Revision 2.1 2011/02/01 19:45:47 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #ifndef StHltBEmcTowerHit_hh
18 #define StHltBEmcTowerHit_hh
19 
20 #include <Stiostream.h>
21 #include "StObject.h"
22 #include "StArray.h"
23 
24 class StHltTrackNode;
25 
26 class StHltBEmcTowerHit : public StObject {
27 public:
30 
31  int adc() const;
32  float energy() const;
33  float phi() const;
34  float eta() const;
35  float z() const;
36  float softId() const;
37  float daqId() const;
38 
39  StHltTrackNode* trackNode();
40  const StHltTrackNode* trackNode() const;
41 
42  void setAdc(int);
43  void setEnergy(float);
44  void setPhi(float);
45  void setEta(float);
46  void setZ(float);
47  void setSoftId(int);
48  void setDaqId(int);
49 
50  void setTrackNode(StHltTrackNode*);
51 
52 private:
53  int mAdc;
54  float mEnergy;
55  float mPhi;
56  float mEta;
57  float mZ;
58  int mSoftId;
59  int mDaqId;
60 
61 #ifdef __CINT__
62  StObjLink mTrackNode;
63 #else
64  StLink<StHltTrackNode> mTrackNode;
65 #endif //__CINT__
66 
67  ClassDef(StHltBEmcTowerHit,1)
68 };
69 
70 inline int StHltBEmcTowerHit::adc() const {return mAdc;}
71 inline float StHltBEmcTowerHit::energy() const {return mEnergy;}
72 inline float StHltBEmcTowerHit::phi() const {return mPhi;}
73 inline float StHltBEmcTowerHit::eta() const {return mEta;}
74 inline float StHltBEmcTowerHit::z() const {return mZ;}
75 inline float StHltBEmcTowerHit::softId() const {return mSoftId;}
76 inline float StHltBEmcTowerHit::daqId() const {return mDaqId;}
77 
78 inline StHltTrackNode* StHltBEmcTowerHit::trackNode() {return mTrackNode;}
79 inline const StHltTrackNode* StHltBEmcTowerHit::trackNode() const {return mTrackNode;}
80 
81 ostream& operator<<(ostream&, const StHltBEmcTowerHit&);
82 
83 #endif
84 
85