BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TMDCWireHitMC Class Reference

A class to represent a MC wire hit in MDC. More...

#include <TMDCWireHitMC.h>

Public Member Functions

 TMDCWireHitMC (const TMDCWire *, const TMDCWireHit *, MdcDat_mcwirhit *)
 Constructor.
 
virtual ~TMDCWireHitMC ()
 Destructor.
 
float distance (void) const
 returns drift distance.
 
const HepPoint3DhitPosition (void) const
 returns hit position.
 
const HepPoint3Dentrance (void) const
 returns an entrance point.
 
const HepVector3Ddirection (void) const
 returns vector from entrance to exit point.
 
const Hep3Vector & momentum (void) const
 returns momentum vector at the entrance.
 
int leftRight (void) const
 returns left or right.
 
MdcDat_mcwirhitdatcdc (void) const
 returns a pointer to DATMDC_MCWIRHIT.
 
const TMDCWire *const wire (void) const
 returns a pointer to a TMDCWire.
 
const TTrackHEP *const hep (void) const
 returns a pointer to a GEN_HEPEVT.
 
const TMDCWireHit *const hit (void) const
 returns a pointer to a TMDCWireHit.
 

Friends

class TMDC
 

Detailed Description

A class to represent a MC wire hit in MDC.

Definition at line 46 of file TMDCWireHitMC.h.

Constructor & Destructor Documentation

◆ TMDCWireHitMC()

TMDCWireHitMC::TMDCWireHitMC ( const TMDCWire * w,
const TMDCWireHit * wh,
MdcDat_mcwirhit * h )

Constructor.

Definition at line 20 of file TMDCWireHitMC.cxx.

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}
double w
const Gen_hepevt * hep
Definition MdcTables.h:661
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.
Definition TTrackHEP.h:164

◆ ~TMDCWireHitMC()

TMDCWireHitMC::~TMDCWireHitMC ( )
virtual

Destructor.

Definition at line 39 of file TMDCWireHitMC.cxx.

39 {
40}

Member Function Documentation

◆ datcdc()

MdcDat_mcwirhit * TMDCWireHitMC::datcdc ( void ) const
inline

returns a pointer to DATMDC_MCWIRHIT.

Definition at line 147 of file TMDCWireHitMC.h.

147 {
148 return _datcdc;
149}

Referenced by TTrackManager::saveMCTables().

◆ direction()

const HepVector3D & TMDCWireHitMC::direction ( void ) const
inline

returns vector from entrance to exit point.

Definition at line 135 of file TMDCWireHitMC.h.

135 {
136 return _direction;
137}

Referenced by TPerfectFinder::doit().

◆ distance()

float TMDCWireHitMC::distance ( void ) const
inline

returns drift distance.

Definition at line 117 of file TMDCWireHitMC.h.

117 {
118 return _distance;
119}

◆ entrance()

const HepPoint3D & TMDCWireHitMC::entrance ( void ) const
inline

returns an entrance point.

Definition at line 129 of file TMDCWireHitMC.h.

129 {
130 return _entrance;
131}

Referenced by TPerfectFinder::doit().

◆ hep()

const TTrackHEP *const TMDCWireHitMC::hep ( void ) const
inline

returns a pointer to a GEN_HEPEVT.

Definition at line 159 of file TMDCWireHitMC.h.

159 {
160 return _hep;
161}

Referenced by TPerfectFinder::doit(), Dump(), TMDCWireHit::dump(), Links2HEP(), TLine0::refine(), TMLine::refine(), and TTrackManager::saveMCTables().

◆ hit()

const TMDCWireHit *const TMDCWireHitMC::hit ( void ) const
inline

returns a pointer to a TMDCWireHit.

Definition at line 165 of file TMDCWireHitMC.h.

165 {
166 return _hit;
167}

Referenced by TPerfectFinder::doit().

◆ hitPosition()

const HepPoint3D & TMDCWireHitMC::hitPosition ( void ) const
inline

returns hit position.

Definition at line 123 of file TMDCWireHitMC.h.

123 {
124 return _position;
125}

◆ leftRight()

int TMDCWireHitMC::leftRight ( void ) const
inline

returns left or right.

Definition at line 141 of file TMDCWireHitMC.h.

141 {
142 return _leftRight;
143}

Referenced by TPerfectFinder::doit().

◆ momentum()

const Hep3Vector & TMDCWireHitMC::momentum ( void ) const
inline

returns momentum vector at the entrance.

Definition at line 171 of file TMDCWireHitMC.h.

171 {
172 return _momentum;
173}

Referenced by TPerfectFinder::doit().

◆ wire()

const TMDCWire *const TMDCWireHitMC::wire ( void ) const
inline

returns a pointer to a TMDCWire.

Definition at line 153 of file TMDCWireHitMC.h.

153 {
154 return _wire;
155}

Referenced by TPerfectFinder::doit().

Friends And Related Symbol Documentation

◆ TMDC

friend class TMDC
friend

Definition at line 101 of file TMDCWireHitMC.h.


The documentation for this class was generated from the following files: