QwAnalysis
QwHitPattern.cc File Reference

Implementation of the hit patterns used in the tracking tree search. More...

#include "QwHitPattern.h"
#include "QwHit.h"
#include "QwHitContainer.h"
+ Include dependency graph for QwHitPattern.cc:

Go to the source code of this file.

Functions

static int hashgen ()
 
std::ostream & operator<< (std::ostream &stream, const QwHitPattern &hitpattern)
 

Variables

static unsigned int static_hashgen = 1
 

Detailed Description

Implementation of the hit patterns used in the tracking tree search.

Author
Wouter Deconinck
Date
2009-12-11

Definition in file QwHitPattern.cc.

Function Documentation

static int hashgen ( void  )
static

Create a hash key

Returns
A new hash key

Definition at line 24 of file QwHitPattern.cc.

References static_hashgen.

Referenced by QwHitPattern::_SetPoints().

25 {
26  static_hashgen += 2;
27  static_hashgen &= 0x7ffffff;
28  return static_hashgen;
29 }
static unsigned int static_hashgen
Definition: QwHitPattern.cc:18

+ Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  stream,
const QwHitPattern hitpattern 
)

Stream the hit pattern to an std::ostream.

Definition at line 291 of file QwHitPattern.cc.

References QwHitPattern::fBins, and QwHitPattern::fPattern.

292 {
293  for (unsigned int bin = 0; bin < hitpattern.fBins - 1; bin++) {
294  if (hitpattern.fPattern[bin] == 1)
295  stream << "|";
296  else
297  stream << ".";
298  }
299  return stream;
300 }
unsigned char * fPattern
Definition: QwHitPattern.h:149
unsigned int fBins
Number of bins.
Definition: QwHitPattern.h:146

Variable Documentation

unsigned int static_hashgen = 1
static

Definition at line 18 of file QwHitPattern.cc.

Referenced by hashgen().