![]() |
AliRoot Core
v5-06-15 (45dab64)
|
A node of a segment tree. More...
#include <AliMUONNode.h>
Public Member Functions | |
AliMUONNode (Double_t a, Double_t b, Double_t midpoInt_t) | |
virtual | ~AliMUONNode () |
void | Print (const char *opt="") const |
void | Contribution (Double_t b, Double_t e, TObjArray &stack) |
void | InsertInterval (Double_t b, Double_t e, TObjArray &stack) |
void | DeleteInterval (Double_t b, Double_t e, TObjArray &stack) |
Bool_t | IsFullyContained (Double_t b, Double_t e) const |
void | Update () |
void | Demote () |
void | Promote () |
Int_t | C () const |
Get cardinality. More... | |
void | C (Int_t v) |
Increase cardinality. More... | |
Int_t | P () const |
Get potent state. More... | |
void | LeftNode (AliMUONNode *n) |
Set left node. More... | |
void | RightNode (AliMUONNode *n) |
Set right node. More... | |
Private Member Functions | |
AliMUONNode (const AliMUONNode &node) | |
not implemented More... | |
AliMUONNode & | operator= (const AliMUONNode &node) |
not implemented More... | |
Private Attributes | |
AliMUONNode * | fLeftNode |
left node More... | |
AliMUONNode * | fRightNode |
right node More... | |
Double_t | fMin |
Min. More... | |
Double_t | fMax |
Max. More... | |
Double_t | fMidPoint |
(Min+Max)/2 More... | |
Int_t | fC |
cardinality More... | |
Int_t | fP |
potent state More... | |
A node of a segment tree.
A node of a segment tree
For the details of the meaning of cardinality and potent data members, please see Diane L. Souvaine and Iliana Bjorling-Sachs, Proceedings of the IEEE, Vol. 80, No. 9, September 1992, p. 1449
Definition at line 21 of file AliMUONNode.h.
AliMUONNode::AliMUONNode | ( | Double_t | a, |
Double_t | b, | ||
Double_t | midpoInt_t | ||
) |
ctor
Definition at line 45 of file AliMUONNode.cxx.
|
virtual |
dtor
Definition at line 52 of file AliMUONNode.cxx.
|
private |
not implemented
|
inline |
Get cardinality.
Definition at line 44 of file AliMUONNode.h.
Referenced by DeleteInterval(), Demote(), InsertInterval(), Promote(), and Update().
|
inline |
Increase cardinality.
Definition at line 47 of file AliMUONNode.h.
void AliMUONNode::Contribution | ( | Double_t | b, |
Double_t | e, | ||
TObjArray & | stack | ||
) |
Contribution of an edge (b,e) to the final contour
Definition at line 83 of file AliMUONNode.cxx.
Referenced by Contribution(), and AliMUONSegmentTree::Contribution().
void AliMUONNode::DeleteInterval | ( | Double_t | b, |
Double_t | e, | ||
TObjArray & | stack | ||
) |
Delete an interval
Definition at line 157 of file AliMUONNode.cxx.
Referenced by DeleteInterval(), and AliMUONSegmentTree::DeleteInterval().
void AliMUONNode::Demote | ( | ) |
void AliMUONNode::InsertInterval | ( | Double_t | b, |
Double_t | e, | ||
TObjArray & | stack | ||
) |
Insert an interval
Definition at line 134 of file AliMUONNode.cxx.
Referenced by InsertInterval(), and AliMUONSegmentTree::InsertInterval().
Bool_t AliMUONNode::IsFullyContained | ( | Double_t | b, |
Double_t | e | ||
) | const |
Whether this node's interval is fully contained into [b,e]
Definition at line 125 of file AliMUONNode.cxx.
Referenced by Contribution(), DeleteInterval(), and InsertInterval().
|
inline |
Set left node.
Definition at line 53 of file AliMUONNode.h.
Referenced by AliMUONSegmentTree::Build().
|
private |
not implemented
|
inline |
void AliMUONNode::Print | ( | const char * | opt = "" | ) | const |
Printout
Definition at line 61 of file AliMUONNode.cxx.
Referenced by Print(), and AliMUONSegmentTree::Print().
void AliMUONNode::Promote | ( | ) |
|
inline |
Set right node.
Definition at line 56 of file AliMUONNode.h.
Referenced by AliMUONSegmentTree::Build().
void AliMUONNode::Update | ( | ) |
Update internal values
Definition at line 182 of file AliMUONNode.cxx.
Referenced by DeleteInterval(), and InsertInterval().
|
private |
cardinality
Definition at line 71 of file AliMUONNode.h.
Referenced by C(), Contribution(), and DeleteInterval().
|
private |
left node
Definition at line 64 of file AliMUONNode.h.
Referenced by Contribution(), DeleteInterval(), Demote(), InsertInterval(), LeftNode(), Print(), Promote(), Update(), and ~AliMUONNode().
|
private |
Max.
Definition at line 68 of file AliMUONNode.h.
Referenced by Contribution(), IsFullyContained(), and Print().
|
private |
(Min+Max)/2
Definition at line 69 of file AliMUONNode.h.
Referenced by Contribution(), DeleteInterval(), InsertInterval(), and Print().
|
private |
Min.
Definition at line 67 of file AliMUONNode.h.
Referenced by Contribution(), IsFullyContained(), and Print().
|
private |
potent state
Definition at line 72 of file AliMUONNode.h.
Referenced by Contribution(), Demote(), P(), and Update().
|
private |
right node
Definition at line 65 of file AliMUONNode.h.
Referenced by Contribution(), DeleteInterval(), Demote(), InsertInterval(), Print(), Promote(), RightNode(), Update(), and ~AliMUONNode().