 |
Belle II Software
release-05-02-19
|
14 #ifndef TRGCDCCellHit_FLAG_
15 #define TRGCDCCellHit_FLAG_
18 #include "CLHEP/Geometry/Point3D.h"
20 #ifdef TRGCDC_SHORT_NAMES
21 #define TCCHit TRGCDCCellHit
25 #define CellHitRight 1
29 #define CellHitTimeValid 1048576
30 #define CellHitChargeValid 2097152
31 #define CellHitFindingValid 4194304
32 #define CellHitFittingValid 0x40000000
33 #define CellHitAxial 8
34 #define CellHitStereo 48
36 #define CellHitPatternLeft 256
37 #define CellHitPatternRight 512
38 #define CellHitIsolated 1024
39 #define CellHitContinuous 2048
40 #define CellHitNeighborHit 12
41 #define CellHitNeighborPatternMask 0x7f000
42 #define CellHitNeighborHit0 4096
43 #define CellHitNeighborHit1 8192
44 #define CellHitNeighborHit2 16384
45 #define CellHitNeighborHit3 32768
46 #define CellHitNeighborHit4 65536
47 #define CellHitNeighborHit5 131072
48 #define CellHitNeighborHit6 262144
50 #define CellHitLocked 128
51 #define CellHitUsed 64
52 #define CellHitLeftMask 1
53 #define CellHitRightMask 2
54 #define CellHitMultiTrack 8388608
55 #define CellHitConformalFinder 16777216
56 #define CellHitCurlFinder 33554432
57 #define CellHitClustFinder 67108864
58 #define CellHitHoughFinder 67108864
59 #define CellHitTrackManager 134217728
60 #define CellHitInvalidForFit 268435456
61 #define CellHitFastFinder 536870912
81 unsigned indexCDCHit = 0,
82 unsigned indexCDCSimHit = 0,
83 unsigned indexMCParticle = 0,
85 float driftLeftError = 0,
87 float driftRightError = 0,
89 float fudgeFacgtor = 1);
97 virtual void dump(
const std::string& message = std::string(
""),
98 const std::string& prefix = std::string(
""))
const;
101 int mcLR(
void)
const;
107 unsigned state(
void)
const;
110 float drift(
unsigned)
const;
113 float dDrift(
unsigned)
const;
116 float drift(
void)
const;
128 const void*
track(
void)
const;
154 unsigned state(
unsigned newState);
157 unsigned state(
unsigned newState)
const;
160 const void*
track(
const void*);
163 const void*
track(
const void*)
const;
355 if (i)
_drift[1] = driftTime;
356 else _drift[0] = driftTime;
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
const CDCHit * hit(void) const
Access to CDCHit.
unsigned iMCParticle(void) const
returns an index to MCParticle.
unsigned state(void) const
returns state.
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
unsigned _iCDCSimHit
Index to CDCSimHit array.
const void * _track
a pointer to a TTrack
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.
const HepGeom::Point3D< double > & _xyPosition
position in the middle of wire. z is always zero, however.
float _drift[2]
drift distance
int _mcLR
mc left/right information
unsigned _state
state, defined above
const CDCSimHit * simHit(void) const
Access to CDCSimHit.
const TRGCDCCell & _cell
a pointer to a TRGCDCWire
virtual ~TRGCDCCellHit()
Destructor.
A class to represent a wire in CDC.
A class to represent a wire hit in CDC.
static int sortById(const TRGCDCCellHit **a, const TRGCDCCellHit **b)
Sort function.
HepGeom::Point3D< double > position(unsigned) const
returns left position. z is always zero.
unsigned iCDCHit(void) const
returns an index to CDCHit.
float _driftError[2]
drift distance error
Abstract base class for different kinds of events.
unsigned _iCDCHit
Index to CDCHit array.
unsigned _iMCParticle
Index to MCParticle array.
const HepGeom::Point3D< double > & xyPosition(void) const
returns position in the middle of wire. z is always zero, however.
virtual const TRGCDCCell & cell(void) const
returns a pointer to a TRGCDCWire.
A Class to store the Monte Carlo particle information.
float drift(void) const
returns drift distance.
const void * track(void) const
assigns a pointer to a TTrack.
void setDriftTime(double driftTime, unsigned i)
Sets drift time.
const MCParticle * mcParticle(void) const
Access to MCParticle.
int mcLR(void) const
returns mc left/right information
unsigned _sequentialLength
sequential Length in one segment
unsigned sequence(void) const
returns sequential Length in one segment : this parameter is used in TCurlFinder now.
unsigned iCDCSimHit(void) const
returns an index to CDCSimHit.
float dDrift(void) const
returns drift distance error.