CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TMDCWireHitMC.cxx
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TMDCWireHitMC.cxx,v 1.5 2010/03/31 09:58:59 liucy Exp $
3//-----------------------------------------------------------------------------
4// Filename : TMDCWireHitMC.h
5// Section : Tracking MDC
6// Owner : Yoshi Iwasaki
7// Email : [email protected]
8//-----------------------------------------------------------------------------
9// Description : A class to represent a MC wire hit in MDC.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
14#include "TrkReco/TTrackHEP.h"
15
16//#include "panther/panther.h"
17//#include MDC_H
18#include "MdcTables/MdcTables.h"
19
21 const TMDCWireHit * wh,
23: _wire(w),
24 _datcdc(h),
25 _hit(wh),
26 _position(h->xw, h->yw, h->zw),
27 _entrance(h->xin, h->yin, h->zin),
28 _direction(h->xout - h->xin, h->yout - h->yin, h->zout - h->zin),
29 _distance(h->dist),
30 _energy(h->chrg),
31 _leftRight((h->lr < 0) ? 0 : 1),
32 _momentum(h->px, h->py, h->pz) {
33 // _hep = TTrackHEP::hep((struct gen_hepevt *) BsGetEnt(GEN_HEPEVT,
34 // h->m_hep,
35 // BBS_No_Index));
36 _hep = TTrackHEP::hep(h->hep);
37}
38
40}
const Gen_hepevt * hep
Definition: MdcTables.h:661
TMDCWireHitMC(const TMDCWire *, const TMDCWireHit *, MdcDat_mcwirhit *)
Constructor.
virtual ~TMDCWireHitMC()
Destructor.
A class to represent a wire in MDC.
Definition: TMDCWire.h:55
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.
Definition: TTrackHEP.h:164