PandaRoot
PndTrkIndivisibleHit.h
Go to the documentation of this file.
1 
9 #ifndef PNDTRKINDIVISIBLEHIT_H
10 #define PNDTRKINDIVISIBLEHIT_H 1
11 
12 #include "PndTrkHit.h"
13 #include "TVector3.h"
14 #include "TArrayI.h"
15 #include "PndTrkParameters.h"
16 /* #include "TObject.h" */
17 
18 class PndTrkHit;
20 
21  public:
23  PndTrkIndivisibleHit(TArrayI hitid, TVector3 &pos);
25 
27 
28  // virtual Bool_t IsEqual(const TObject* obj) const {
29  // return (((PndTrkIndivisibleHit *) obj)->fDetectorID == fDetectorID) && (((PndTrkIndivisibleHit *) obj)->fHitID == fHitID);
30  // }
31 
32  // virtual Bool_t IsSortable() { return !(fSortVariable == -1); }
33  // Int_t Compare(const TObject *hit) const;
34 
35  // Bool_t operator==(const PndTrkIndivisibleHit & hit1);
36  // Bool_t operator<(const PndTrkIndivisibleHit & hit1);
37 
38  // CHECK add other set
39  void SetSortVariable(Double_t sortvar) { fSortVariable = sortvar; }
40 
41  void SetPosition(TVector3 pos) { fPosition = pos; }
42  void SetPhi(Double_t phi) { fPhi = phi; }
43 
44  // void SetUsedFlag(Bool_t used) { fUsed = used; }
45 
46  // inline get
47  /* inline Bool_t IsUsed() { return fUsed; } */
48  inline TVector3 GetPosition() { return fPosition; }
49  inline Double_t GetSortVariable() { return fSortVariable; }
50  inline Double_t GetPhi() { return fPhi; }
51 
52  // info
53  void Draw(Color_t color);
54  void Print();
55 
56  // variables
57  TArrayI fHitIDs;
58 
60 };
61 
62 #endif
void SetPosition(TVector3 pos)
Double_t fPhi
Definition: PndTrkHit.h:98
Double_t fSortVariable
Definition: PndTrkHit.h:97
TVector3 fPosition
Definition: PndTrkHit.h:95
void SetPhi(Double_t phi)
ClassDef(PndTrkIndivisibleHit, 1)
void SetSortVariable(Double_t sortvar)
void Draw(Color_t color)