Belle II Software development
TRGCDCWireHit Class Reference

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

#include <WireHit.h>

Inheritance diagram for TRGCDCWireHit:
TRGCDCCellHit

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.

Member Data Documentation

◆ _cell

const TRGCDCCell& _cell
privateinherited

a pointer to a TRGCDCWire

Definition at line 187 of file CellHit.h.

◆ _drift

float _drift[2]
privateinherited

drift distance

Definition at line 183 of file CellHit.h.

◆ _driftError

float _driftError[2]
privateinherited

drift distance error

Definition at line 185 of file CellHit.h.

◆ _iCDCHit

unsigned _iCDCHit
privateinherited

Index to CDCHit array.

Definition at line 196 of file CellHit.h.

◆ _iCDCSimHit

unsigned _iCDCSimHit
private

index of CDCSimHit

Definition at line 89 of file WireHit.h.

◆ _iMCParticle

unsigned _iMCParticle
privateinherited

Index to MCParticle array.

Definition at line 202 of file CellHit.h.

◆ _mc

const TRGCDCWireHitMC* _mc
private

This will be removed.

Definition at line 86 of file WireHit.h.

◆ _mcLR

int _mcLR
privateinherited

mc left/right information

Definition at line 178 of file CellHit.h.

◆ _sequentialLength

unsigned _sequentialLength
mutableprivateinherited

sequential Length in one segment

Definition at line 193 of file CellHit.h.

◆ _state

unsigned _state
mutableprivateinherited

state, defined above

Definition at line 181 of file CellHit.h.

◆ _track

const void* _track
mutableprivateinherited

a pointer to a TTrack

Definition at line 191 of file CellHit.h.

◆ _xyPosition

const HepGeom::Point3D<double>& _xyPosition
privateinherited

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

Definition at line 189 of file CellHit.h.


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