QwAnalysis
nodenode.cc
Go to the documentation of this file.
1 /*------------------------------------------------------------------------*//*!
2 
3  \file nodenode.cc
4  \ingroup QwTracking
5 
6  \author Wolfgang Wander <wwc@hermes.desy.de>
7  \author Burnham Stokes <bestokes@jlab.org>
8  \author Wouter Deconinck <wdconinc@mit.edu>
9 
10  \date 2009-09-04 18:06:23
11 
12  \brief Definition of nodenode which links treenodes to their siblings
13 
14 *//*-------------------------------------------------------------------------*/
15 
16 #include "nodenode.h"
17 
18 // Qweak headers
19 #include "QwLog.h"
20 
21 namespace QwTracking {
22 
23 int nodenode::fDebug = 0;
24 
25 
26 /**
27  * Constructor with next and tree pointers
28  * @param next Pointer to the next node in the linked list
29  * @param tree Pointer to the next tree for this node
30  */
32 {
33  // Initialize pointers
34  fNext = next;
35  fTree = tree;
36 }
37 
38 
39 /**
40  * Destructor
41  */
43 {
44  // Delete the pointer to the next node
45  if (fNext) delete fNext;
46 }
47 
48 } // namespace QwTracking
nodenode(nodenode *next=0, treenode *tree=0)
Constructor with next and tree pointers.
Definition: nodenode.cc:31
Definition of nodenode which links treenodes to their siblings.
A logfile class, based on an identical class in the Hermes analyzer.
treenode * fTree
Pointer to the next tree.
Definition: nodenode.h:56
nodenode * fNext
Pointer to the next node.
Definition: nodenode.h:54
nodenode * next() const
Get the next node (non-standard notation)
Definition: nodenode.h:78
A nodenode is used as a pointer which links treenodes to their siblings.
Definition: nodenode.h:42
A treenode contains the bits that make up a tree pattern.
Definition: treenode.h:63
~nodenode()
Destructor.
Definition: nodenode.cc:42
static int fDebug
Definition: nodenode.h:78