Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TMDCWireHit Class Reference

#include <TMDCWireHit.h>

List of all members.

Public Member Functions

float dDrift (void) const
 returns drift distance error.
float dDrift (unsigned) const
 returns drift distance error.
float dDrift (void) const
 returns drift distance error.
float dDrift (unsigned) const
 returns drift distance error.
float drift (void) const
 returns drift distance.
float drift (unsigned) const
 returns drift distance.
float drift (void) const
 returns drift distance.
float drift (unsigned) const
 returns drift distance.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const TMDCWireHitMC *const mc (TMDCWireHitMC *)
 sets a pointer to TMDCWireHitMC.
const TMDCWireHitMC *const mc (void) const
 returns a pointer to TMDCWireHitMC.
const TMDCWireHitMC *const mc (TMDCWireHitMC *)
 sets a pointer to TMDCWireHitMC.
const TMDCWireHitMC *const mc (void) const
 returns a pointer to TMDCWireHitMC.
HepPoint3D position (unsigned) const
 returns left position. z is always zero.
HepPoint3D position (unsigned) const
 returns left position. z is always zero.
MdcRec_wirhitreccdc (void) const
 returns a pointer to RECMDC_WIRHIT.
MdcRec_wirhitreccdc (void) const
 returns a pointer to RECMDC_WIRHIT.
unsigned sequence (unsigned) const
 sets sequential length in one segment : this parameter is used in TCurlFinder now.
unsigned sequence (void) const
 returns sequential Length in one segment : this parameter is used in TCurlFinder now.
unsigned sequence (unsigned) const
 sets sequential length in one segment : this parameter is used in TCurlFinder now.
unsigned sequence (void) const
 returns sequential Length in one segment : this parameter is used in TCurlFinder now.
unsigned state (unsigned newState) const
 sets state. Meaning of bits are written below. (tmp)
unsigned state (unsigned newState)
 sets state. Meaning of bits are written below.
unsigned state (void) const
 returns state.
unsigned state (unsigned newState) const
 sets state. Meaning of bits are written below. (tmp)
unsigned state (unsigned newState)
 sets state. Meaning of bits are written below.
unsigned state (void) const
 returns state.
 TMDCWireHit (TMDCWire *, MdcRec_wirhit *, float fudgeFactor)
 Constructor.
 TMDCWireHit (TMDCWire *, MdcRec_wirhit *, float fudgeFactor)
 Constructor.
const TTrack *const track (const TTrack *) const
 assigns a pointer to a TTrack. (tmp)
const TTrack *const track (const TTrack *)
 assigns a pointer to a TTrack.
const TTrack *const track (void) const
 assigns a pointer to a TTrack.
const TTrack *const track (const TTrack *) const
 assigns a pointer to a TTrack. (tmp)
const TTrack *const track (const TTrack *)
 assigns a pointer to a TTrack.
const TTrack *const track (void) const
 assigns a pointer to a TTrack.
const TMDCWire *const wire (void) const
 returns a pointer to a TMDCWire.
const TMDCWire *const wire (void) const
 returns a pointer to a TMDCWire.
const HepPoint3DxyPosition (void) const
 returns position in the middle of wire. z is always zero, however.
const HepPoint3DxyPosition (void) const
 returns position in the middle of wire. z is always zero, however.
virtual ~TMDCWireHit ()
 Destructor.
virtual ~TMDCWireHit ()
 Destructor.

Private Attributes

float _drift [2]
float _driftError [2]
const TMDCWireHitMC_mc
const TMDCWireHitMC_mc
MdcRec_wirhit *const _r
MdcRec_wirhit *const _r
unsigned _sequentialLength
unsigned _state
const TTrack_track
const TTrack_track
const TMDCWire_wire
const TMDCWire_wire
const HepPoint3D_xyPosition
const HepPoint3D_xyPosition


Constructor & Destructor Documentation

TMDCWireHit::TMDCWireHit TMDCWire ,
MdcRec_wirhit ,
float  fudgeFactor
 

Constructor.

00045 : _wire(w),
00046   _xyPosition(w->xyPosition()),
00047   _r(r),
00048   _state(r->stat),
00049   _track(0),
00050   _mc(0) {
00051     w->hit(this);
00052     _drift[0] = r->ddl;
00053     _drift[1] = r->ddr;
00054     _driftError[0] = r->erddl * fudgeFactor;
00055     _driftError[1] = r->erddr * fudgeFactor;
00056     if (w->axial()) _state |= WireHitAxial;
00057     else            _state |= WireHitStereo;
00058 }

