BOSS 8.0.0
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 : yoshihito.iwasaki@kek.jp
8//-----------------------------------------------------------------------------
9// Description : A class to represent a MC wire hit in MDC.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#include "TrkReco/TMDCWireHitMC.h"
14#include "TrkReco/TTrackHEP.h"
15
16// #include "panther/panther.h"
17// #include MDC_H
18#include "MdcTables/MdcTables.h"
19
21 : _wire( w )
22 , _datcdc( h )
23 , _hit( wh )
24 , _position( h->xw, h->yw, h->zw )
25 , _entrance( h->xin, h->yin, h->zin )
26 , _direction( h->xout - h->xin, h->yout - h->yin, h->zout - h->zin )
27 , _distance( h->dist )
28 , _energy( h->chrg )
29 , _leftRight( ( h->lr < 0 ) ? 0 : 1 )
30 , _momentum( h->px, h->py, h->pz ) {
31 // _hep = TTrackHEP::hep((struct gen_hepevt *) BsGetEnt(GEN_HEPEVT,
32 // h->m_hep,
33 // BBS_No_Index));
34 _hep = TTrackHEP::hep( h->hep );
35}
36
double w
TMDCWireHitMC(const TMDCWire *, const TMDCWireHit *, MdcDat_mcwirhit *)
Constructor.
virtual ~TMDCWireHitMC()
Destructor.
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.