BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TMDCWireHit Class Reference

#include <TMDCWireHit.h>

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ TMDCWireHit() [1/3]

TMDCWireHit::TMDCWireHit ( TMDCWire * w,
MdcRec_wirhit * r,
float fudgeFactor )

Constructor.

Definition at line 44 of file TMDCWireHit.cxx.

45 : _wire( w )
46 , _xyPosition( w->xyPosition() )
47 , _r( r )
48 , _state( r->stat )
49 , _track( 0 )
50 , _mc( 0 ) {
51 w->hit( this );
52 _drift[0] = r->ddl;
53 _drift[1] = r->ddr;
54 _driftError[0] = r->erddl * fudgeFactor;
55 _driftError[1] = r->erddr * fudgeFactor;
56 if ( w->axial() ) _state |= WireHitAxial;
57 else _state |= WireHitStereo;
58}
double w

◆ ~TMDCWireHit() [1/3]

TMDCWireHit::~TMDCWireHit ( )
virtual

Destructor.

Definition at line 60 of file TMDCWireHit.cxx.

60{}

◆ TMDCWireHit() [2/3]

TMDCWireHit::TMDCWireHit ( TMDCWire * ,
MdcRec_wirhit * ,
float fudgeFactor )

Constructor.

◆ ~TMDCWireHit() [2/3]

virtual TMDCWireHit::~TMDCWireHit ( )
virtual

Destructor.

◆ TMDCWireHit() [3/3]

TMDCWireHit::TMDCWireHit ( TMDCWire * ,
MdcRec_wirhit * ,
float fudgeFactor )

Constructor.

◆ ~TMDCWireHit() [3/3]

virtual TMDCWireHit::~TMDCWireHit ( )
virtual

Destructor.

Member Function Documentation

◆ dDrift() [1/6]

float TMDCWireHit::dDrift ( unsigned i) const
inline

◆ dDrift() [2/6]

float TMDCWireHit::dDrift ( unsigned ) const

returns drift distance error.

◆ dDrift() [3/6]

float TMDCWireHit::dDrift ( unsigned ) const

returns drift distance error.

◆ dDrift() [4/6]

float TMDCWireHit::dDrift ( void ) const
inline

returns drift distance error.

Definition at line 230 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

230 {
231 return ( _driftError[0] + _driftError[1] ) / 2.;
232}

◆ dDrift() [5/6]

float TMDCWireHit::dDrift ( void ) const

returns drift distance error.

◆ dDrift() [6/6]

float TMDCWireHit::dDrift ( void ) const

returns drift distance error.

◆ drift() [1/6]

◆ drift() [2/6]

float TMDCWireHit::drift ( unsigned ) const

returns drift distance.

◆ drift() [3/6]

float TMDCWireHit::drift ( unsigned ) const

returns drift distance.

◆ drift() [4/6]

float TMDCWireHit::drift ( void ) const
inline

returns drift distance.

Definition at line 228 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

228{ return ( _drift[0] + _drift[1] ) / 2.; }

◆ drift() [5/6]

float TMDCWireHit::drift ( void ) const

returns drift distance.

◆ drift() [6/6]

float TMDCWireHit::drift ( void ) const

returns drift distance.

◆ dump() [1/3]

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

dumps debug information.

Definition at line 62 of file TMDCWireHit.cxx.

62 {
63 std::cout << pre;
64 std::cout << _wire->name();
65 if ( msg.find( "state" ) != std::string::npos || msg.find( "detail" ) != std::string::npos )
66 {
67 std::cout << ",state ";
68 bitDisplay( _state );
69 if ( track() ) std::cout << ",trk ";
70 }
71 if ( msg.find( "drift" ) != std::string::npos || msg.find( "detail" ) != std::string::npos )
72 {
73 if ( _state & WireHitLeftMask ) std::cout << ", L";
74 if ( _state & WireHitRightMask ) std::cout << ", R";
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];
78 }
79 if ( msg.find( "mc" ) != std::string::npos || msg.find( "detail" ) != std::string::npos )
80 {
81 std::cout << ",hep ";
82 if ( mc() )
83 {
84 if ( mc()->hep() ) std::cout << mc()->hep()->id();
85 else std::cout << "0";
86 }
87 else { std::cout << "0"; }
88 }
89 std::cout << std::endl;
90}
void bitDisplay(unsigned)
Definition TMDCUtil.cxx:82
const TTrackHEP *const hep(void) const
returns a pointer to a GEN_HEPEVT.
const TTrack *const track(void) const
assigns a pointer to a TTrack.
const TMDCWireHitMC *const mc(void) const
returns a pointer to TMDCWireHitMC.
unsigned id(void) const
returns an id started from 0.

Referenced by T3DLineFitter::fit(), TCosmicFitter::fit(), TTrack::fit2D(), and TSegment::solveDualHits().

◆ dump() [2/3]

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

dumps debug information.

◆ dump() [3/3]

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

dumps debug information.