TMDCWireHit::~TMDCWireHit  )  [virtual]
 

Destructor.

00060                           {
00061 }

TMDCWireHit::TMDCWireHit TMDCWire ,
MdcRec_wirhit ,
float  fudgeFactor
 

Constructor.

virtual TMDCWireHit::~TMDCWireHit  )  [virtual]
 

Destructor.


Member Function Documentation

float TMDCWireHit::dDrift void   )  const
 

returns drift distance error.

float TMDCWireHit::dDrift unsigned   )  const
 

returns drift distance error.

float TMDCWireHit::dDrift void   )  const [inline]
 

returns drift distance error.

00256                               {
00257     return (_driftError[0] + _driftError[1]) / 2.;
00258 }

float TMDCWireHit::dDrift unsigned   )  const [inline]
 

returns drift distance error.

00243                                     {
00244     if (i) return _driftError[1];
00245     return _driftError[0];
00246 }

float TMDCWireHit::drift void   )  const
 

returns drift distance.

float TMDCWireHit::drift unsigned   )  const
 

returns drift distance.

float TMDCWireHit::drift void   )  const [inline]
 

returns drift distance.

00250                              {
00251     return (_drift[0] + _drift[1]) / 2.;
00252 }

float TMDCWireHit::drift unsigned   )  const [inline]
 

returns drift distance.

00236                                    {
00237     if (i) return _drift[1];
00238     return _drift[0];
00239 }

void TMDCWireHit::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

dumps debug information.

void TMDCWireHit::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

dumps debug information.

00064                                                                     {
00065     std::cout << pre;
00066     std::cout << _wire->name();
00067     if (msg.find("state") != std::string::npos || msg.find("detail") != std::string::npos) {
00068         std::cout << ",state ";
00069         bitDisplay(_state);
00070         if (track()) std::cout << ",trk ";
00071     }
00072     if (msg.find("drift") != std::string::npos || msg.find("detail") != std::string::npos) {
00073         if (_state & WireHitLeftMask) std::cout << ", L";
00074         if (_state & WireHitRightMask) std::cout << ", R";
00075         std::cout<<" layer "<<_wire->layerId()<<" cell "<<_wire->localId();
00076         std::cout << ",dl " << _drift[0] << "+-" << _driftError[0];
00077         std::cout << ",dr " << _drift[1] << "+-" << _driftError[1];
00078     }
00079     if (msg.find("mc") != std::string::npos || msg.find("detail") != std::string::npos) {
00080         std::cout << ",hep ";
00081         if (mc()) {
00082             if (mc()->hep()) std::cout << mc()->hep()->id();
00083             else std::cout << "0";
00084         }
00085         else {
00086             std::cout << "0";
00087         }
00088     }
00089     std::cout << std::endl;
00090 }

const TMDCWireHitMC* const TMDCWireHit::mc TMDCWireHitMC  ) 
 

sets a pointer to TMDCWireHitMC.

const TMDCWireHitMC* const TMDCWireHit::mc void   )  const
 

returns a pointer to TMDCWireHitMC.

const TMDCWireHitMC *const TMDCWireHit::mc TMDCWireHitMC  )  [inline]
 

sets a pointer to TMDCWireHitMC.

00304                                  {
00305     return _mc = a;
00306 }

const TMDCWireHitMC *const TMDCWireHit::mc void   )  const [inline]
 

returns a pointer to TMDCWireHitMC.

00298                           {
00299     return _mc;
00300 }

HepPoint3D TMDCWireHit::position unsigned   )  const
 

returns left position. z is always zero.

HepPoint3D TMDCWireHit::position unsigned   )  const
 

returns left position. z is always zero.

00093                                        {
00094     const HepPoint3D myHepZHat(0.0, 0.0, 1.0);
00095     //...Left...
00096     if (lr == WireHitLeft) {
00097         return _xyPosition
00098             - _drift[WireHitLeft] *  myHepZHat.cross(_xyPosition.unit());
00099     }
00100 
00101     //...Right case...
00102     else {
00103         return _xyPosition
00104             + _drift[WireHitRight] * myHepZHat.cross(_xyPosition.unit());
00105     }
00106 }

