FairRoot/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 
22  public:
23 
24 
26  PndTrkIndivisibleHit(TArrayI hitid, TVector3& pos);
28 
30 
31  // virtual Bool_t IsEqual(const TObject* obj) const {
32  // return (((PndTrkIndivisibleHit *) obj)->fDetectorID == fDetectorID) && (((PndTrkIndivisibleHit *) obj)->fHitID == fHitID);
33  // }
34 
35  // virtual Bool_t IsSortable() { return !(fSortVariable == -1); }
36  // Int_t Compare(const TObject *hit) const;
37 
38  // Bool_t operator==(const PndTrkIndivisibleHit & hit1);
39  // Bool_t operator<(const PndTrkIndivisibleHit & hit1);
40 
41  // CHECK add other set
42  void SetSortVariable(Double_t sortvar) { fSortVariable = sortvar; }
43 
44 
45  void SetPosition(TVector3 pos) {fPosition = pos; }
46  void SetPhi(Double_t phi) { fPhi = phi; }
47 
48  // void SetUsedFlag(Bool_t used) { fUsed = used; }
49 
50  // inline get
51 /* inline Bool_t IsUsed() { return fUsed; } */
52  inline TVector3 GetPosition() { return fPosition; }
53  inline Double_t GetSortVariable() { return fSortVariable; }
54  inline Double_t GetPhi() { return fPhi; }
55 
56 
57  // info
58  void Draw(Color_t color);
59  void Print();
60 
61  // variables
62  TArrayI fHitIDs;
63 
65 };
66 
67 
68 #endif
TVector3 pos
void SetPosition(TVector3 pos)
Double_t fPhi
Definition: PndTrkHit.h:105
Double_t
Double_t fSortVariable
Definition: PndTrkHit.h:104
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition: hit.C:1
TVector3 fPosition
Definition: PndTrkHit.h:102
void SetPhi(Double_t phi)
ClassDef(PndTrkIndivisibleHit, 1)
void SetSortVariable(Double_t sortvar)
void Draw(Color_t color)