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