PandaRoot
PndTrkIndivisibleHit.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
21 #ifndef PNDTRKINDIVISIBLEHIT_H
22 #define PNDTRKINDIVISIBLEHIT_H 1
23 
24 #include "PndTrkHit.h"
25 #include "TVector3.h"
26 #include "TArrayI.h"
27 #include "PndTrkParameters.h"
28 /* #include "TObject.h" */
29 
30 class PndTrkHit;
32 
33  public:
35  PndTrkIndivisibleHit(TArrayI hitid, TVector3 &pos);
37 
39 
40  // virtual Bool_t IsEqual(const TObject* obj) const {
41  // return (((PndTrkIndivisibleHit *) obj)->fDetectorID == fDetectorID) && (((PndTrkIndivisibleHit *) obj)->fHitID == fHitID);
42  // }
43 
44  // virtual Bool_t IsSortable() { return !(fSortVariable == -1); }
45  // Int_t Compare(const TObject *hit) const;
46 
47  // Bool_t operator==(const PndTrkIndivisibleHit & hit1);
48  // Bool_t operator<(const PndTrkIndivisibleHit & hit1);
49 
50  // CHECK add other set
51  void SetSortVariable(Double_t sortvar) { fSortVariable = sortvar; }
52 
53  void SetPosition(TVector3 pos) { fPosition = pos; }
54  void SetPhi(Double_t phi) { fPhi = phi; }
55 
56  // void SetUsedFlag(Bool_t used) { fUsed = used; }
57 
58  // inline get
59  /* inline Bool_t IsUsed() { return fUsed; } */
60  inline TVector3 GetPosition() { return fPosition; }
61  inline Double_t GetSortVariable() { return fSortVariable; }
62  inline Double_t GetPhi() { return fPhi; }
63 
64  // info
65  void Draw(Color_t color);
66  void Print();
67 
68  // variables
69  TArrayI fHitIDs;
70 
72 };
73 
74 #endif
void SetPosition(TVector3 pos)
Double_t fPhi
Definition: PndTrkHit.h:110
Double_t fSortVariable
Definition: PndTrkHit.h:109
TVector3 fPosition
Definition: PndTrkHit.h:107
void SetPhi(Double_t phi)
ClassDef(PndTrkIndivisibleHit, 1)
void SetSortVariable(Double_t sortvar)
void Draw(Color_t color)