◆ mc() [1/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( TMDCWireHitMC * a)
inline

sets a pointer to TMDCWireHitMC.

Definition at line 248 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

248{ return _mc = a; }

◆ mc() [2/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( TMDCWireHitMC * )

sets a pointer to TMDCWireHitMC.

◆ mc() [3/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( TMDCWireHitMC * )

sets a pointer to TMDCWireHitMC.

◆ mc() [4/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( void ) const
inline

◆ mc() [5/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( void ) const

returns a pointer to TMDCWireHitMC.

◆ mc() [6/6]

const TMDCWireHitMC *const TMDCWireHit::mc ( void ) const

returns a pointer to TMDCWireHitMC.

◆ position() [1/3]

HepPoint3D TMDCWireHit::position ( unsigned lr) const

returns left position. z is always zero.

Definition at line 92 of file TMDCWireHit.cxx.

92 {
93 const HepPoint3D myHepZHat( 0.0, 0.0, 1.0 );
94 //...Left...
95 if ( lr == WireHitLeft )
96 { return _xyPosition - _drift[WireHitLeft] * myHepZHat.cross( _xyPosition.unit() ); }
97
98 //...Right case...
99 else { return _xyPosition + _drift[WireHitRight] * myHepZHat.cross( _xyPosition.unit() ); }
100}
HepGeom::Point3D< double > HepPoint3D

Referenced by TCircleFitter::fit().

◆ position() [2/3]

HepPoint3D TMDCWireHit::position ( unsigned ) const

returns left position. z is always zero.

◆ position() [3/3]

HepPoint3D TMDCWireHit::position ( unsigned ) const

returns left position. z is always zero.

◆ reccdc() [1/3]

struct MdcRec_wirhit * TMDCWireHit::reccdc ( void ) const
inline

returns a pointer to RECMDC_WIRHIT.

Definition at line 214 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

214{ return _r; }

Referenced by TMDC::driftDistance(), TRungeFitter::fit(), TTrackManager::makeTds(), and TTrackManager::saveMCTables().

◆ reccdc() [2/3]

struct MdcRec_wirhit * TMDCWireHit::reccdc ( void ) const

returns a pointer to RECMDC_WIRHIT.

◆ reccdc() [3/3]

struct MdcRec_wirhit * TMDCWireHit::reccdc ( void ) const

returns a pointer to RECMDC_WIRHIT.

◆ sequence() [1/6]

unsigned TMDCWireHit::sequence ( unsigned a) const
inline

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

Definition at line 252 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

252{ return _sequentialLength = a; }

◆ sequence() [2/6]

unsigned TMDCWireHit::sequence ( unsigned ) const

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

◆ sequence() [3/6]

unsigned TMDCWireHit::sequence ( unsigned ) const

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

◆ sequence() [4/6]

unsigned TMDCWireHit::sequence ( void ) const
inline

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

Definition at line 250 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

250{ return _sequentialLength; }

◆ sequence() [5/6]

unsigned TMDCWireHit::sequence ( void ) const

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

◆ sequence() [6/6]

unsigned TMDCWireHit::sequence ( void ) const

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

◆ state() [1/9]

unsigned TMDCWireHit::state ( unsigned newState)
inline

sets state. Meaning of bits are written below.

Definition at line 236 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

236{ return _state = i; }

◆ state() [2/9]

unsigned TMDCWireHit::state ( unsigned newState)

sets state. Meaning of bits are written below.

◆ state() [3/9]

unsigned TMDCWireHit::state ( unsigned newState)

sets state. Meaning of bits are written below.

◆ state() [4/9]

unsigned TMDCWireHit::state ( unsigned newState) const
inline

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

Definition at line 238 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

238{ return _state = i; }

◆ state() [5/9]

unsigned TMDCWireHit::state ( unsigned newState) const

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

◆ state() [6/9]

unsigned TMDCWireHit::state ( unsigned newState) const

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

◆ state() [7/9]

◆ state() [8/9]

unsigned TMDCWireHit::state ( void ) const

returns state.

◆ state() [9/9]

unsigned TMDCWireHit::state ( void ) const

returns state.

◆ track() [1/9]

const TTrack *const TMDCWireHit::track ( const TTrack * a)
inline

assigns a pointer to a TTrack.

Definition at line 242 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

242{ return _track = a; }

◆ track() [2/9]

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

assigns a pointer to a TTrack.

◆ track() [3/9]

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

assigns a pointer to a TTrack.

◆ track() [4/9]

const TTrack *const TMDCWireHit::track ( const TTrack * a) const
inline

assigns a pointer to a TTrack. (tmp)

Definition at line 244 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

244{ return _track = a; }

◆ track() [5/9]

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

assigns a pointer to a TTrack. (tmp)

◆ track() [6/9]

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

assigns a pointer to a TTrack. (tmp)

◆ track() [7/9]

const TTrack *const TMDCWireHit::track ( void ) const
inline

assigns a pointer to a TTrack.

Definition at line 240 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCWireHit.h.

240{ return _track; }

Referenced by TTrack::assign(), and dump().

◆ track() [8/9]

const TTrack *const TMDCWireHit::track ( void ) const

assigns a pointer to a TTrack.

◆ track() [9/9]

const TTrack *const TMDCWireHit::track ( void ) const

assigns a pointer to a TTrack.

◆ wire() [1/3]

◆ wire() [2/3]

const TMDCWire *const TMDCWireHit::wire ( void ) const

returns a pointer to a TMDCWire.

◆ wire() [3/3]

const TMDCWire *const TMDCWireHit::wire ( void ) const

returns a pointer to a TMDCWire.

◆ xyPosition() [1/3]

const HepPoint3D & TMDCWireHit::xyPosition ( void ) const
inline

◆ xyPosition() [2/3]

const HepPoint3D & TMDCWireHit::xyPosition ( void ) const

returns drift time

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

◆ xyPosition() [3/3]

const HepPoint3D & TMDCWireHit::xyPosition ( void ) const

returns drift time

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


The documentation for this class was generated from the following files: