#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 HepPoint3D & | hitPosition (void) const |
returns hit position. | |
const HepPoint3D & | entrance (void) const |
returns an entrance point. | |
const HepVector3D & | direction (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_mcwirhit * | datcdc (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. | |
Private Attributes | |
const TMDCWire * | _wire |
const TMDCWireHit * | _hit |
HepPoint3D | _position |
HepPoint3D | _entrance |
HepVector3D | _direction |
Hep3Vector | _momentum |
float | _distance |
float | _energy |
int | _leftRight |
MdcDat_mcwirhit * | _datcdc |
const TTrackHEP * | _hep |
Friends | |
class | TMDC |
Definition at line 46 of file TMDCWireHitMC.h.
TMDCWireHitMC::TMDCWireHitMC | ( | const TMDCWire * | , | |
const TMDCWireHit * | , | |||
MdcDat_mcwirhit * | ||||
) |
Constructor.
Definition at line 20 of file TMDCWireHitMC.cxx.
References _hep, MdcDat_mcwirhit::hep, and TTrackHEP::hep().
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 // _hep = TTrackHEP::hep((struct gen_hepevt *) BsGetEnt(GEN_HEPEVT, 00034 // h->m_hep, 00035 // BBS_No_Index)); 00036 _hep = TTrackHEP::hep(h->hep); 00037 }
TMDCWireHitMC::~TMDCWireHitMC | ( | ) | [virtual] |
MdcDat_mcwirhit * TMDCWireHitMC::datcdc | ( | void | ) | const [inline] |
returns a pointer to DATMDC_MCWIRHIT.
Definition at line 147 of file TMDCWireHitMC.h.
References _datcdc.
00147 { 00148 return _datcdc; 00149 }
const HepVector3D & TMDCWireHitMC::direction | ( | void | ) | const [inline] |
returns vector from entrance to exit point.
Definition at line 135 of file TMDCWireHitMC.h.
References _direction.
00135 { 00136 return _direction; 00137 }
float TMDCWireHitMC::distance | ( | void | ) | const [inline] |
returns drift distance.
Definition at line 117 of file TMDCWireHitMC.h.
References _distance.
00117 { 00118 return _distance; 00119 }
const HepPoint3D & TMDCWireHitMC::entrance | ( | void | ) | const [inline] |
returns an entrance point.
Definition at line 129 of file TMDCWireHitMC.h.
References _entrance.
00129 { 00130 return _entrance; 00131 }
const TTrackHEP *const TMDCWireHitMC::hep | ( | void | ) | const [inline] |
returns a pointer to a GEN_HEPEVT.
Definition at line 159 of file TMDCWireHitMC.h.
References _hep.
Referenced by TMDCWireHit::dump(), and TConformalFinder::findSegmentsPerfect().
00159 { 00160 return _hep; 00161 }
const TMDCWireHit *const TMDCWireHitMC::hit | ( | void | ) | const [inline] |
returns a pointer to a TMDCWireHit.
Definition at line 165 of file TMDCWireHitMC.h.
References _hit.
00165 { 00166 return _hit; 00167 }
const HepPoint3D & TMDCWireHitMC::hitPosition | ( | void | ) | const [inline] |
returns hit position.
Definition at line 123 of file TMDCWireHitMC.h.
References _position.
00123 { 00124 return _position; 00125 }
int TMDCWireHitMC::leftRight | ( | void | ) | const [inline] |
returns left or right.
Definition at line 141 of file TMDCWireHitMC.h.
References _leftRight.
00141 { 00142 return _leftRight; 00143 }
const Hep3Vector & TMDCWireHitMC::momentum | ( | void | ) | const [inline] |
returns momentum vector at the entrance.
Definition at line 171 of file TMDCWireHitMC.h.
References _momentum.
Referenced by TTrackMC::compare().
00171 { 00172 return _momentum; 00173 }
const TMDCWire *const TMDCWireHitMC::wire | ( | void | ) | const [inline] |
returns a pointer to a TMDCWire.
Definition at line 153 of file TMDCWireHitMC.h.
References _wire.
00153 { 00154 return _wire; 00155 }
friend class TMDC [friend] |
Definition at line 101 of file TMDCWireHitMC.h.
MdcDat_mcwirhit* TMDCWireHitMC::_datcdc [private] |
HepVector3D TMDCWireHitMC::_direction [private] |
float TMDCWireHitMC::_distance [private] |
float TMDCWireHitMC::_energy [private] |
Definition at line 96 of file TMDCWireHitMC.h.
HepPoint3D TMDCWireHitMC::_entrance [private] |
const TTrackHEP* TMDCWireHitMC::_hep [private] |
const TMDCWireHit* TMDCWireHitMC::_hit [private] |
int TMDCWireHitMC::_leftRight [private] |
Hep3Vector TMDCWireHitMC::_momentum [private] |
HepPoint3D TMDCWireHitMC::_position [private] |
const TMDCWire* TMDCWireHitMC::_wire [private] |