98 |
|
Char_t fSpare_width; |
99 |
|
}; |
100 |
|
|
101 |
< |
PixelHit() : fType(0), fQuality(0), fCharge(0), fSize(0) {} |
101 |
> |
PixelHit() : fType(0), fQuality(0), fCharge(0), fSizeX(0), fSizeY(0),fIsAnyPixelOnEdge(kFALSE) {} |
102 |
|
PixelHit(Double_t x, Double_t y, Double_t z) : |
103 |
< |
fPosition(x,y,z), fType(0), fQuality(0), fCharge(0), fSize(0) {} |
103 |
> |
fPosition(x,y,z), fType(0), fQuality(0), fCharge(0), fSizeX(0), fSizeY(0), fIsAnyPixelOnEdge(kFALSE) {} |
104 |
|
PixelHit(const ThreeVector &pos) : |
105 |
< |
fPosition(pos), fType(0), fQuality(0), fCharge(0), fSize(0) {} |
105 |
> |
fPosition(pos), fType(0), fQuality(0), fCharge(0), fSizeX(0), fSizeY(0), fIsAnyPixelOnEdge(kFALSE) {} |
106 |
|
|
107 |
< |
UInt_t Charge() const { return fCharge; } |
108 |
< |
Bool_t IsOnEdge() const; |
109 |
< |
Bool_t HasBadPixels() const; |
110 |
< |
EObjType ObjType() const { return kPixelHit; } |
111 |
< |
const ThreeVector Position() const { return fPosition.V(); } |
112 |
< |
UInt_t Quality() const { return fQuality; } |
113 |
< |
void SetCharge(UInt_t u) { fCharge = u; } |
114 |
< |
void SetPosition(const ThreeVector &pos) { fPosition = pos; } |
107 |
> |
UInt_t Charge() const { return fCharge; } |
108 |
> |
Bool_t IsAnyPixelOnEdge() const { return fIsAnyPixelOnEdge; } |
109 |
> |
Bool_t IsOnEdge() const; |
110 |
> |
Bool_t HasBadPixels() const; |
111 |
> |
EObjType ObjType() const { return kPixelHit; } |
112 |
> |
const ThreeVector Position() const { return fPosition.V(); } |
113 |
> |
UInt_t Quality() const { return fQuality; } |
114 |
> |
void SetAnyPixelIsOnEdge(Bool_t e) { fIsAnyPixelOnEdge = e; } |
115 |
> |
void SetCharge(UInt_t u) { fCharge = u; } |
116 |
> |
void SetPosition(const ThreeVector &pos) { fPosition = pos; } |
117 |
|
void SetPosition(Double_t x, Double_t y, Double_t z); |
118 |
< |
void SetQuality(UInt_t u) { fQuality = u; } |
119 |
< |
void SetType(Char_t t) { fType = t; } |
120 |
< |
void SetSize(UInt_t u) { fSize = u; } |
121 |
< |
UInt_t Size() const { return fSize; } |
122 |
< |
Bool_t SpansTwoROCs() const; |
123 |
< |
EType Type() const |
118 |
> |
void SetQuality(UInt_t u) { fQuality = u; } |
119 |
> |
void SetType(Char_t t) { fType = t; } |
120 |
> |
void SetSizeX(UInt_t u) { fSizeX = u; } |
121 |
> |
void SetSizeY(UInt_t u) { fSizeY = u; } |
122 |
> |
UInt_t SizeX() const { return fSizeX; } |
123 |
> |
UInt_t SizeY() const { return fSizeY; } |
124 |
> |
Bool_t SpansTwoROCs() const; |
125 |
> |
EType Type() const |
126 |
|
{ return static_cast<EType>(fType); } |
127 |
< |
Double_t X() const { return fPosition.X(); } |
128 |
< |
Double_t Y() const { return fPosition.Y(); } |
129 |
< |
Double_t Z() const { return fPosition.Z(); } |
127 |
> |
Double_t X() const { return fPosition.X(); } |
128 |
> |
Double_t Y() const { return fPosition.Y(); } |
129 |
> |
Double_t Z() const { return fPosition.Z(); } |
130 |
|
|
131 |
|
protected: |
132 |
< |
Vect3 fPosition; //point in space |
133 |
< |
Char_t fType; //pixel type |
134 |
< |
UInt_t fQuality; //quality word as defined by SiPixelRecHitQuality |
135 |
< |
UInt_t fCharge; //charge of assigned cluster |
136 |
< |
UInt_t fSize; //size of assigned cluster |
137 |
< |
static Packing fPacking; //!the (un)packing helper class |
132 |
> |
Vect3 fPosition; //point in space |
133 |
> |
Char_t fType; //pixel type |
134 |
> |
UInt_t fQuality; //quality word as defined by SiPixelRecHitQuality |
135 |
> |
UInt_t fCharge; //charge of assigned cluster |
136 |
> |
UInt_t fSizeX; //size in local x of assigned cluster |
137 |
> |
UInt_t fSizeY; //size in local y of assigned cluster |
138 |
> |
Bool_t fIsAnyPixelOnEdge; //=true if one pixel is on edge |
139 |
> |
static Packing fPacking; //!the (un)packing helper class |
140 |
|
|
141 |
|
ClassDef(PixelHit, 1) // PixelHit class |
142 |
|
}; |