Belle II Software  release-08-01-10
TRGCDCWireHit Class Reference

A class to represent a wire hit in CDC. More...

#include <WireHit.h>

Inheritance diagram for TRGCDCWireHit:
Collaboration diagram for TRGCDCWireHit:

Public Member Functions

 TRGCDCWireHit (const TRGCDCWire &, unsigned indexCDCHit=0, unsigned indexCDCSimHit=0, unsigned indexMCParticle=0, float driftLeft=0, float driftLeftError=0, float driftRight=0, float driftRightError=0, int mcLRflag=1, float fudgeFacgtor=1)
 Constructor.
 
virtual ~TRGCDCWireHit ()
 Destructor.
 
const TRGCDCWirewire (void) const
 returns a pointer to a TRGCDCWire.
 
const TRGCDCWireHitMCmc (void) const
 This will be removed.
 
const TRGCDCWireHitMCmc (TRGCDCWireHitMC *)
 This will be removed.
 
unsigned iCDCSimHit (void) const
 return index of CDCSimHit
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
int mcLR (void) const
 returns mc left/right information
 
virtual const TRGCDCCellcell (void) const
 returns a pointer to a TRGCDCWire.
 
unsigned state (void) const
 returns state.
 
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)
 
float drift (unsigned) const
 returns drift distance.
 
float drift (void) const
 returns drift distance.
 
float dDrift (unsigned) const
 returns drift distance error.
 
float dDrift (void) const
 returns drift distance error.
 
const HepGeom::Point3D< double > & xyPosition (void) const
 returns position in the middle of wire. z is always zero, however.
 
HepGeom::Point3D< double > position (unsigned) const
 returns left position. z is always zero.
 
const void * track (void) const
 assigns a pointer to a TTrack.
 
const void * track (const void *)
 assigns a pointer to a TTrack.
 
const void * track (const void *) const
 assigns a pointer to a TTrack. (tmp)
 
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 iCDCHit (void) const
 returns an index to CDCHit.
 
unsigned iMCParticle (void) const
 returns an index to MCParticle.
 
const CDCHithit (void) const
 Access to CDCHit.
 
const CDCSimHitsimHit (void) const
 Access to CDCSimHit.
 
const MCParticlemcParticle (void) const
 Access to MCParticle.
 
void setDriftTime (double driftTime, unsigned i)
 Sets drift time.
 

Static Public Member Functions

static void removeAll (void)
 destructs all TRGCDCCellHit objects. (Called by TRGCDC)
 
static void * operator new (size_t)
 new operator.
 
static void operator delete (void *)
 delete operator.
 
static int sortByWireId (const TRGCDCWireHit **a, const TRGCDCWireHit **b)
 Sort function. This will be removed.
 
static int sortById (const TRGCDCCellHit **a, const TRGCDCCellHit **b)
 Sort function.
 

Private Attributes

const TRGCDCWireHitMC_mc
 This will be removed.
 
unsigned _iCDCSimHit
 index of CDCSimHit
 
int _mcLR
 mc left/right information
 
unsigned _state
 state, defined above
 
float _drift [2]
 drift distance
 
float _driftError [2]
 drift distance error
 
const TRGCDCCell_cell
 a pointer to a TRGCDCWire
 
const HepGeom::Point3D< double > & _xyPosition
 position in the middle of wire. z is always zero, however.
 
const void * _track
 a pointer to a TTrack
 
unsigned _sequentialLength
 sequential Length in one segment
 
unsigned _iCDCHit
 Index to CDCHit array.
 
unsigned _iMCParticle
 Index to MCParticle array.
 

Static Private Attributes

static std::vector< TRGCDCWireHit * > _all
 Keeps all TRGCDCWireHit created by new().
 

Detailed Description

A class to represent a wire hit in CDC.

Definition at line 33 of file WireHit.h.


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