60 static const char rcsid[] =
"$Id: StSsdHit.cxx,v 2.14 2009/11/23 22:20:51 ullrich Exp $";
68 mLocalPosition[0] = 0;
69 mLocalPosition[1] = 0;
75 unsigned int hw,
float q,
unsigned char c)
76 :
StHit(p, e, hw, q, c)
78 mLocalPosition[0] = 0;
79 mLocalPosition[1] = 0;
83 StSsdHit::~StSsdHit() {}
86 StSsdHit::ladder()
const
88 unsigned long numwaf = (mHardwarePosition>>4) & ~(~0UL<<9);
89 return (numwaf/mWaferPerLadder+1);
93 StSsdHit::wafer()
const
95 unsigned long numwaf = (mHardwarePosition>>4) & ~(~0UL<<9);
96 return (numwaf-(numwaf/mWaferPerLadder)*mWaferPerLadder+1);
100 StSsdHit::centralStripNSide()
const
106 StSsdHit::centralStripPSide()
const
108 return (bits(23, 5)+bits(13,10)-15);
112 StSsdHit::clusterSizeNSide()
const
114 return bits(28, 2)+1;
118 StSsdHit::clusterSizePSide()
const
120 return bits(30, 2)+1;
124 StSsdHit::localPosition(
unsigned int i)
const
127 return mLocalPosition[i];
133 StSsdHit::setLocalPosition(
float u,
float v)
135 mLocalPosition[0] = u;
136 mLocalPosition[1] = v;
140 StSsdHit::volumeID()
const {
return 10000 * sector() + 7000 + 100 * wafer() + ladder();}
142 ostream& operator<<(ostream& os,
const StSsdHit& v)
144 return os << Form(
"Ssd l:%2i w:%2i",v.ladder(), v.wafer())
146 << Form(
" Luv: %8.3f %8.3f",v.localPosition(0),v.localPosition(1));
148 void StSsdHit::Print(
const Option_t *option)
const { cout << *
this << endl;}