BOSS 7.0.5
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.
 
 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 InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

Constructor & Destructor Documentation

◆ TMDCWireHitMC() [1/2]

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
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.

◆ ~TMDCWireHitMC() [1/2]

TMDCWireHitMC::~TMDCWireHitMC ( )
virtual

Destructor.

Definition at line 39 of file TMDCWireHitMC.cxx.

39 {
40}

◆ TMDCWireHitMC() [2/2]

TMDCWireHitMC::TMDCWireHitMC ( const TMDCWire ,
const TMDCWireHit ,
MdcDat_mcwirhit  
)

Constructor.

◆ ~TMDCWireHitMC() [2/2]

virtual TMDCWireHitMC::~TMDCWireHitMC ( )
virtual

Destructor.

Member Function Documentation

◆ datcdc() [1/2]

MdcDat_mcwirhit * TMDCWireHitMC::datcdc ( void  ) const
inline

returns a pointer to DATMDC_MCWIRHIT.

Definition at line 147 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

147 {
148 return _datcdc;
149}

Referenced by TTrackManager::saveMCTables().

◆ datcdc() [2/2]

MdcDat_mcwirhit * TMDCWireHitMC::datcdc ( void  ) const

returns a pointer to DATMDC_MCWIRHIT.

◆ direction() [1/2]

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

returns vector from entrance to exit point.

Definition at line 135 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

135 {
136 return _direction;
137}

Referenced by TPerfectFinder::doit().

◆ direction() [2/2]

const HepVector3D & TMDCWireHitMC::direction ( void  ) const

returns vector from entrance to exit point.

◆ distance() [1/2]

float TMDCWireHitMC::distance ( void  ) const
inline

returns drift distance.

Definition at line 117 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

117 {
118 return _distance;
119}

◆ distance() [2/2]

float TMDCWireHitMC::distance ( void  ) const

returns drift distance.

◆ entrance() [1/2]

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

returns an entrance point.

Definition at line 129 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

129 {
130 return _entrance;
131}

Referenced by TPerfectFinder::doit().

◆ entrance() [2/2]

const HepPoint3D & TMDCWireHitMC::entrance ( void  ) const

returns an entrance point.

◆ hep() [1/2]

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

returns a pointer to a GEN_HEPEVT.

Definition at line 159 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

159 {
160 return _hep;
161}

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

◆ hep() [2/2]

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

returns a pointer to a GEN_HEPEVT.

◆ hit() [1/2]

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

returns a pointer to a TMDCWireHit.

Definition at line 165 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

165 {
166 return _hit;
167}

Referenced by TPerfectFinder::doit().

◆ hit() [2/2]

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

returns a pointer to a TMDCWireHit.

◆ hitPosition() [1/2]

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

returns hit position.

Definition at line 123 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

123 {
124 return _position;
125}

◆ hitPosition() [2/2]

const HepPoint3D & TMDCWireHitMC::hitPosition ( void  ) const

returns hit position.

◆ leftRight() [1/2]

int TMDCWireHitMC::leftRight ( void  ) const
inline

returns left or right.

Definition at line 141 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

141 {
142 return _leftRight;
143}

Referenced by TPerfectFinder::doit().

◆ leftRight() [2/2]

int TMDCWireHitMC::leftRight ( void  ) const

returns left or right.

◆ momentum() [1/2]

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

returns momentum vector at the entrance.

Definition at line 171 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

171 {
172 return _momentum;
173}

Referenced by TPerfectFinder::doit().

◆ momentum() [2/2]

const Hep3Vector & TMDCWireHitMC::momentum ( void  ) const

returns momentum vector at the entrance.

◆ wire() [1/2]

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

returns a pointer to a TMDCWire.

Definition at line 153 of file InstallArea/include/TrkReco/TrkReco/TMDCWireHitMC.h.

153 {
154 return _wire;
155}

Referenced by TPerfectFinder::doit().

◆ wire() [2/2]

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

returns a pointer to a TMDCWire.

Friends And Related Function Documentation

◆ TMDC

TMDC
friend

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