FairRoot/PandaRoot
PndDrcLutNode.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // PndDrcLutNode.h
3 //
4 // Created on: 09.07.2013
5 // Author: R.Dzhygadlo at gsi.de
6 // -----------------------------------------
7 // Container for look-up table
8 
9 #ifndef PNDDRCLUTNODE_H
10 #define PNDDRCLUTNODE_H
11 
12 #include "TObject.h"
13 #include "TClonesArray.h"
14 #include "TVector3.h"
15 #include <vector>
16 #include <iostream>
17 
18 class PndDrcLutNode : public TObject {
19 
20 public:
21 
22  // Default constructor
23  PndDrcLutNode ();
24 
25  // Standard constructors
26  PndDrcLutNode (Int_t detectorId);
27 
28  // Copy constructor
30 
31  // Modifiers
32  void AddEntry(Int_t nodeId, TVector3 dir, Double_t path, Int_t pathid, Double_t time, TVector3 pos);
33  void SetPos(TVector3 pos){fNodePos = pos;}
34 
35  // Accessors
36  Int_t Entries() { return fSize; }
38 
39  TVector3 GetEntry(Int_t entry){ return fNodeArray[entry]; }
40  Int_t GetPathId(Int_t entry){ return fPathIdArray[entry]; }
41  Double_t GetPath(Int_t entry){ return fPathArray[entry]; }
42  Double_t GetTime(Int_t entry){ return fTimeArray[entry]; }
43  TVector3 GetPos(){ return fNodePos; }
44 
45 protected:
46 
47  Int_t fDetectorId;
48  Int_t fSize;
49  TVector3 fNodePos;
50 
51  std::vector<TVector3> fNodeArray;
52  std::vector<Int_t> fPathIdArray;
53  std::vector<Double_t> fPathArray;
54  std::vector<Double_t> fTimeArray;
55 
56  ClassDef(PndDrcLutNode,2)
57 };
58 
59 #endif //PNDDRCLUTNODE_H
TVector3 pos
Int_t GetPathId(Int_t entry)
Definition: PndDrcLutNode.h:40
void SetPos(TVector3 pos)
Definition: PndDrcLutNode.h:33
PndDrcLutNode(PndDrcLutNode &node)
Definition: PndDrcLutNode.h:29
Double_t GetDetectorId()
Definition: PndDrcLutNode.h:37
void AddEntry(Int_t nodeId, TVector3 dir, Double_t path, Int_t pathid, Double_t time, TVector3 pos)
TVector3 fNodePos
Definition: PndDrcLutNode.h:49
Double_t GetPath(Int_t entry)
Definition: PndDrcLutNode.h:41
std::vector< Int_t > fPathIdArray
Definition: PndDrcLutNode.h:52
Double_t
std::vector< TVector3 > fNodeArray
Definition: PndDrcLutNode.h:51
TVector3 GetEntry(Int_t entry)
Definition: PndDrcLutNode.h:39
Double_t GetTime(Int_t entry)
Definition: PndDrcLutNode.h:42
Int_t Entries()
Definition: PndDrcLutNode.h:36
TVector3 GetPos()
Definition: PndDrcLutNode.h:43
std::vector< Double_t > fTimeArray
Definition: PndDrcLutNode.h:54
std::vector< Double_t > fPathArray
Definition: PndDrcLutNode.h:53