![]() |
AliRoot Core
v5-06-15 (45dab64)
|
Implementation of a segment tree. More...
#include <AliMUONSegmentTree.h>
Public Member Functions | |
AliMUONSegmentTree (const TArrayD &values) | |
virtual | ~AliMUONSegmentTree () |
AliMUONNode * | Build (const TArrayD &values, Int_t i, Int_t j) |
void | Print (Option_t *opt="") const |
const TObjArray & | Stack () const |
Get the stack. More... | |
void | ResetStack () |
Reset the stack. More... | |
void | Contribution (double b, double e) |
void | InsertInterval (double b, double e) |
void | DeleteInterval (double d, double e) |
Private Member Functions | |
AliMUONSegmentTree (const AliMUONSegmentTree &rhs) | |
not implemented More... | |
AliMUONSegmentTree & | operator= (const AliMUONSegmentTree &rhs) |
not implemented More... | |
Private Attributes | |
AliMUONNode * | fRoot |
root of the tree More... | |
TObjArray | fStack |
array of AliMUONSegment objects More... | |
Implementation of a segment tree.
Implementation of a segment tree, which is used to make contour merging (see AliMUONContourMaker)
Definition at line 26 of file AliMUONSegmentTree.h.
AliMUONSegmentTree::AliMUONSegmentTree | ( | const TArrayD & | values | ) |
Values should be sorted and have at least 2 elements.
Definition at line 42 of file AliMUONSegmentTree.cxx.
|
virtual |
dtor
Definition at line 58 of file AliMUONSegmentTree.cxx.
|
private |
not implemented
AliMUONNode * AliMUONSegmentTree::Build | ( | const TArrayD & | values, |
Int_t | i, | ||
Int_t | j | ||
) |
Build the segment tree from a list of values
Definition at line 66 of file AliMUONSegmentTree.cxx.
void AliMUONSegmentTree::Contribution | ( | double | b, |
double | e | ||
) |
Compute the contribution of edge (b,e)
Definition at line 87 of file AliMUONSegmentTree.cxx.
Referenced by AliMUONContourMaker::Sweep().
void AliMUONSegmentTree::DeleteInterval | ( | double | d, |
double | e | ||
) |
Delete interval (b,e)
Definition at line 103 of file AliMUONSegmentTree.cxx.
Referenced by AliMUONContourMaker::Sweep().
void AliMUONSegmentTree::InsertInterval | ( | double | b, |
double | e | ||
) |
Insert interval (b,e)
Definition at line 95 of file AliMUONSegmentTree.cxx.
Referenced by AliMUONContourMaker::Sweep().
|
private |
not implemented
void AliMUONSegmentTree::Print | ( | Option_t * | opt = "" | ) | const |
Printout
Definition at line 111 of file AliMUONSegmentTree.cxx.
|
inline |
Reset the stack.
Definition at line 40 of file AliMUONSegmentTree.h.
Referenced by AliMUONContourMaker::Sweep().
|
inline |
Get the stack.
Definition at line 37 of file AliMUONSegmentTree.h.
Referenced by AliMUONContourMaker::Sweep().
|
private |
root of the tree
Definition at line 54 of file AliMUONSegmentTree.h.
Referenced by Contribution(), DeleteInterval(), InsertInterval(), Print(), and ~AliMUONSegmentTree().
|
private |
array of AliMUONSegment objects
Definition at line 55 of file AliMUONSegmentTree.h.
Referenced by Contribution(), DeleteInterval(), InsertInterval(), ResetStack(), and Stack().