Belle II Software development
TRGCDCCellHit Class Reference

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

#include <CellHit.h>

Inheritance diagram for TRGCDCCellHit:
TRGCDCSegmentHit TRGCDCWireHit

Public Member Functions

 TRGCDCCellHit (const TRGCDCCell &, unsigned indexCDCHit=0, unsigned indexCDCSimHit=0, unsigned indexMCParticle=0, float driftLeft=0, float driftLeftError=0, float driftRight=0, float driftRightError=0, int mcLRflag=0, float fudgeFacgtor=1)
 Constructor.
 
virtual ~TRGCDCCellHit ()
 Destructor.
 
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.
 
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 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.
 
unsigned sequence (void) const
 returns sequential Length in one segment : this parameter is used in TCurlFinder now.
 
unsigned iCDCHit (void) const
 returns an index to CDCHit.
 
unsigned iCDCSimHit (void) const
 returns an index to CDCSimHit.
 
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.
 
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 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 (unsigned) const
 sets sequential length in one segment : this parameter is used in TCurlFinder now.
 
void setDriftTime (double driftTime, unsigned i)
 Sets drift time.
 

Static Public Member Functions

static int sortById (const TRGCDCCellHit **a, const TRGCDCCellHit **b)
 Sort function.
 

Private Attributes

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 _iCDCSimHit
 Index to CDCSimHit array.
 
unsigned _iMCParticle
 Index to MCParticle array.
 

Detailed Description

A class to represent a wire hit in CDC.

Definition at line 74 of file CellHit.h.

Member Data Documentation

◆ _cell

const TRGCDCCell& _cell
private

a pointer to a TRGCDCWire

Definition at line 187 of file CellHit.h.

◆ _drift

float _drift[2]
private

drift distance

Definition at line 183 of file CellHit.h.

◆ _driftError

float _driftError[2]
private

drift distance error

Definition at line 185 of file CellHit.h.

◆ _iCDCHit

unsigned _iCDCHit
private

Index to CDCHit array.

Definition at line 196 of file CellHit.h.

◆ _iCDCSimHit

unsigned _iCDCSimHit
private

Index to CDCSimHit array.

Definition at line 199 of file CellHit.h.

◆ _iMCParticle

unsigned _iMCParticle
private

Index to MCParticle array.

Definition at line 202 of file CellHit.h.

◆ _mcLR

int _mcLR
private

mc left/right information

Definition at line 178 of file CellHit.h.

◆ _sequentialLength

unsigned _sequentialLength
mutableprivate

sequential Length in one segment

Definition at line 193 of file CellHit.h.

◆ _state

unsigned _state
mutableprivate

state, defined above

Definition at line 181 of file CellHit.h.

◆ _track

const void* _track
mutableprivate

a pointer to a TTrack

Definition at line 191 of file CellHit.h.

◆ _xyPosition

const HepGeom::Point3D<double>& _xyPosition
private

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: