]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSIntMapNode.h
Added QA for digits during reconstruction (Yves)
[u/mrichter/AliRoot.git] / ITS / AliITSIntMapNode.h
CommitLineData
b15de2d2 1#ifndef ALI_ITS_INTMAPNODE_H
2#define ALI_ITS_INTMAPNODE_H
3
4//////////////////////////////////////////////////////////////////////
5// Author: Henrik Tydesjo //
6// Class for the nodes to put in the integer map (AliITSIntMap) //
7// //
8//////////////////////////////////////////////////////////////////////
9
10#include <Rtypes.h>
11
12class AliITSIntMapNode {
13
14 public:
15 AliITSIntMapNode();
53ae21ce 16 AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right);
b15de2d2 17 AliITSIntMapNode(const AliITSIntMapNode& obj);
18 virtual ~AliITSIntMapNode();
19 AliITSIntMapNode& operator=(const AliITSIntMapNode& obj);
20
53ae21ce 21 Int_t Key() const {return fKey;}
22 Int_t Val() const {return fVal;}
23 AliITSIntMapNode*& Left() {return fLeft;}
24 AliITSIntMapNode*& Right() {return fRight;}
25
b15de2d2 26 void SetKey(Int_t key) {fKey=key;}
27 void SetVal(Int_t val) {fVal=val;}
53ae21ce 28 void SetLeft(AliITSIntMapNode* obj) {fLeft = obj;}
29 void SetRight(AliITSIntMapNode* obj) {fRight = obj;}
b15de2d2 30
31 private:
32 Int_t fKey; // key (for sorting)
33 Int_t fVal; // value
53ae21ce 34 AliITSIntMapNode* fLeft; // pointer to left object in bin tree
35 AliITSIntMapNode* fRight; // pointer to right object in bin tree
b15de2d2 36
37};
38
39#endif