struct MdcRec_wirhit* TMDCWireHit::reccdc void   )  const
 

returns a pointer to RECMDC_WIRHIT.

struct MdcRec_wirhit * TMDCWireHit::reccdc void   )  const [inline]
 

returns a pointer to RECMDC_WIRHIT.

00224                               {
00225     return _r;
00226 }

unsigned TMDCWireHit::sequence unsigned   )  const
 

sets sequential length in one segment : this parameter is used in TCurlFinder now.

unsigned TMDCWireHit::sequence void   )  const
 

returns sequential Length in one segment : this parameter is used in TCurlFinder now.

unsigned TMDCWireHit::sequence unsigned   )  const [inline]
 

sets sequential length in one segment : this parameter is used in TCurlFinder now.

00316                                       {
00317     return _sequentialLength = a;
00318 }

unsigned TMDCWireHit::sequence void   )  const [inline]
 

returns sequential Length in one segment : this parameter is used in TCurlFinder now.

00310                                 {
00311     return _sequentialLength;
00312 }

unsigned TMDCWireHit::state unsigned  newState  )  const
 

sets state. Meaning of bits are written below. (tmp)

unsigned TMDCWireHit::state unsigned  newState  ) 
 

sets state. Meaning of bits are written below.

unsigned TMDCWireHit::state void   )  const
 

returns state.

unsigned TMDCWireHit::state unsigned  newState  )  const [inline]
 

sets state. Meaning of bits are written below. (tmp)

00274                                    {
00275     return _state = i;
00276 }

unsigned TMDCWireHit::state unsigned  newState  )  [inline]
 

sets state. Meaning of bits are written below.

00268                              {
00269     return _state = i;
00270 }

unsigned TMDCWireHit::state void   )  const [inline]
 

returns state.

00230                              {
00231     return _state;
00232 }

const TTrack* const TMDCWireHit::track const TTrack  )  const
 

assigns a pointer to a TTrack. (tmp)

const TTrack* const TMDCWireHit::track const TTrack  ) 
 

assigns a pointer to a TTrack.

const TTrack* const TMDCWireHit::track void   )  const
 

assigns a pointer to a TTrack.

const TTrack *const TMDCWireHit::track const TTrack  )  const [inline]
 

assigns a pointer to a TTrack. (tmp)

00292                                          {
00293     return _track = a;
00294 }

const TTrack *const TMDCWireHit::track const TTrack  )  [inline]
 

assigns a pointer to a TTrack.

00286                                    {
00287     return _track = a;
00288 }

const TTrack *const TMDCWireHit::track void   )  const [inline]
 

assigns a pointer to a TTrack.

00280                              {
00281     return _track;
00282 }

const TMDCWire* const TMDCWireHit::wire void   )  const
 

returns a pointer to a TMDCWire.

const TMDCWire *const TMDCWireHit::wire void   )  const [inline]
 

returns a pointer to a TMDCWire.

00218                             {
00219     return _wire;
00220 }

const HepPoint3D& TMDCWireHit::xyPosition void   )  const
 

returns position in the middle of wire. z is always zero, however.

const HepPoint3D & TMDCWireHit::xyPosition void   )  const [inline]
 

returns position in the middle of wire. z is always zero, however.

00262                                   {
00263     return _xyPosition;
00264 }


Member Data Documentation

float TMDCWireHit::_drift [private]
 

float TMDCWireHit::_driftError [private]
 

const TMDCWireHitMC* TMDCWireHit::_mc [private]
 

const TMDCWireHitMC* TMDCWireHit::_mc [private]
 

MdcRec_wirhit* const TMDCWireHit::_r [private]
 

MdcRec_wirhit* const TMDCWireHit::_r [private]
 

unsigned TMDCWireHit::_sequentialLength [mutable, private]
 

unsigned TMDCWireHit::_state [mutable, private]
 

const TTrack* TMDCWireHit::_track [mutable, private]
 

const TTrack* TMDCWireHit::_track [mutable, private]
 

const TMDCWire* TMDCWireHit::_wire [private]
 

const TMDCWire* TMDCWireHit::_wire [private]
 

const HepPoint3D& TMDCWireHit::_xyPosition [private]
 

const HepPoint3D& TMDCWireHit::_xyPosition [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:55:07 2011 for BOSS6.5.5 by  doxygen 1.3.9.1