StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPxlRawHit.cxx
1 
6 /***************************************************************************
7  *
8  * $Id: StPxlRawHit.cxx,v 1.3 2014/01/28 19:29:44 qiuh Exp $
9  *
10  * Author: Qiu Hao, Jan 2012
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.cxx,v $
21  * Revision 1.3 2014/01/28 19:29:44 qiuh
22  * *** empty log message ***
23  *
24  *
25  **************************************************************************/
26 
27 #include "StPxlRawHit.h"
28 
29 ClassImp(StPxlRawHit)
30 
31 StPxlRawHit::StPxlRawHit() : TObject()
32 {
33  mSector = -1;
34  mLadder = -1;
35  mSensor = -1;
36  mRow = -1;
37  mColumn = -1;
38  mIdTruth = 0;
39 }
40 
41 StPxlRawHit::StPxlRawHit(Int_t sector, Int_t ladder, Int_t sensor, Int_t row, Int_t column, Int_t idTruth) : TObject()
42 {
43  mSector = sector;
44  mLadder = ladder;
45  mSensor = sensor;
46  mRow = row;
47  mColumn = column;
48  mIdTruth = idTruth;
49 }
50 
51 Int_t StPxlRawHit::sector() const {return mSector;}
52 Int_t StPxlRawHit::ladder() const {return mLadder;}
53 Int_t StPxlRawHit::sensor() const {return mSensor;}
54 Int_t StPxlRawHit::row() const {return mRow;}
55 Int_t StPxlRawHit::column() const {return mColumn;}
56 Int_t StPxlRawHit::idTruth() const {return mIdTruth;}
57 
58 void StPxlRawHit::setSector(Int_t sector)
59 {
60  mSector = sector;
61 }
62 
63 void StPxlRawHit::setLadder(Int_t ladder)
64 {
65  mLadder = ladder;
66 }
67 
68 void StPxlRawHit::setSensor(Int_t sensor)
69 {
70  mSensor = sensor;
71 }
72 
73 void StPxlRawHit::setRow(Int_t row)
74 {
75  mRow = row;
76 }
77 
79 {
80  mColumn = column;
81 }
82 
83 void StPxlRawHit::setIdTruth(Int_t idTruth)
84 {
85  mIdTruth = idTruth;
86 }
87 
89 {
90  printf("StPxlRawHit: sec:%i lad:%i sen:%i row:%i col:%i idT:%i\n", sector(), ladder(), sensor(), row(), column(), idTruth());
91 }
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