13#define TMDCWireHit_INLINE_DEFINE_HERE
46 _xyPosition(w->xyPosition()),
54 _driftError[0] = r->
erddl * fudgeFactor;
55 _driftError[1] = r->
erddr * fudgeFactor;
66 std::cout << _wire->
name();
67 if (msg.find(
"state") != std::string::npos || msg.find(
"detail") != std::string::npos) {
68 std::cout <<
",state ";
70 if (
track()) std::cout <<
",trk ";
72 if (msg.find(
"drift") != std::string::npos || msg.find(
"detail") != std::string::npos) {
75 std::cout<<
" layer "<<_wire->
layerId()<<
" cell "<<_wire->
localId();
76 std::cout <<
",dl " << _drift[0] <<
"+-" << _driftError[0];
77 std::cout <<
",dr " << _drift[1] <<
"+-" << _driftError[1];
79 if (msg.find(
"mc") != std::string::npos || msg.find(
"detail") != std::string::npos) {
82 if (
mc()->hep()) std::cout <<
mc()->
hep()->
id();
83 else std::cout <<
"0";
89 std::cout << std::endl;
98 - _drift[
WireHitLeft] * myHepZHat.cross(_xyPosition.unit());
104 + _drift[
WireHitRight] * myHepZHat.cross(_xyPosition.unit());
void bitDisplay(unsigned val)
const TTrackHEP *const hep(void) const
returns a pointer to a GEN_HEPEVT.
HepPoint3D position(unsigned) const
returns left position. z is always zero.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual ~TMDCWireHit()
Destructor.
const TTrack *const track(void) const
assigns a pointer to a TTrack.
const TMDCWireHitMC *const mc(void) const
returns a pointer to TMDCWireHitMC.
TMDCWireHit(TMDCWire *, MdcRec_wirhit *, float fudgeFactor)
Constructor.
A class to represent a wire in MDC.
bool axial(void) const
returns true if this wire is in an axial layer.
const TMDCWireHit *const hit(void) const
returns a pointer to a TMDCWireHit.
unsigned localId(void) const
returns local id in a wire layer.
unsigned layerId(void) const
returns layer id.
std::string name(void) const
returns name.
unsigned id(void) const
returns an id started from 0.