10 #define QWHITPATTERN_H
66 for (
unsigned int bin = 0; bin <
fBins; bin++)
69 for (
unsigned int hash = 0; hash <
fBinWidth; hash++)
98 for (
unsigned int bin = 0; bin <
fBins; bin++)
100 for (
unsigned int hash = 0; hash <
fBinWidth; hash++)
121 for (
unsigned int bin = 0; bin <
fBins; bin++)
126 for (
unsigned int hash = 0; hash <
fBinWidth; hash++)
138 void _SetPoint (
double position,
double resolution,
double detectorwidth);
141 void _SetPoints (
double pos_start,
double pos_end,
double detectorwidth);
158 #endif // QWHITPATTERN_H
QwHitPattern & operator+=(const QwHitPattern &rhs)
Addition-assignment operator.
bool HasHits() const
Has this pattern any hit?
unsigned int fLevels
Depth of the tree search.
unsigned int fBinWidth
Width of each bin.
Hit patterns used in the tracking tree search.
Memory management structure to count objects.
unsigned int GetNumberOfLevels() const
Get the hit pattern depth.
void SetHDCHitList(double detectorwidth, QwHitContainer *hitlist)
Set the hit pattern bins for the specified HDC-type hit list.
friend std::ostream & operator<<(std::ostream &stream, const QwHitPattern &hitpattern)
///< Hash of the hit pattern
void _SetPoint(double position, double resolution, double detectorwidth)
Recursive tree pattern method on a point with resolution.
void SetVDCHitList(double detectorwidth, QwHitContainer *hitlist)
Set the hit pattern bins for the specified VDC-type hit list.
unsigned int GetFinestBinWidth() const
Get the finest bin width.
QwHitPattern(const unsigned int levels)
Constructor with hit pattern depth.
Memory management class to count object instantiations.
QwHitPattern & operator=(const QwHitPattern &rhs)
Assignment operator.
void SetNumberOfLevels(const unsigned int levels)
Set the hit pattern depth.
void GetPatternHash(int *patternhash) const
Get the hit pattern hash.
ClassDef(QwHitPattern, 1)
QwHitPattern(const QwHitPattern &pattern)
Copy constructor.
Definition of virtual base class for all tracking elements.
virtual ~QwHitPattern()
Delete the hit pattern.
void SetHDCHit(double detectorwidth, QwHit *hit)
Set the hit pattern bins for the specified HDC-type hit.
void SetVDCHit(double detectorwidth, QwHit *hit)
Set the hit pattern bins for the specified VDC-type hit.
unsigned int * fPatternHash
///< Hit pattern
void _SetPoints(double pos_start, double pos_end, double detectorwidth)
Recursive tree pattern method on a range of points.
Hit structure uniquely defining each hit.
unsigned int fBins
Number of bins.
void Reset()
Reset the contents of the hit pattern.
unsigned int GetNumberOfBins() const
Get the number of bins.
void GetPattern(char *pattern) const
Get the hit pattern.
QwHitPattern()
Default constructor.
Virtual base class for all tracking elements.