TMDCWireHitMC Class Reference

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

#include <TMDCWireHitMC.h>

List of all members.

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.

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


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 ( 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]

Destructor.

Definition at line 39 of file TMDCWireHitMC.cxx.

00039                               {
00040 }


Member Function Documentation

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 }


Friends And Related Function Documentation

friend class TMDC [friend]

Definition at line 101 of file TMDCWireHitMC.h.


Member Data Documentation

MdcDat_mcwirhit* TMDCWireHitMC::_datcdc [private]

Definition at line 98 of file TMDCWireHitMC.h.

Referenced by datcdc().

HepVector3D TMDCWireHitMC::_direction [private]

Definition at line 93 of file TMDCWireHitMC.h.

Referenced by direction().

float TMDCWireHitMC::_distance [private]

Definition at line 95 of file TMDCWireHitMC.h.

Referenced by distance().

float TMDCWireHitMC::_energy [private]

Definition at line 96 of file TMDCWireHitMC.h.

HepPoint3D TMDCWireHitMC::_entrance [private]

Definition at line 92 of file TMDCWireHitMC.h.

Referenced by entrance().

const TTrackHEP* TMDCWireHitMC::_hep [private]

Definition at line 99 of file TMDCWireHitMC.h.

Referenced by hep(), and TMDCWireHitMC().

const TMDCWireHit* TMDCWireHitMC::_hit [private]

Definition at line 90 of file TMDCWireHitMC.h.

Referenced by hit().

int TMDCWireHitMC::_leftRight [private]

Definition at line 97 of file TMDCWireHitMC.h.

Referenced by leftRight().

Hep3Vector TMDCWireHitMC::_momentum [private]

Definition at line 94 of file TMDCWireHitMC.h.

Referenced by momentum().

HepPoint3D TMDCWireHitMC::_position [private]

Definition at line 91 of file TMDCWireHitMC.h.

Referenced by hitPosition().

const TMDCWire* TMDCWireHitMC::_wire [private]

Definition at line 89 of file TMDCWireHitMC.h.

Referenced by wire().


Generated on Tue Nov 29 23:36:02 2016 for BOSS_7.0.2 by  doxygen 1.4.7