]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - ITS/AliITSIntMapNode.h
Fix OCDB induced problem in trigger calculation
[u/mrichter/AliRoot.git] / ITS / AliITSIntMapNode.h
... / ...
CommitLineData
1#ifndef ALIITSINTMAPNODE_H
2#define ALIITSINTMAPNODE_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();
16 AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right);
17 AliITSIntMapNode(const AliITSIntMapNode& obj);
18 virtual ~AliITSIntMapNode();
19 AliITSIntMapNode& operator=(const AliITSIntMapNode& obj);
20
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
26 void SetKey(Int_t key) {fKey=key;}
27 void SetVal(Int_t val) {fVal=val;}
28 void SetLeft(AliITSIntMapNode* obj) {fLeft = obj;}
29 void SetRight(AliITSIntMapNode* obj) {fRight = obj;}
30
31 private:
32 Int_t fKey; // key (for sorting)
33 Int_t fVal; // value
34 AliITSIntMapNode* fLeft; // pointer to left object in bin tree
35 AliITSIntMapNode* fRight; // pointer to right object in bin tree
36
37};
38
39#endif