StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPxlRawHit.h
1 
6 /***************************************************************************
7  *
8  * $Id: StPxlRawHit.h,v 1.4 2014/08/06 11:43:34 jeromel Exp $
9  *
10  * Author: Qiu Hao, Jan 2013
11  ***************************************************************************
12  *
13  * Description:
14  * pixel raw hit before clustering. One raw hit is one fired pixel.
15  * More information at
16  * https://www.star.bnl.gov/protected/heavy/qiuh/HFT/software/PXL_software.pdf
17  *
18  ***************************************************************************
19  *
20  * $Log: StPxlRawHit.h,v $
21  * Revision 1.4 2014/08/06 11:43:34 jeromel
22  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
23  *
24  * Revision 1.3 2014/01/28 19:29:44 qiuh
25  * *** empty log message ***
26  *
27  *
28  **************************************************************************/
29 
30 #ifndef StPxlRawHit_hh
31 #define StPxlRawHit_hh
32 
33 #include "Rtypes.h"
34 #include "TObject.h"
35 
36 class StPxlRawHit: public TObject
37 {
38 public:
39  StPxlRawHit();
40  StPxlRawHit(Int_t sector, Int_t ladder, Int_t sensor, Int_t row, Int_t column, Int_t idTruth);
41 
42  Int_t sector() const;
43  Int_t ladder() const;
44  Int_t sensor() const;
45  Int_t row() const;
46  Int_t column() const;
47  Int_t idTruth() const;
48 
49  void setSector(Int_t sector);
50  void setLadder(Int_t ladder);
51  void setSensor(Int_t sensor);
52  void setRow(Int_t row);
53  void setColumn(Int_t column);
54  void setIdTruth(Int_t idTruth);
55 
56  void print();
57  virtual const char *GetCVS() const {
58  static const char cvs[] = "Tag $Name: $ $Id: StPxlRawHit.h,v 1.4 2014/08/06 11:43:34 jeromel Exp $ built " __DATE__ " " __TIME__ ;
59  return cvs;
60  }
61 
62 protected:
63  Char_t mSector;
64  Char_t mLadder;
65  Char_t mSensor;
66  Short_t mRow;
67  Short_t mColumn;
68  UShort_t mIdTruth;
69 
70  ClassDef(StPxlRawHit, 1)
71 };
72 #endif
Char_t mSensor
sensor 1-10
Definition: StPxlRawHit.h:65
void setIdTruth(Int_t idTruth)
set idTruth
Definition: StPxlRawHit.cxx:83
void setSensor(Int_t sensor)
set sensor
Definition: StPxlRawHit.cxx:68
Char_t mSector
sector 1-10
Definition: StPxlRawHit.h:63
Int_t row() const
row 0-927
Definition: StPxlRawHit.cxx:54
void setLadder(Int_t ladder)
set ladder
Definition: StPxlRawHit.cxx:63
UShort_t mIdTruth
for embedding, 0 as background
Definition: StPxlRawHit.h:68
void setColumn(Int_t column)
set column
Definition: StPxlRawHit.cxx:78
Int_t column() const
column 0-959
Definition: StPxlRawHit.cxx:55
Int_t ladder() const
ladder 1-4
Definition: StPxlRawHit.cxx:52
Char_t mLadder
ladder 1-4
Definition: StPxlRawHit.h:64
void setSector(Int_t sector)
set sector
Definition: StPxlRawHit.cxx:58
Int_t idTruth() const
for embedding, 0 as background
Definition: StPxlRawHit.cxx:56
Short_t mRow
row 0-927
Definition: StPxlRawHit.h:66
Int_t sector() const
sector 1-10
Definition: StPxlRawHit.cxx:51
void print()
print all information
Definition: StPxlRawHit.cxx:88
Int_t sensor() const
sensor 1-10
Definition: StPxlRawHit.cxx:53
Short_t mColumn
column 0-959
Definition: StPxlRawHit.h:67
void setRow(Int_t row)
set row
Definition: StPxlRawHit.cxx:73