22 namespace QwTracking {
35 for (
unsigned int i = 0; i <
fSize; i++)
fBit[i] = 0;
39 for (
int i = 0; i < 4; i++)
fSon[i] = 0;
53 for (
unsigned int i = 0; i <
fSize; i++)
fBit[i] = node.
fBit[i];
60 for (
int i = 0; i < 4; i++)
fSon[i] = 0;
74 for (
unsigned int i = 0; i <
fSize; i++)
fBit[i] = node->
fBit[i];
81 for (
int i = 0; i < 4; i++)
fSon[i] = 0;
90 for (
int i = 0; i < 4; i++)
107 std::string indentation;
108 for (
int i = 0; i < indent; i++) indentation +=
" ";
118 for (
int i = 0; recursive && i < 4; i++) {
123 tree->
Print(recursive,indent+1);
138 for (
unsigned int i = 0; i < tn.
fSize; i++)
139 stream << tn.
fBit[i] <<
",";
140 stream <<
" width = " << tn.
fWidth <<
",";
141 stream <<
" ref = " << tn.
fRef;
#define QwOut
Predefined log drain for explicit output.
treenode * GetTree() const
Get the tree.
static int fDebug
Debug level.
void Print(bool recursive=false, int indent=0)
Print some debugging information.
int fMinLevel
Minimum level at which this node is valid.
Definition of nodenode which links treenodes to their siblings.
int fWidth
Width in bins of the hit pattern.
int fRef
Reference of this node when writing to file.
A logfile class, based on an identical class in the Hermes analyzer.
nodenode * fSon[4]
Each tree has four son nodes.
treenode * fNext
Link to the next tree node.
Definition of a treenode which contains the bits that make up a tree pattern.
int * fBit
Hit pattern, one bin specified per detector layer.
static std::ostream & endl(std::ostream &)
End of the line.
treenode(unsigned int size)
Default constructor.
int fMaxLevel
Maximum level at which this node is valid.
#define QwWarning
Predefined log drain for warnings.
unsigned int size() const
Get size of the bit array.
A nodenode is used as a pointer which links treenodes to their siblings.
A treenode contains the bits that make up a tree pattern.
std::ostream & operator<<(std::ostream &stream, const shortnode &sn)