StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPmdHit.h
1 
5 /*************************************************
6  * $Id: StPmdHit.h,v 1.5 2010/05/28 17:23:45 rashmi Exp $
7  *
8  * Author: Subhasis Chattopadhyay
9  * Revision: Prem Ghosh
10  * 5/9/02: ADC functionality added.
11  *
12  *************************************************
13  *
14  * Description: This is the class for PMD hit objects
15  *
16  **************************************************
17  * $Log: StPmdHit.h,v $
18  * Revision 1.5 2010/05/28 17:23:45 rashmi
19  * Added sorting routine
20  *
21  * Revision 1.4 2007/11/02 11:04:52 rashmi
22  * members and setters cellgain,smchaingain,cellstatus added
23  *
24  * Revision 1.3 2003/09/02 17:58:49 perev
25  * gcc 3.2 updates + WarnOff
26  *
27  * Revision 1.2 2002/09/09 11:27:59 subhasis
28  * ADC added
29  *
30  **************************************************/
31 #ifndef STAR_StPmdHit
32 #define STAR_StPmdHit
33 
34 #include <math.h>
35 #include <Stiostream.h>
36 #include "TArrayI.h"
37 #include "StObject.h"
38 
39 class StPmdHit : public StObject {
41 private:
42  Int_t mGsuper;
43  Int_t mSubdet;
44  Int_t mRow;
45  Int_t mCol;
46  Float_t mEdep;
47  Int_t mAdc;
48 // newly added on 11th oct'07 to write uncalibrated hit and use it while clustering
49  Float_t mGainCell;
50  Float_t mGainSmChain;
51  Float_t mCellStatus;
52 public:
53  StPmdHit();
54  StPmdHit(TArrayI*);
55  ~StPmdHit();
56 
58  Int_t Gsuper() const;
59  Int_t module() ;
60  Int_t SubDetector() const;
61  Int_t Row() const;
62  Int_t Column() const;
63  Float_t Edep() const;
64  Int_t Adc() const;
65 // gain related (oct'07
66  Float_t GainCell() const;
67  Float_t GainSmChain() const;
68  Float_t CellStatus() const;
69 
70  void setGsuper(Int_t);
71  void setSubDetector(Int_t);
72  void setRow(Int_t);
73  void setColumn(Int_t);
74  void setEdep(Float_t);
75  void setAdc(Int_t);
76 //gain related
77  void setGainCell(Float_t);
78  void setGainSmChain(Float_t);
79  void setCellStatus(Float_t);
80  // sorting related
81  Int_t Compare(const TObject*) const;
82  Bool_t IsSortable() const { return kTRUE; }
83 
84  virtual void print(ostream *os);
85  virtual void Browse(TBrowser *b);
86  ClassDef(StPmdHit,1)
87 };
90 inline StPmdHit::~StPmdHit(){ /* Nobody */ }
91 inline Int_t StPmdHit::Gsuper() const {return mGsuper;}
92 inline Int_t StPmdHit::module() {if(mGsuper<=12){return mGsuper;}
93  else {return -1;}}
94 inline Int_t StPmdHit::SubDetector() const {return mSubdet;}
95 inline Int_t StPmdHit::Row() const {return mRow;}
96 inline Int_t StPmdHit::Column() const {return mCol;}
97 inline Float_t StPmdHit::Edep() const {return mEdep;}
98 inline Int_t StPmdHit::Adc() const {return mAdc;}
99 //gainrelated
100 inline Float_t StPmdHit::GainCell() const {return mGainCell;}
101 inline Float_t StPmdHit::GainSmChain() const {return mGainSmChain;}
102 inline Float_t StPmdHit::CellStatus() const {return mCellStatus;}
103 
104 inline void StPmdHit::setGsuper(Int_t var) {mGsuper = var;}
105 inline void StPmdHit::setSubDetector(Int_t var) {mSubdet = var;}
106 inline void StPmdHit::setRow(Int_t var) {mRow = var;}
107 inline void StPmdHit::setColumn(Int_t var) {mCol = var;}
108 inline void StPmdHit::setEdep(Float_t var) {mEdep = var;}
109 inline void StPmdHit::setAdc(Int_t var) {mAdc = var;}
110 //gain related
111 inline void StPmdHit::setGainCell(Float_t var) {mGainCell = var;}
112 inline void StPmdHit::setGainSmChain(Float_t var) {mGainSmChain = var;}
113 inline void StPmdHit::setCellStatus(Float_t var) {mCellStatus = var;}
114 
115 
116 #endif
117 
118 
119 
Int_t Adc() const
function for edep
Definition: StPmdHit.h:98
virtual void print(ostream *os)
Definition: StPmdHit.cxx:37
StPmdHit()
status based on chain selection (1=OK, 0=bad)
Definition: StPmdHit.cxx:29
Float_t GainCell() const
function for adc
Definition: StPmdHit.h:100
~StPmdHit()
A constructor.
Definition: StPmdHit.h:90
Int_t Row() const
function for subdetector
Definition: StPmdHit.h:95
Int_t module()
function for supermodule no.
Definition: StPmdHit.h:92
Float_t CellStatus() const
SmChain to SmChain gain.
Definition: StPmdHit.h:102
Int_t Column() const
function for row
Definition: StPmdHit.h:96
void setGsuper(Int_t)
Cell status (chain selection based)
Definition: StPmdHit.h:104
Int_t Gsuper() const
A destructor.
Definition: StPmdHit.h:91
Float_t Edep() const
function for col
Definition: StPmdHit.h:97
Float_t GainSmChain() const
cell by cell gain
Definition: StPmdHit.h:101
Int_t SubDetector() const
function for module
Definition: StPmdHit.h:94