#include <TMDCWireHit.h>
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_wirhit * | reccdc (void) const |
returns a pointer to RECMDC_WIRHIT. | |
MdcRec_wirhit * | reccdc (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 HepPoint3D & | xyPosition (void) const |
returns position in the middle of wire. z is always zero, however. | |
const HepPoint3D & | xyPosition (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.
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 }
|
|
Destructor.
00060 { 00061 }
|
|
Constructor.
|
|
Destructor.
|
|
returns drift distance error.
|
|
returns drift distance error.
|
|
returns drift distance error.
00256 { 00257 return (_driftError[0] + _driftError[1]) / 2.; 00258 }
|
|
returns drift distance error.
00243 { 00244 if (i) return _driftError[1]; 00245 return _driftError[0]; 00246 }
|
|
returns drift distance.
|
|
returns drift distance.
|
|
returns drift distance.
|
|
returns drift distance.
|
|
dumps debug information.
|
|
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 }
|
|
sets a pointer to TMDCWireHitMC.
|
|
returns a pointer to TMDCWireHitMC.
|
|
sets a pointer to TMDCWireHitMC.
00304 { 00305 return _mc = a; 00306 }
|
|
returns a pointer to TMDCWireHitMC.
00298 {
00299 return _mc;
00300 }
|
|
returns left position. z is always zero.
|
|
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 }
|
|
returns a pointer to RECMDC_WIRHIT.
|
|
returns a pointer to RECMDC_WIRHIT.
00224 {
00225 return _r;
00226 }
|
|
sets sequential length in one segment : this parameter is used in TCurlFinder now.
|
|
returns sequential Length in one segment : this parameter is used in TCurlFinder now.
|
|
sets sequential length in one segment : this parameter is used in TCurlFinder now.
00316 { 00317 return _sequentialLength = a; 00318 }
|
|
returns sequential Length in one segment : this parameter is used in TCurlFinder now.
00310 {
00311 return _sequentialLength;
00312 }
|
|
sets state. Meaning of bits are written below. (tmp)
|
|
sets state. Meaning of bits are written below.
|
|
returns state.
|
|
sets state. Meaning of bits are written below. (tmp)
00274 { 00275 return _state = i; 00276 }
|
|
sets state. Meaning of bits are written below.
00268 { 00269 return _state = i; 00270 }
|
|
returns state.
00230 {
00231 return _state;
00232 }
|
|
assigns a pointer to a TTrack. (tmp)
|
|
assigns a pointer to a TTrack.
|
|
assigns a pointer to a TTrack.
|
|
assigns a pointer to a TTrack. (tmp)
00292 { 00293 return _track = a; 00294 }
|
|
assigns a pointer to a TTrack.
00286 { 00287 return _track = a; 00288 }
|
|
assigns a pointer to a TTrack.
00280 {
00281 return _track;
00282 }
|
|
returns a pointer to a TMDCWire.
|
|
returns a pointer to a TMDCWire.
00218 {
00219 return _wire;
00220 }
|
|
returns position in the middle of wire. z is always zero, however.
|
|
returns position in the middle of wire. z is always zero, however.
00262 {
00263 return _xyPosition;
00264 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|