77 static const char rcsid[] =
"$Id: StTpcHit.cxx,v 2.19 2011/10/17 00:13:49 fisyak Exp $";
83 void
StTpcHit::setExtends(Float_t cl_x, Float_t cl_t, Short_t mnpad, Short_t mxpad, Short_t mntmbk, Short_t mxtmbk) {
84 setPadTmbk(cl_x, cl_t);
85 Short_t pad = TMath::Nint(mMcl_x/64.);
86 Short_t time = TMath::Nint(mMcl_t/64.);
87 mMinpad = pad - mnpad;
88 mMaxpad = mxpad - pad;
89 mMintmbk = time - mntmbk;
90 mMaxtmbk = mxtmbk - time;
93 ostream& operator<<(ostream& os,
const StTpcHit& v)
95 return os << Form(
"Tpc s/r %3i/%3i ",v.sector(),v.padrow())
97 << Form(
" pmin/max %3i/%3i np %2i tmin/max %3i/%3i nt %2i tm %6.2f pad %6.2f adc %4i",
98 (Int_t) v.minPad(), (Int_t) v.maxPad(),(Int_t) v.padsInHit(),
99 (Int_t) v.minTmbk(), (Int_t) v.maxTmbk(),(Int_t) v.timeBucketsInHit(),
100 v.timeBucket(),v.pad(), v.adc());
102 void StTpcHit::Print(Option_t *option)
const {cout << *
this << endl;}