00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "TrkReco/TMDCWireHitMC.h"
00014 #include "TrkReco/TTrackHEP.h"
00015
00016
00017
00018 #include "MdcTables/MdcTables.h"
00019
00020 TMDCWireHitMC::TMDCWireHitMC(const TMDCWire * w,
00021 const TMDCWireHit * wh,
00022 MdcDat_mcwirhit * h)
00023 : _wire(w),
00024 _datcdc(h),
00025 _hit(wh),
00026 _position(h->xw, h->yw, h->zw),
00027 _entrance(h->xin, h->yin, h->zin),
00028 _direction(h->xout - h->xin, h->yout - h->yin, h->zout - h->zin),
00029 _distance(h->dist),
00030 _energy(h->chrg),
00031 _leftRight((h->lr < 0) ? 0 : 1),
00032 _momentum(h->px, h->py, h->pz) {
00033
00034
00035
00036 _hep = TTrackHEP::hep(h->hep);
00037 }
00038
00039 TMDCWireHitMC::~TMDCWireHitMC() {
00040 }