PandaRoot
PndDrcLutNodeH.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // PndDrcLutNodeH.h
3 //
4 // Created on: 09.07.2013
5 // Author: R.Dzhygadlo at gsi.de
6 // Author: M.Patsyuk at gsi.de
7 // -----------------------------------------
8 // Container for look-up table
9 
10 #ifndef PNDDRCLUTNODEH_H
11 #define PNDDRCLUTNODEH_H
12 
13 #include "TObject.h"
14 #include "TClonesArray.h"
15 #include "TVector3.h"
16 #include <vector>
17 
18 class PndDrcLutNodeH : public TObject {
19 
20  public:
21  // Default constructor
23 
24  // Standard constructors
25  PndDrcLutNodeH(Int_t nodeId);
26  PndDrcLutNodeH(Int_t nodeId, TVector3 dir, Double_t time);
27 
28  // Copy constructor
29  PndDrcLutNodeH(PndDrcLutNodeH &node) { *this = node; }
30 
31  // Modifiers
32  void AddEntry(TVector3 dir, Int_t amb, Double_t time);
33  void SetPos(TVector3 dir) { fNodePos = dir; }
34 
35  // Accessors
36  Int_t Entries() { return fSize; }
37  Int_t GetNodeId() { return fNodeId; }
38  Int_t GetAmbiguity(Int_t entry);
39  Double_t GetTime(Int_t entry);
40  TVector3 GetDirection(Int_t entry);
41  TVector3 GetPos() { return fNodePos; }
42 
43  protected:
44  Int_t fNodeId;
45  Int_t fSize;
46 
47  std::vector<TVector3> fNodeArray;
48  std::vector<Int_t> fAmbiguity;
49  std::vector<Double_t> fTimeArray;
50  TVector3 fNodePos;
51  ClassDef(PndDrcLutNodeH, 2)
52 };
53 
54 #endif // PNDDRCLUTNODEH_H
Double_t GetTime(Int_t entry)
TVector3 fNodePos
void AddEntry(TVector3 dir, Int_t amb, Double_t time)
PndDrcLutNodeH(PndDrcLutNodeH &node)
Int_t GetAmbiguity(Int_t entry)
std::vector< TVector3 > fNodeArray
std::vector< Double_t > fTimeArray
std::vector< Int_t > fAmbiguity
void SetPos(TVector3 dir)
TVector3 GetDirection(Int_t entry)
TVector3 GetPos()