StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcRawHit.h
1 
5 /***************************************************************************
6  *
7  * $Id: StEmcRawHit.h,v 2.9 2012/09/16 21:33:57 fisyak Exp $
8  *
9  * Author: Akio Ogawa, Jan 2000
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StEmcRawHit.h,v $
17  * Revision 2.9 2012/09/16 21:33:57 fisyak
18  * Add print out
19  *
20  * Revision 2.8 2004/07/20 17:07:49 perev
21  * Pavlinov corrs for TBrowser
22  *
23  * Revision 2.7 2004/07/15 16:36:24 ullrich
24  * Removed all clone() declerations and definitions. Use StObject::clone() only.
25  *
26  * Revision 2.6 2002/02/22 22:56:47 jeromel
27  * Doxygen basic documentation in all header files. None of this is required
28  * for QM production.
29  *
30  * Revision 2.5 2001/04/05 04:00:35 ullrich
31  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
32  *
33  * Revision 2.4 2001/03/24 03:34:46 perev
34  * clone() -> clone() const
35  *
36  * Revision 2.3 2000/07/28 19:49:28 akio
37  * Change in Detector Id for Endcap SMD
38  *
39  * Revision 2.2 2000/05/22 19:21:54 akio
40  * Bug fix, add delta into EMcPoint, wider bits for Eta in RawHit
41  *
42  * Revision 2.1 2000/02/23 17:34:14 ullrich
43  * Initial Revision
44  *
45  **************************************************************************/
46 #ifndef StEmcRawHit_hh
47 #define StEmcRawHit_hh
48 
49 #include "StObject.h"
50 #include "StEnumerations.h"
51 
52 class StEmcGeom;
53 
54 class StEmcRawHit : public StObject {
55 public:
56  StEmcRawHit();
57  StEmcRawHit(StDetectorId, unsigned int, unsigned int, unsigned int, unsigned int);
58  StEmcRawHit(StDetectorId, unsigned int, unsigned int, unsigned int, unsigned int, float);
59  StEmcRawHit(const StEmcRawHit&);
60  // StEmcRawHit& operator=(const StEmcRawHit&); use default
61  ~StEmcRawHit();
62 
63  StDetectorId detector() const;
64  void modEtaSub(int &m, int &e, int &s) const;
65  unsigned int softId(int det) const; // as in StEmcGeom;
66 
67  unsigned int module() const;
68  unsigned int eta() const;
69  int sub() const;
70  unsigned int calibrationType() const;
71  unsigned int adc() const;
72  float energy() const;
73 
74  void setId(StDetectorId, unsigned int, unsigned int, unsigned int);
75  void setCalibrationType(const unsigned int);
76  void setAdc(const unsigned int);
77  void setEnergy(const float);
78  void Print(Option_t *option="") const;
79 protected:
80  unsigned int bits(unsigned int, unsigned int) const;
81 
82 protected:
83  UInt_t mId;
84  UInt_t mAdc;
85  Float_t mEnergy;
86 
87  static StEmcGeom* mGeom;
88 
89  ClassDef(StEmcRawHit,1)
90 };
91 ostream& operator<<(ostream& os, StEmcRawHit const & v);
92 #endif
93 
94